Open flierville opened 7 years ago
I found a jQuery Solution to make a slideshow
$(document).on('click', '[data-toggle="lightbox"]', function(event) {
var slideShowInterval
event.preventDefault();
$(this).ekkoLightbox({
onShown: function() {
if(typeof fliSlideShowInterval !== "undefined" && fliSlideShowInterval != 0){
slideShowInterval = setInterval(
function(){
$("a",$('.ekko-lightbox-nav-overlay')).eq(1).click()
},
fliSlideShowInterval
);
}
},
onHide: function(){
//Fermeture image = fin diaporama
if(typeof fliSlideShowInterval !== "undefined") {
clearInterval(slideShowInterval);
}
}
});
});
Do you think is it possible to add diaporama ?
thanks a lot ;)