PageSourceSearch

https://museodiocesanocatania.com/Scripts/themes/twelve-overlay/galleria.twelve.min.js

js museodiocesanocatania.com collected 2026-10-09 17:17:17 UTC 3,954 bytes, 1 lines download raw bytes

1!function(e){Galleria.addTheme({name:"twelve",author:"Galleria",css:"galleria.twelve.css",defaults:{transition:"pulse",transitionSpeed:500,imageCrop:true,thumbCrop:true,carousel:false,_locale:{show_thumbnails:"Show thumbnails",hide_thumbnails:"Hide thumbnails",play:"Play slideshow",pause:"Pause slideshow",enter_fullscreen:"Enter fullscreen",exit_fullscreen:"Exit fullscreen",popout_image:"Popout image",showing_image:"Showing image %s of %s"},_showFullscreen:true,_showPopout:true,_showProgress:true,_showTooltip:true},init:function(t){Galleria.requires(1.28,"This version of Twelve theme requires Galleria version 1.2.8 or later");this.addElement("bar","fullscreen","play","popout","thumblink","s1","s2","s3","s4","progress");this.append({stage:"progress",container:["bar","tooltip"],bar:["fullscreen","play","popout","thumblink","info","s1","s2","s3","s4"]});this.prependChild("info","counter");var i=this,s=this.$("thumbnails-container"),n=this.$("thumblink"),l=this.$("fullscreen"),o=this.$("play"),a=this.$("popout"),r=this.$("bar"),h=this.$("progress"),u=t.transition,c=t._locale,f=false,p=false,d=!!t.autoplay,g=false,m=function(){s.height(i.getStageHeight()).width(i.getStageWidth()).css("top",f?0:i.getStageHeight()+30)},b=function(e){if(f&&g){i.play()}else{g=d;i.pause()}Galleria.utils.animate(s,{top:f?i.getStageHeight()+30:0},{easing:"galleria",duration:400,complete:function(){i.defineTooltip("thumblink",f?c.show_thumbnails:c.hide_thumbnails);n[f?"removeClass":"addClass"]("open");f=!f}})};m();if(t._showTooltip){i.bindTooltip({thumblink:c.show_thumbnails,fullscreen:c.enter_fullscreen,play:function(){return d?c.pause:c.play},popout:c.popout_image,caption:function(){var e=i.getData();var t="";if(e){if(e.title&&e.title.length){t+="<strong>"+e.title+"</strong>"}if(e.description&&e.description.length){t+="<br>"+e.description}}return t},counter:function(){return c.showing_image.replace(/\%s/,i.getIndex()+1).replace(/\%s/,i.getDataLength())}})}if(!t.showInfo){this.$("info").hide()}this.bind("play",function(){d=true;o.addClass("playing")});this.bind("pause",function(){d=false;o.removeClass("playing");h.width(0)});if(t._showProgress){this.bind("progress",function(e){h.width(e.percent/100*this.getStageWidth())})}this.bind("loadstart",function(e){if(!e.cached){this.$("loader").show()}});this.bind("loadfinish",function(e){h.width(0);this.$("loader").hide();this.refreshTooltip("counter","caption")});this.bind("thumbnail",function(t){e(t.thumbTarget).hover(function(){i.setInfo(t.thumbOrder);i.setCounter(t.thumbOrder)},function(){i.setInfo();i.setCounter()}).click(function(){b()})});this.bind("fullscreen_enter",function(e){p=true;i.setOptions("transition",false);l.addClass("open");r.css("bottom",0);this.defineTooltip("fullscreen",c.exit_fullscreen);if(!Galleria.TOUCH){this.addIdleState(r,{bottom:-31})}});this.bind("fullscreen_exit",function(e){p=false;Galleria.utils.clearTimer("bar");i.setOptions("transition",u);l.removeClass("open");r.css("bottom",0);this.defineTooltip("fullscreen",c.enter_fullscreen);if(!Galleria.TOUCH){this.removeIdleState(r,{bottom:-31})}});this.bind("rescale",m);if(!Galleria.TOUCH){this.addIdleState(this.get("image-nav-left"),{left:-36});this.addIdleState(this.get("image-nav-right"),{right:-36})}n.click(b);if(!t.thumbnails){n.hide();o.css("left",0);this.$("s2").hide();this.$("info").css("left",41)}if(t._showPopout){a.click(function(e){i.openLightbox();e.preventDefault()})}else{a.remove();if(t._showFullscreen){this.$("s4").remove();this.$("info").css("right",40);l.css("right",0)}}o.click(function(){if(d){i.pause()}else{if(f){n.click()}i.play()}});if(t._showFullscreen){l.click(function(){if(p){i.exitFullscreen()}else{i.enterFullscreen()}})}else{l.remove();if(t._show_popout){this.$("s4").remove();this.$("info").css("right",40);a.css("right",0)}}if(!t._showFullscreen&&!t._showPopout){this.$("s3,s4").remove();this.$("info").css("right",10)}if(t.autoplay){this.trigger("play")}}})}(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.