make slideshow width and autorotation configurable
This commit is contained in:
@@ -7,6 +7,9 @@ var imageIndex = {}
|
||||
// Open the Lightbox
|
||||
function openLightbox(id) {
|
||||
document.getElementById(lightbox_baseid + id).style.display = "block";
|
||||
|
||||
// Kill automatic slideshow when lightbox opened
|
||||
clearInterval(autoSlideshow);
|
||||
}
|
||||
|
||||
// Close the Lightbox
|
||||
@@ -25,11 +28,13 @@ function moveLightboxItem(id, n) {
|
||||
}
|
||||
|
||||
// Next/previous controls for slideshow
|
||||
function moveSlideshowItem(id, n) {
|
||||
function moveSlideshowItem(id, n, mode) {
|
||||
showItem(slideshow_baseid, id, imageIndex[id] += n, ".snap-image");
|
||||
|
||||
// Kill automatic slideshow once the slideshow has been moved
|
||||
clearInterval(autoSlideshow);
|
||||
// Kill automatic slideshow once the slideshow has been moved manually
|
||||
if (mode !== "auto") {
|
||||
clearInterval(autoSlideshow);
|
||||
}
|
||||
}
|
||||
|
||||
// In the slideshow or lightbox, make a specific image visible, make others hidden
|
||||
|
||||
Reference in New Issue
Block a user