Add custom configuration
This commit is contained in:
+4
-5
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user