PageSourceSearch

https://www.wnpower.com/wp-content/cache/min/1/wp-content/themes/a…checker-df42e7b64aee3e6b5718ab41d88db2b2.js

js wnpower.com collected 2026-09-25 19:39:41 UTC 3,271 bytes, 10 lines download raw bytes

1(function($){$.fn.viewportChecker=function(useroptions){var options={classToAdd:'visible',offset:100,callbackFunction:function(elem){}};$.extend(options,useroptions);var $elem=this,windowHeight=$(window).height();this.checkElements=function(){var scrollElem=((navigator.userAgent.toLowerCase().indexOf('webkit')!=-1)?window:'html'),viewportTop=$(scrollElem).scrollTop(),viewportBottom=(viewportTop+windowHeight);$elem.each(function(){var $obj=$(this);if($obj.hasClass(options.classToAdd)&&options.classToAdd!=''){return}
2var elemTop=Math.round($obj.offset().top)+options.offset,elemBottom=elemTop+($obj.height());if((elemTop<viewportBottom)&&(elemBottom>viewportTop)&&this.done!=!0){$obj.addClass(options.classToAdd);options.callbackFunction($obj)}})};$(window).scroll(this.checkElements);this.checkElements();$(window).resize(function(e){windowHeight=e.currentTarget.innerHeight})};$(document).ready(function($){$('.animated').each(function(){var delay=this.className.split('delay-')[1];if(delay){$(this).css({'-webkit-animation-delay':delay.split(' ')[0],'animation-delay':delay.split(' ')[0]})}
3var type=this.className.split('eff-')[1];if(type){type=type.split(' ')[0];$(this).addClass('effHidden').viewportChecker({classToAdd:type+' effVisible',offset:100,callbackFunction:function(obj){obj.get(0).done=!0;var clasz=obj.attr('class');var delay=1500;var claszz='';if(clasz.indexOf('delay-')>-1){delay=clasz.split('delay-')[1].split('ms')[0]}
4delay=parseInt(delay);if(!delay){delay=1500}else if(delay!=1500){delay+=1500}
5if(clasz.indexOf('eff-')>-1){var claszz=clasz.split('eff-')[1].split(' ')[0]}
6setTimeout(function(a,b){if(a!=null){a.removeClass('effHidden');a.removeClass('effVisible');a.removeClass('animated');a.removeClass(b);a.removeClass('eff-'+b)}},delay,obj,claszz)}})}});$('.counter').each(function(){this.target=parseInt(this.innerHTML);this.innerHTML='0';$(this).viewportChecker({callbackFunction:function(elm){if(elm.html()==elm.get(0).target){return}
7elm.get(0).starter=0;elm.get(0).loop=function(){if(this.starter<this.target){this.starter+=1+(this.target/100);this.innerHTML=parseInt(this.starter);setTimeout(function(){elm.get(0).loop()},10+(Math.random()*100))}else{this.innerHTML=this.target}}
8elm.get(0).loop()}})});$('.piechart').each(function(){$(this).viewportChecker({callbackFunction:function(elm){var data=elm.attr('data-option');if(data=='loaded'){return}
9elm.attr('rel','loaded');data=data.split('|');var options={percentage:data[0],speed:30,fontSize:data[1],diameter:data[2],lineColor:data[3],remainingLineColor:'rgba(200,200,200,0.4)',lineWidth:data[4]}
10if(data[3]=='#fff'){elm.find('canvas').eq(0).ClassyLoader3(options)}else if($(elm).hasClass('white')){elm.find('canvas').eq(0).ClassyLoader4(options)}else{elm.find('canvas').eq(0).ClassyLoader(options)}}})});$('#menu-onepage a').each(function(){if($(this).attr('href').indexOf('#')>-1){var id=$(this).attr('href').split('#')[1];if(id!=''){$('#'+id).viewportChecker({callbackFunction:function(elm){clearTimeout(document.optimer);document.optimer=setTimeout(function(){$('#menu-onepage li.active').removeClass('active');$('#menu-onepage a').each(function(){if($(this).attr('href')=='#'+elm.attr('id')){$(this).closest('li').addClass('active')}})},300)},classToAdd:''})}}})})})(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.