PageSourceSearch

https://jijifiber.co.ke/wp-content/themes/satenet/assets/js/smoothscroll.min.js?ver=1.20.2

js jijifiber.co.ke collected 2026-10-08 17:31:12 UTC 6,608 bytes, 4 lines download raw bytes

1/*
2 * Smooth Scroll Js
3*/
4!function(e){"use strict";var t=satenet_ajax_var.body_atts;if(!t.scroll_time)return!1;function o(){if(!L&&document.body){L=!0;var t=document.body,o=document.documentElement,n=window.innerHeight,r=t.scrollHeight;if(X=document.compatMode.indexOf("CSS")>=0?o:t,g=t,C.keyboardSupport&&f("keydown",a),top!=self)H=!0;else if(r>n&&(t.offsetHeight<=n||o.offsetHeight<=n)){var i,l=document.createElement("div");if(l.style.cssText="position:absolute; z-index:-10000; top:0; left:0; right:0; height:"+X.scrollHeight+"px",document.body.appendChild(l),x=function(){i||(i=setTimeout(function(){E||(l.style.height="0",l.style.height=X.scrollHeight+"px",i=null)},500))},setTimeout(x,10),f("resize",x),(S=new e(x)).observe(t,{attributes:!0,childList:!0,characterData:!1}),X.offsetHeight<=n){var c=document.createElement("div");c.style.clear="both",t.appendChild(c)}}C.fixedBackground||E||(t.style.backgroundAttachment="scroll",o.style.backgroundAttachment="scroll")}}function n(e,t,o){if(a=(a=t)>0?1:-1,i=(i=o)>0?1:-1,(z.x!==a||z.y!==i)&&(z.x=a,z.y=i,K=[],R=0),1!=C.accelerationMax){var n=Date.now()-R;if(n<C.accelerationDelta){var r=(1+50/n)/2;r>1&&(r=Math.min(r,C.accelerationMax),t*=r,o*=r)}R=Date.now()}var a,i;if(K.push({x:t,y:o,lastX:0>t?.99:-.99,lastY:0>o?.99:-.99,start:Date.now()}),!N){var l=e===document.body,c=function(n){for(var r=Date.now(),a=0,i=0,u=0;u<K.length;u++){var d=K[u],s=r-d.start,m=s>=C.animationTime,f=m?1:s/C.animationTime;C.pulseAlgorithm&&(f=(p=f)>=1?1:0>=p?0:(1==C.pulseNormalize&&(C.pulseNormalize/=y(1)),y(p)));var w=d.x*f-d.lastX>>0,h=d.y*f-d.lastY>>0;a+=w,i+=h,d.lastX+=w,d.lastY+=h,m&&(K.splice(u,1),u--)}var p;l?window.scrollBy(a,i):(a&&(e.scrollLeft+=a),i&&(e.scrollTop+=i)),t||o||(K=[]),K.length?F(c,e,1e3/C.frameRate+1):N=!1};F(c,e,0),N=!0}}function r(e){L||o();var t=e.target,r=u(t);if(!r||e.defaultPrevented||e.ctrlKey)return!0;if(h(g,"embed")||h(t,"embed")&&/\.pdf/i.test(t.src)||h(g,"object")||t.shadowRoot)return!0;var a,i=-e.wheelDeltaX||e.deltaX||0,c=-e.wheelDeltaY||e.deltaY||0;return A&&(e.wheelDeltaX&&p(e.wheelDeltaX,120)&&(i=e.wheelDeltaX/Math.abs(e.wheelDeltaX)*-120),e.wheelDeltaY&&p(e.wheelDeltaY,120)&&(c=e.wheelDeltaY/Math.abs(e.wheelDeltaY)*-120)),i||c||(c=-e.wheelDelta||0),1===e.deltaMode&&(i*=40,c*=40),!(C.touchpadSupport||(a=c,!a||(Y.length||(Y=[a,a,a]),a=Math.abs(a),Y.push(a),Y.shift(),clearTimeout(D),D=setTimeout(function(){window.localStorage&&(localStorage.SS_deltaBuffer=Y.join(","))},1e3),b(120)||b(100))))||(Math.abs(i)>1.2&&(i*=C.stepSize/120),Math.abs(c)>1.2&&(c*=C.stepSize/120),n(r,i,c),void l())}function a(e){var t=e.target,o=e.ctrlKey||e.altKey||e.metaKey||e.shiftKey&&e.keyCode!==B.spacebar;document.body.contains(g)||(g=document.activeElement);var r=/^(button|submit|radio|checkbox|file|color|image)$/i;if(e.defaultPrevented||/^(textarea|select|embed|object)$/i.test(t.nodeName)||h(t,"input")&&!r.test(t.type)||h(g,"video")||function(e){var t=e.target,o=!1;if(-1!=document.URL.indexOf("www.youtube.com/watch"))do{if(o=t.classList&&t.classList.contains("html5-video-controls"))break}while(t=t.parentNode);return o}(e)||t.isContentEditable||o)return!0;if((h(t,"button")||h(t,"input")&&r.test(t.type))&&e.keyCode===B.spacebar)return!0;if(h(t,"input")&&"radio"==t.type&&O[e.keyCode])return!0;var a=0,i=0,c=u(g),d=c.clientHeight;switch(c==document.body&&(d=window.innerHeight),e.keyCode){case B.up:i=-C.arrowScroll;break;case B.down:i=C.arrowScroll;break;case B.spacebar:i=-(e.shiftKey?1:-1)*d*.9;break;case B.pageup:i=.9*-d;break;case B.pagedown:i=.9*d;break;case B.home:i=-c.scrollTop;break;case B.end:var s=c.scrollHeight-c.scrollTop-d;i=s>0?s+10:0;break;case B.left:a=-C.arrowScroll;break;case B.right:a=C.arrowScroll;break;default:return!0}n(c,a,i),e.preventDefault(),l()}function i(e){g=e.target}function l(){clearTimeout(k),k=setInterval(function(){j={}},1e3)}function c(e,t){for(var o=e.length;o--;)j[_(e[o])]=t;return t}function u(e){var t=[],o=document.body,n=X.scrollHeight;do{var r=j[_(e)];if(r)return c(t,r);if(t.push(e),n===e.scrollHeight){var a=s(X)&&s(o)||m(X);if(H&&d(X)||!H&&a)return c(t,I())}else if(d(e)&&m(e))return c(t,e)}while(e=e.parentElement)}function d(e){return e.clientHeight+10<e.scrollHeight}function s(e){return"hidden"!==getComputedStyle(e,"").getPropertyValue("overflow-y")}function m(e){var t=getComputedStyle(e,"").getPropertyValue("overflow-y");return"scroll"===t||"auto"===t}function f(e,t){window.addEventListener(e,t,!1)}function w(e,t){window.removeEventListener(e,t,!1)}function h(e,t){return(e.nodeName||"").toLowerCase()===t.toLowerCase()}function p(e,t){return Math.floor(e/t)==e/t}function b(e){return p(Y[0],e)&&p(Y[1],e)&&p(Y[2],e)}function y(e){var t,o;return 1>(e*=C.pulseScale)?t=e-(1-Math.exp(-e)):(e-=1,t=(o=Math.exp(-1))+(1-Math.exp(-e))*(1-o)),t*C.pulseNormalize}function v(e){for(var t in e)T.hasOwnProperty(t)&&(C[t]=e[t])}var g,S,x,k,D,M,T={frameRate:150,animationTime:t.scroll_time,stepSize:t.scroll_dist,pulseAlgorithm:!0,pulseScale:4,pulseNormalize:1,accelerationDelta:50,accelerationMax:3,keyboardSupport:!0,arrowScroll:50,touchpadSupport:!1,fixedBackgroun
4d:!0,excluded:""},C=T,E=!1,H=!1,z={x:0,y:0},L=!1,X=document.documentElement,Y=[],A=/^Mac/.test(navigator.platform),B={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36},O={37:1,38:1,39:1,40:1},K=[],N=!1,R=Date.now(),_=(M=0,function(e){return e.uniqueID||(e.uniqueID=M++)}),j={};window.localStorage&&localStorage.SS_deltaBuffer&&(Y=localStorage.SS_deltaBuffer.split(","));var q,P,F=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e,t,o){window.setTimeout(e,o||1e3/60)},I=(e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,function(){if(!P){var e=document.createElement("div");e.style.cssText="height:10000px;width:1px;",document.body.appendChild(e);var t=document.body.scrollTop;document.documentElement.scrollTop,window.scrollBy(0,3),P=document.body.scrollTop!=t?document.body:document.documentElement,window.scrollBy(0,-3),document.body.removeChild(e)}return P}),V=window.navigator.userAgent,Q=!/mobile/i.test(V);"onwheel"in document.createElement("div")?q="wheel":"onmousewheel"in document.createElement("div")&&(q="mousewheel"),q&&Q&&(f(q,r),f("mousedown",i),f("load",o)),v.destroy=function(){S&&S.disconnect(),w(q,r),w("mousedown",i),w("keydown",a),w("resize",x),w("load",o)},window.SmoothScrollOptions&&v(window.SmoothScrollOptions),"function"==typeof define&&define.amd?define(function(){return v}):"object"==typeof exports?module.exports=v:window.SmoothScroll=v}(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.