PageSourceSearch

https://www.goldap.pl/js/prod/transpiled/FadeSlider.js?ts=1790682460

js goldap.pl collected 2026-10-02 12:09:49 UTC 4,441 bytes, 1 lines download raw bytes

1"use strict";class SimpleSlideShow{constructor(t,e,s={}){this.options={showControls:!0,showDots:6e3,showText:!0,tocClass:"fadeSlider__toggle",tocActiveClass:"-active",showPause:!1,showProgressBar:!0,...s},this.pause=!1,this.container=document.querySelector(`#${t}`),this.elements=Array.from(document.querySelectorAll(e)),this.currentIndex=0,this.interval=null,this.options.showTOC&&(this.toc=[]);const a=document.querySelector(`#${t}__nav`);this.elements.forEach((t,e)=>{if(this.options.showTOC){const t=document.createElement("a");t.href="#",t.tabIndex=-1,t.ariaLabel=`Przejdź do slajdu numer ${e+1}`,t.title=`Przejdź do slajdu numer ${e+1}`,t.className=`${this.options.tocClass} ${0===e?this.options.tocActiveClass:""}`,t.addEventListener("click",t=>{t.preventDefault(),this.stop(),this.show(e)}),this.toc.push(t),(a||this.container).appendChild(t)}}),this.options.showControls&&this.createControls(),this.options.showPause&&this.createPause(),this.options.showProgressBar&&this.createProgressBar(),this.container.addEventListener("mouseenter",()=>this.stop()),this.container.addEventListener("mouseleave",()=>this.start());const i=new SwipeIt(`#${t}`);i.on("swipeLeft",()=>{let t=this.currentIndex+1;t>=this.elements.length&&(t=0),this.show(t)}),i.on("swipeRight",()=>{let t=this.currentIndex-1;t<0&&(t=this.elements.length-1),this.show(t)})}show(t){this.pause||(clearInterval(this.loadingProgress),this.loading()),this.elements[this.currentIndex].classList.remove("-active"),this.options.showTOC&&this.toc[this.currentIndex].classList.remove(this.options.tocActiveClass),this.currentIndex=void 0!==t?t:this.currentIndex<this.elements.length-1?this.currentIndex+1:0,this.elements[this.currentIndex].classList.add("-active"),this.options.showTOC&&this.toc[this.currentIndex].classList.add(this.options.tocActiveClass)}start(){this.pause||(this.interval=setInterval(()=>this.show(),this.options.showDuration),clearInterval(this.loadingProgress),this.loading())}stop(){clearInterval(this.interval),clearInterval(this.loadingProgress)}loading(){const t=this.container.querySelector(".fadeSlider__progress");let e=-95;t.style.transform=`translateY(-50%) translateX(${e}%)`,this.loadingProgress=setInterval(()=>{e>=-1?clearInterval(this.loadingProgress):(e++,t.style.transform=`translateY(-50%) translateX(${e}%)`)},this.options.showDuration/100)}createControls(){const t=`${this.container.id}__arrow fadeSlider__arrow fadeSlider__arrow`,e=document.createElement("a");e.href="#",e.className=`${t}--next`,e.role="button",e.ariaLabel="Kliknij aby zobaczyć następny slajd",e.title="Kliknij aby zobaczyć następny slajd",e.addEventListener("click",t=>{t.preventDefault(),this.stop(),this.show()}),this.container.appendChild(e);const s=document.createElement("a");s.href="#",s.className=`${t}--prev`,s.role="button",s.ariaLabel="Kliknij aby zobaczyć poprzedni slajd",s.title="Kliknij aby zobaczyć poprzedni slajd",s.addEventListener("click",t=>{t.preventDefault(),this.stop(),this.show(0!==this.currentIndex?this.currentIndex-1:this.elements.length-1)}),this.container.appendChild(s)}createPause(){const t=`${this.container.id}__pause fadeSlider__pause fadeSlider__buttons`,e=document.createElement("a");e.href="javascript:void(0)",e.className=t,e.role="button",e.ariaLabel="Kliknij aby zatrzymać slajder",e.title="Kliknij aby zatrzymać slajder",e.addEventListener("click",()=>{this.eventPause(e)}),this.container.appendChild(e)}eventPause(t){this.pause?(this.pause=!1,t.classList.remove("-active"),t.title="Kliknij aby zatrzymać slajder",t.ariaLabel="Kliknij aby zatrzymać slajder",this.start()):(this.pause=!0,t.classList.add("-active"),t.title="Kliknij aby włączyć slajder",t.ariaLabel="Kliknij aby włączyć slajder",this.stop())}createProgressBar(){const t=[`${this.container.id}__progress_bar`,"fadeSlider__progress_bar","fadeSlider__buttons"],e=document.createElement("div");e.tabIndex=-1,e.classList.add(...t),e.dataset.time=this.options.showDuration,e.title="Czas do następnego slajdu",this.container.appendChild(e);const s=[`${this.container.id}__progress_bar`,"fadeSlider__progress"],a=document.createElement("span");e.tabIndex=-1,a.classList.add(...s),a.dataset.time=this.options.showDuration,a.title="Czas do następnego slajdu",e.appendChild(a);const i=document.createElement("span");e.tabIndex=-1,i.classList.add("progress_bar_background","fadeSlider__progress_background"),e.appendChild(i)}}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.