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