PageSourceSearch

https://szubin.pl/js/prod/ordinary/FadeSlider.js?ts=1758893653

js szubin.pl collected 2026-09-24 22:53:56 UTC 3,190 bytes, 1 lines download raw bytes

1var SimpleSlideshow=new Class({options:{showControls:!0,showDuration:6e3,showTOC:!0,tocClass:"fadeSlider__toggle",tocActiveClass:"-active",showPause:!1},Implements:[Options,Events],initialize:function(t,s,i){this.pause=!1,this.setOptions(i),this.container=$(t),this.elements=$$(s),this.currentIndex=0,this.interval="",this.options.showTOC&&(this.toc=[]);var e=$(t+"__nav");this.elements.each((function(t,s){this.options.showTOC&&this.toc.push(new Element("a",{href:"#",tabindex:-1,"aria-label":"Przejdz do slajdu numer "+parseInt(s+1),title:"Przejdz do slajdu numer "+parseInt(s+1),class:this.options.tocClass+""+(0==s?" "+this.options.tocActiveClass:""),events:{click:function(t){t&&t.stop(),this.stop(),this.show(s)}.bind(this)}}).inject(e||this.container))}),this),this.options.showControls&&this.createControls(),this.options.showPause&&this.createPause();var n=this.elements.length-1;this.container.addEvents({mouseenter:function(){this.stop()}.bind(this),mouseleave:function(){this.start()}.bind(this)});var a=new SwipeIt("#"+t);a.on("swipeLeft",function(){var t=this.currentIndex;(t+=1)>n&&(t=0),this.show(t)}.bind(this)),a.on("swipeRight",function(){var t=this.currentIndex;(t-=1)<0&&(t=n),this.show(t)}.bind(this))},show:function(t){this.elements[this.currentIndex].removeClass("-active"),this.options.showTOC&&this.toc[this.currentIndex].removeClass(this.options.tocActiveClass),this.elements[this.currentIndex=void 0!==t?t:this.currentIndex<this.elements.length-1?this.currentIndex+1:0].addClass("-active"),this.options.showTOC&&this.toc[this.currentIndex].addClass(this.options.tocActiveClass)},start:function(){this.pause||(this.interval=this.show.bind(this).periodical(this.options.showDuration))},stop:function(){clearInterval(this.interval)},createControls:function(){var t=this.container.get("id")+"__arrow fadeSlider__arrow fadeSlider__arrow";new Element("a",{href:"#",tabindex:-1,class:t+"--next",role:"button","aria-label":"Kliknij aby zobaczyć następny slajd",title:"Kliknij aby zobaczyć następny slajd",events:{click:function(t){t&&t.stop(),this.stop(),this.show()}.bind(this)}}).inject(this.container),new Element("a",{href:"#",tabindex:-1,class:t+"--prev",role:"button","aria-label":"Kliknij aby zobaczyć poprzedni slajd",title:"Kliknij aby zobaczyć poprzedni slajd",events:{click:function(t){t&&t.stop(),this.stop(),this.show(0!=this.currentIndex?this.currentIndex-1:this.elements.length-1)}.bind(this)}}).inject(this.container)},createPause:function(){var t=this.container.get("id");new Element("a",{href:"javascript:void(0)",tabindex:-1,class:t+"__pause fadeSlider__pause",role:"button","aria-label":"Kliknij aby zatrzymać slajder",title:"Kliknij aby zatrzymać slajder",events:{click:function(t){this.pause?(this.pause=!1,t.target.classList.remove("-active"),t.target.setAttribute("title","Kliknij aby zatrzymać slajder"),t.target.setAttribute("aria-label","Kliknij aby zatrzymać slajder")):(this.pause=!0,t.target.classList.add("-active"),t.target.setAttribute("title","Kliknij aby włączyć slajder"),t.target.setAttribute("aria-label","Kliknij aby włączyć slajder"),this.stop())}.bind(this)}}).inject(this.container)}});js_included.FadeSlider=!0;

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.