Plugin:
Tutorial:
This tutorial lists the JavaScript events supported by the Wonder Lightbox plugin.
When the lightbox is opened:
(function($){
$(window).on("html5lightbox.event", function( event, type, url, title) {
console.log("Lightbox URL: " + url);
console.log("Lightbox Title: " + title);
});
})(jQuery);
When the lightbox is closed:
(function($){
$(window).on("html5lightbox.lightboxclosed", function(){
console.log("Lightbox Closed");
});
})(jQuery);
When the lightbox opens a video and the video finishes playing:
(function($){
$(window).on("html5lightbox.videofinished", function(){
console.log("Video Finishes");
});
})(jQuery);
