PageSourceSearch

https://leszekmarkiewicz.pl/wp-content/themes/findeo/js/jquery.counterup.min.js?ver=20170821

js leszekmarkiewicz.pl collected 2026-09-26 18:46:45 UTC 9,497 bytes, 1 lines download raw bytes

1!function(t){"use strict";t.fn.counterUp=function(e){var n=t.extend({time:400,delay:10},e);return this.each(function(){var e=t(this),o=n;e.waypoint(function(){var t=[],n=o.time/o.delay,r=e.text(),i=/[0-9]+,[0-9]+/.test(r);r=r.replace(/,/g,"");/^[0-9]+$/.test(r);for(var l=/^[0-9]+\.[0-9]+$/.test(r),s=l?(r.split(".")[1]||[]).length:0,u=n;u>=1;u--){var c=parseInt(r/n*u);if(l&&(c=parseFloat(r/n*u).toFixed(s)),i)for(;/(\d+)(\d{3})/.test(c.toString());)c=c.toString().replace(/(\d+)(\d{3})/,"$1,$2");t.unshift(c)}e.data("counterup-nums",t),e.text("0");e.data("counterup-func",function(){e.text(e.data("counterup-nums").shift()),e.data("counterup-nums").length?setTimeout(e.data("counterup-func"),o.delay):(e.data("counterup-nums"),e.data("counterup-nums",null),e.data("counterup-func",null))}),setTimeout(e.data("counterup-func"),o.delay)},{offset:"100%",triggerOnce:!0})})}}(jQuery),function(t){t.fn.hoverIntent=function(e,n,o){var r={interval:50,sensitivity:7,timeout:0};r="object"==typeof e?t.extend(r,e):t.isFunction(n)?t.extend(r,{over:e,out:n,selector:o}):t.extend(r,{over:e,out:e,selector:n});var i,l,s,u,c=function(t){i=t.pageX,l=t.pageY},a=function(e,n){if(n.hoverIntent_t=clearTimeout(n.hoverIntent_t),Math.abs(s-i)+Math.abs(u-l)<r.sensitivity)return t(n).off("mousemove.hoverIntent",c),n.hoverIntent_s=1,r.over.apply(n,[e]);s=i,u=l,n.hoverIntent_t=setTimeout(function(){a(e,n)},r.interval)},f=function(t,e){return e.hoverIntent_t=clearTimeout(e.hoverIntent_t),e.hoverIntent_s=0,r.out.apply(e,[t])},h=function(e){var n=jQuery.extend({},e),o=this;o.hoverIntent_t&&(o.hoverIntent_t=clearTimeout(o.hoverIntent_t)),"mouseenter"==e.type?(s=n.pageX,u=n.pageY,t(o).on("mousemove.hoverIntent",c),1!=o.hoverIntent_s&&(o.hoverIntent_t=setTimeout(function(){a(n,o)},r.interval))):(t(o).off("mousemove.hoverIntent",c),1==o.hoverIntent_s&&(o.hoverIntent_t=setTimeout(function(){f(n,o)},r.timeout)))};return this.on({"mouseenter.hoverIntent":h,"mouseleave.hoverIntent":h},r.selector)}}(jQuery),function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},e=[].slice;!function(t,e){"function"==typeof define&&define.amd?define("waypoints",["jquery"],function(n){return e(n,t)}):e(t.jQuery,t)}(this,function(n,o){var r,i,l,s,u,c,a,f,h,d,p,v,y,m,g,w;return r=n(o),f=t.call(o,"ontouchstart")>=0,s={horizontal:{},vertical:{}},u=1,a={},c="waypoints-context-id",p="resize.waypoints",v="scroll.waypoints",y=1,m="waypoints-waypoint-ids",g="waypoint",w="waypoints",i=function(){function t(t){var e=this;this.$element=t,this.element=t[0],this.didResize=!1,this.didScroll=!1,this.id="context"+u++,this.oldScroll={x:t.scrollLeft(),y:t.scrollTop()},this.waypoints={horizontal:{},vertical:{}},t.data(c,this.id),a[this.id]=this,t.bind(v,function(){var t;if(!e.didScroll&&!f)return e.didScroll=!0,t=function(){return e.doScroll(),e.didScroll=!1},o.setTimeout(t,n[w].settings.scrollThrottle)}),t.bind(p,function(){var t;if(!e.didResize)return e.didResize=!0,t=function(){return n[w]("refresh"),e.didResize=!1},o.setTimeout(t,n[w].settings.resizeThrottle)})}return t.prototype.doScroll=function(){var t,e=this;return t={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},!f||t.vertical.oldScroll&&t.vertical.newScroll||n[w]("refresh"),n.each(t,function(t,o){var r,i,l;return l=[],i=o.newScroll>o.oldScroll,r=i?o.forward:o.backward,n.each(e.waypoints[t],function(t,e){var n,r;return o.oldScroll<(n=e.offset)&&n<=o.newScroll?l.push(e):o.newScroll<(r=e.offset)&&r<=o.oldScroll?l.push(e):void 0}),l.sort(function(t,e){return t.offset-e.offset}),i||l.reverse(),n.each(l,function(t,e){if(e.options.continuous||t===l.length-1)return e.trigger([r])})}),this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}},t.prototype.refresh=function(){var t,e,o,r=this;return o=n.isWindow(this.element),e=this.$element.offset(),this.doScroll(),t={horizontal:{contextOffset:o?0:e.left,contextScroll:o?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:o?0:e.top,contextScroll:o?0:this.oldScroll.y,contextDimension:o?n[w]("viewportHe
1ight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}},n.each(t,function(t,e){return n.each(r.waypoints[t],function(t,o){var r,i,l,s,u;if(r=o.options.offset,l=o.offset,i=n.isWindow(o.element)?0:o.$element.offset()[e.offsetProp],n.isFunction(r)?r=r.apply(o.element):"string"==typeof r&&(r=parseFloat(r),o.options.offset.indexOf("%")>-1&&(r=Math.ceil(e.contextDimension*r/100))),o.offset=i-e.contextOffset+e.contextScroll-r,(!o.options.onlyOnScroll||null==l)&&o.enabled)return null!==l&&l<(s=e.oldScroll)&&s<=o.offset?o.trigger([e.backward]):null!==l&&l>(u=e.oldScroll)&&u>=o.offset?o.trigger([e.forward]):null===l&&e.oldScroll>=o.offset?o.trigger([e.forward]):void 0})})},t.prototype.checkEmpty=function(){if(n.isEmptyObject(this.waypoints.horizontal)&&n.isEmptyObject(this.waypoints.vertical))return this.$element.unbind([p,v].join(" ")),delete a[this.id]},t}(),l=function(){function t(t,e,o){var r,i;"bottom-in-view"===(o=n.extend({},n.fn[g].defaults,o)).offset&&(o.offset=function(){var t;return t=n[w]("viewportHeight"),n.isWindow(e.element)||(t=e.$element.height()),t-n(this).outerHeight()}),this.$element=t,this.element=t[0],this.axis=o.horizontal?"horizontal":"vertical",this.callback=o.handler,this.context=e,this.enabled=o.enabled,this.id="waypoints"+y++,this.offset=null,this.options=o,e.waypoints[this.axis][this.id]=this,s[this.axis][this.id]=this,(r=null!=(i=t.data(m))?i:[]).push(this.id),t.data(m,r)}return t.prototype.trigger=function(t){if(this.enabled)return null!=this.callback&&this.callback.apply(this.element,t),this.options.triggerOnce?this.destroy():void 0},t.prototype.disable=function(){return this.enabled=!1},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0},t.prototype.destroy=function(){return delete s[this.axis][this.id],delete this.context.waypoints[this.axis][this.id],this.context.checkEmpty()},t.getWaypointsByElement=function(t){var e,o;return(o=n(t).data(m))?(e=n.extend({},s.horizontal,s.vertical),n.map(o,function(t){return e[t]})):[]},t}(),d={init:function(t,e){return null==e&&(e={}),null==e.handler&&(e.handler=t),this.each(function(){var t,o,r,s;return t=n(this),r=null!=(s=e.context)?s:n.fn[g].defaults.context,n.isWindow(r)||(r=t.closest(r)),r=n(r),(o=a[r.data(c)])||(o=new i(r)),new l(t,o,e)}),n[w]("refresh"),this},disable:function(){return d._invoke(this,"disable")},enable:function(){return d._invoke(this,"enable")},destroy:function(){return d._invoke(this,"destroy")},prev:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e>0)return t.push(n[e-1])})},next:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e<n.length-1)return t.push(n[e+1])})},_traverse:function(t,e,r){var i,l;return null==t&&(t="vertical"),null==e&&(e=o),l=h.aggregate(e),i=[],this.each(function(){var e;return e=n.inArray(this,l[t]),r(i,e,l[t])}),this.pushStack(i)},_invoke:function(t,e){return t.each(function(){var t;return t=l.getWaypointsByElement(this),n.each(t,function(t,n){return n[e](),!0})}),this}},n.fn[g]=function(){var t,o;return o=arguments[0],t=2<=arguments.length?e.call(arguments,1):[],d[o]?d[o].apply(this,t):n.isFunction(o)?d.init.apply(this,arguments):n.isPlainObject(o)?d.init.apply(this,[null,o]):o?n.error("The "+o+" method does not exist in jQuery Waypoints."):n.error("jQuery Waypoints needs a callback function or handler option.")},n.fn[g].defaults={context:o,continuous:!0,enabled:!0,horizontal:!1,offset:0,triggerOnce:!1},h={refresh:function(){return n.each(a,function(t,e){return e.refresh()})},viewportHeight:function(){var t;return null!=(t=o.innerHeight)?t:r.height()},aggregate:function(t){var e,o,r;return e=s,t&&(e=null!=(r=a[n(t).data(c)])?r.waypoints:void 0),e?(o={horizontal:[],vertical:[]},n.each(o,function(t,r){return n.each(e[t],function(t,e){return r.push(e)}),r.sort(function(t,e){return t.offset-e.offset}),o[t]=n.map(r,function(t){return t.element}),o[t]=n.unique(o[t])}),o):[]},above:function(t){return null==t&&(t=o),h._filter(t,"vertical",function(t,e){return e.offset<=t.oldScroll.y})},below:function(t){return null==t&&(t=o),h._filter(t,"vertical",function(t,e){return e.offset>t.oldScroll.y})},left:function(t){return null==t&&(t=o),h._filter(t,"horizontal",function(t,e){return e.offset<=t.oldScroll.x})},right:function(t){return null==t&&(t=o),h._filter(t,"horizontal",function(t,e){return e.offset>t.oldScroll.x})},enable:function(){return h._invoke("enable")},disable:function(){return h._invoke("disable")},destroy:function(){return h._invoke("destroy")},extendFn:function(t,e){return d[t]=e},_invoke:function(t){var e;return e=n.extend({},s.vertical,s.horizontal),n.each(e,function(e,n){return n[t](),!0})},_filter:function(t,e,o){var r,i;return(r=a[n(t).data(c)])?(i=[],n.each(r.waypoints[e],function(t,e){if(o(r,e))return i.push(e)}),i.sort(function(t,e){return t.offset-e.offset}),n.map(i,function(t){return t.element})):[]}},n[w]=function(){var t,n;
1return n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[],h[n]?h[n].apply(null,t):h.aggregate.call(null,n)},n[w].settings={resizeThrottle:100,scrollThrottle:30},r.load(function(){return n[w]("refresh")})})}.call(this);

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.