ACC SHELL

Path : /srv/www/vhosts/aife/domovoj.cz/js/imagelightbox/
File Upload :
Current File : /srv/www/vhosts/aife/domovoj.cz/js/imagelightbox/imagelightboxinit.min.js

$(function(){var h=function(){$('<div id="imagelightbox-loading"><div></div></div>').appendTo("body")},i=function(){$("#imagelightbox-loading").remove()},n=function(){$('<div id="imagelightbox-overlay"></div>').appendTo("body")},k=function(){$("#imagelightbox-overlay").remove()},b=function(c){$('<button type="button" id="imagelightbox-close" title="Close"></button>').appendTo("body").on("click touchend",function(){$(this).remove();c.quitImageLightbox();return false})},o=function(){$("#imagelightbox-close").remove()},e=function(){var c=$('a[href="'+$("#imagelightbox").attr("src")+'"] img').attr("alt");if(c.length>0){$('<div id="imagelightbox-caption">'+c+"</div>").appendTo("body")}},g=function(){$("#imagelightbox-caption").remove()},a=function(q,p){var c=$(p);if(c.length){var t=$('<div id="imagelightbox-nav"></div>');for(var s=0;s<c.length;s++){t.append('<button type="button"></button>')}t.appendTo("body");t.on("click touchend",function(){return false});var r=t.find("button");r.on("click touchend",function(){var u=$(this);if(c.eq(u.index()).attr("href")!=$("#imagelightbox").attr("src")){q.switchImageLightbox(u.index())}r.removeClass("active");r.eq(u.index()).addClass("active");return false}).on("touchend",function(){return false})}},m=function(c){var p=$("#imagelightbox-nav button");p.removeClass("active");p.eq($(c).filter('[href="'+$("#imagelightbox").attr("src")+'"]').index(c)).addClass("active")},l=function(){$("#imagelightbox-nav").remove()},f=function(p,c){var q=$('<button type="button" class="imagelightbox-arrow imagelightbox-arrow-left"></button><button type="button" class="imagelightbox-arrow imagelightbox-arrow-right"></button>');q.appendTo("body");q.on("click touchend",function(u){u.preventDefault();var t=$(this),r=$(c+'[href="'+$("#imagelightbox").attr("src")+'"]'),s=r.index(c);if(t.hasClass("imagelightbox-arrow-left")){s=s-1;if(!$(c).eq(s).length){s=$(c).length}}else{s=s+1;if(!$(c).eq(s).length){s=0}}p.switchImageLightbox(s);return false})},d=function(){$(".imagelightbox-arrow").remove()};var j=$("a.imagelightbox").imageLightbox({quitOnDocClick:false,onStart:function(){n();b(j)},onEnd:function(){k();o();i()},onLoadStart:function(){h()},onLoadEnd:function(){i()}})});

ACC SHELL 2018