Add custom configuration

This commit is contained in:
Alan Grainger
2024-11-01 15:36:53 +01:00
parent ca7236022b
commit 5d93fb9662
7 changed files with 59 additions and 28 deletions
+1 -1
View File
@@ -28,7 +28,7 @@
<script src="/lg-video.min.js"></script>
<script src="/lg-zoom.min.js"></script>
<script type="text/javascript">
initLightGallery() // from web.js
initLightGallery(<%- JSON.stringify(lgConfig) %>) // initLightGallery imported from web.js
<% if (openItem) { %>
const openItem = <%- openItem %>
const thumbs = document.querySelectorAll('#lightgallery a')