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
+4 -5
View File
@@ -1,11 +1,11 @@
function initLightGallery () {
lightGallery(document.getElementById('lightgallery'), {
function initLightGallery (config = {}) {
lightGallery(document.getElementById('lightgallery'), Object.assign({
plugins: [lgZoom, lgThumbnail, lgVideo, lgFullscreen],
/*
This license key was graciously provided by LightGallery under their
GPLv3 open-source project license:
*/
licenseKey: '8FFA6495-676C4D30-8BFC54B6-4D0A6CEC',
licenseKey: '8FFA6495-676C4D30-8BFC54B6-4D0A6CEC'
/*
Please do not take it and use it for other projects, as it was provided
specifically for Immich Public Proxy.
@@ -15,6 +15,5 @@ function initLightGallery () {
https://www.lightgalleryjs.com/docs/settings/#licenseKey
*/
speed: 500
})
}, config))
}