https://www.downloaduj.pl/wp-content/cache/min/1/wp-content/themes…/anim-on-scroll.js?ver=1777811929
1(function(window){'use strict';var docElem=window.document.documentElement;function getViewportH(){var client=docElem.clientHeight,inner=window.innerHeight;if(client<inner) 2return inner;else return client} 3function scrollY(){return window.pageYOffset||docElem.scrollTop} 4function getOffset(el){var offsetTop=0,offsetLeft=0;do{if(!isNaN(el.offsetTop)){offsetTop+=el.offsetTop} 5if(!isNaN(el.offsetLeft)){offsetLeft+=el.offsetLeft}}while(el=el.offsetParent);return{top:offsetTop,left:offsetLeft}} 6function inViewport(el,h){var elH=el.offsetHeight,scrolled=scrollY(),viewed=scrolled+getViewportH(),elTop=getOffset(el).top,elBottom=elTop+elH,h=h||0;return(elTop+elH*h)<=viewed&&(elBottom-elH*h)>=scrolled} 7function extend(a,b){for(var key in b){if(b.hasOwnProperty(key)){a[key]=b[key]}} 8return a} 9function AnimOnScroll(el,options){if(imagesLoaded==null){return console.warn('AnimOnScroll not initialized: `imagesLoaded` plugin was not found.')} 10this.el=el;this.options=extend(this.defaults,options);this._init()} 11AnimOnScroll.prototype={defaults:{minDuration:0,maxDuration:0,viewportFactor:0,loadedClass:'row-images-loaded'},_init:function(){var self=this;this.items=Array.prototype.slice.call(this.el.children);this.itemsCount=this.items.length;this.itemsRenderedCount=0;this.didScroll=!1;imagesLoaded(this.el,function(){self.el.classList.add(self.options.loadedClass);self.items.forEach(function(el,i){if(inViewport(el)){self._checkTotalRendered();setTimeout(function(){el.classList.add('ci-grid-animate')},Math.random()*(500-25)+25)}});window.addEventListener('scroll',function(){self._onScrollFn()},!1);window.addEventListener('resize',function(){self._resizeHandler()},!1)})},_onScrollFn:function(){var self=this;if(!this.didScroll){this.didScroll=!0;setTimeout(function(){self._scrollPage()},60)}},_scrollPage:function(){var self=this;this.items.forEach(function(el,i){if(el.className.indexOf('ci-grid-shown')===-1&&el.className.indexOf('ci-grid-animate')===-1&&inViewport(el,self.options.viewportFactor)){setTimeout(function(){var perspY=scrollY()+getViewportH()/2;self.el.style.WebkitPerspectiveOrigin='50% '+perspY+'px';self.el.style.MozPerspectiveOrigin='50% '+perspY+'px';self.el.style.perspectiveOrigin='50% '+perspY+'px';self._checkTotalRendered();if(self.options.minDuration&&self.options.maxDuration){var randDuration=(Math.random()*(self.options.maxDuration-self.options.minDuration)+self.options.minDuration)+'s';el.style.WebkitAnimationDuration=randDuration;el.style.MozAnimationDuration=randDuration;el.style.animationDuration=randDuration} 12el.classList.add('ci-grid-animate')},Math.random()*(320-25)+25)}});this.didScroll=!1},_resizeHandler:function(){var self=this;function delayed(){self._scrollPage();self.resizeTimeout=null} 13if(this.resizeTimeout){clearTimeout(this.resizeTimeout)} 14this.resizeTimeout=setTimeout(delayed,1000)},_checkTotalRendered:function(){++ this.itemsRenderedCount;if(this.itemsRenderedCount===this.itemsCount){window.removeEventListener('scroll',this._onScrollFn)}},_destroy:function(){this.items.forEach(function(item){item.classList.remove('ci-grid-animate')});this.el.classList.remove('row-effect')}};window.AnimOnScroll=AnimOnScroll})(window)
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.