make appearance of lightbox configurable

This commit is contained in:
mxmehl committed 2024-02-05 14:04:31 +01:00
1 parent dc64b7bda1
commit 0a778ee8e9
6 files changed
+23 -9

No files matched your search

+5 -1
View File
@@ -9,7 +9,11 @@ function openLightbox(id) {
document.getElementById(lightbox_baseid + id).style.display = "block";
// Kill automatic slideshow when lightbox opened
clearInterval(autoSlideshow);
try {
clearInterval(autoSlideshow);
} catch (e) {
console.log("Lightbox error: " + e)
}
}
// Close the Lightbox