芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/timucuy.com/wp-content/themes/customizr/assets/front/js/libs/smoothscroll.min.js
!function(){function a(){D.keyboardSupport&&n("keydown",f)}function b(){if(!H&&document.body){H=!0;var b=document.body,c=document.documentElement,d=window.innerHeight,e=b.scrollHeight;if(I=document.compatMode.indexOf("CSS")>=0?c:b,y=b,a(),top!=self)F=!0;else if(e>d&&(b.offsetHeight<=d||c.offsetHeight<=d)){var f=document.createElement("div");f.style.cssText="position:absolute; z-index:-10000; top:0; left:0; right:0; height:"+I.scrollHeight+"px",document.body.appendChild(f);var g,h=function(){g||(g=setTimeout(function(){E||(f.style.height="0",f.style.height=I.scrollHeight+"px",g=null)},500))};setTimeout(h,10);var i={attributes:!0,childList:!0,characterData:!1};if(z=new T(h),z.observe(b,i),I.offsetHeight<=d){var j=document.createElement("div");j.style.clear="both",b.appendChild(j)}}D.fixedBackground||E||(b.style.backgroundAttachment="scroll",c.style.backgroundAttachment="scroll")}}function c(){z&&z.disconnect(),o(R,e),o("mousedown",g),o("keydown",f)}function d(a,b,c){if(q(b,c),1!=D.accelerationMax){var d=Date.now(),e=d-O;if(e
1&&(f=Math.min(f,D.accelerationMax),b*=f,c*=f)}O=Date.now()}if(M.push({x:b,y:c,lastX:0>b?.99:-.99,lastY:0>c?.99:-.99,start:Date.now()}),!N){var g=a===document.body,h=function(d){for(var e=Date.now(),f=0,i=0,j=0;j
=D.animationTime,n=m?1:l/D.animationTime;D.pulseAlgorithm&&(n=w(n));var o=k.x*n-k.lastX>>0,p=k.y*n-k.lastY>>0;f+=o,i+=p,k.lastX+=o,k.lastY+=p,m&&(M.splice(j,1),j--)}g?window.scrollBy(f,i):(f&&(a.scrollLeft+=f),i&&(a.scrollTop+=i)),b||c||(M=[]),M.length?S(h,a,1e3/D.frameRate+1):N=!1};S(h,a,0),N=!0}}function e(a){H||b();var c=a.target,e=j(c);if(!e||a.defaultPrevented||a.ctrlKey)return!0;if(p(y,"embed")||p(c,"embed")&&/\.pdf/i.test(c.src)||p(y,"object"))return!0;var f=-a.wheelDeltaX||a.deltaX||0,g=-a.wheelDeltaY||a.deltaY||0;return K&&(a.wheelDeltaX&&s(a.wheelDeltaX,120)&&(f=-120*(a.wheelDeltaX/Math.abs(a.wheelDeltaX))),a.wheelDeltaY&&s(a.wheelDeltaY,120)&&(g=-120*(a.wheelDeltaY/Math.abs(a.wheelDeltaY)))),f||g||(g=-a.wheelDelta||0),1===a.deltaMode&&(f*=40,g*=40),!D.touchpadSupport&&r(g)?!0:(Math.abs(f)>1.2&&(f*=D.stepSize/120),Math.abs(g)>1.2&&(g*=D.stepSize/120),d(e,f,g),a.preventDefault(),void h())}function f(a){var b=a.target,c=a.ctrlKey||a.altKey||a.metaKey||a.shiftKey&&a.keyCode!==L.spacebar;document.contains(y)||(y=document.activeElement);var e=/^(textarea|select|embed|object)$/i,f=/^(button|submit|radio|checkbox|file|color|image)$/i;if(e.test(b.nodeName)||p(b,"input")&&!f.test(b.type)||p(y,"video")||u(a)||b.isContentEditable||a.defaultPrevented||c)return!0;if((p(b,"button")||p(b,"input")&&f.test(b.type))&&a.keyCode===L.spacebar)return!0;var g,i=0,k=0,l=j(y),m=l.clientHeight;switch(l==document.body&&(m=window.innerHeight),a.keyCode){case L.up:k=-D.arrowScroll;break;case L.down:k=D.arrowScroll;break;case L.spacebar:g=a.shiftKey?1:-1,k=-g*m*.9;break;case L.pageup:k=.9*-m;break;case L.pagedown:k=.9*m;break;case L.home:k=-l.scrollTop;break;case L.end:var n=l.scrollHeight-l.scrollTop-m;k=n>0?n+10:0;break;case L.left:i=-D.arrowScroll;break;case L.right:i=D.arrowScroll;break;default:return!0}d(l,i,k),a.preventDefault(),h()}function g(a){y=a.target}function h(){clearTimeout(A),A=setInterval(function(){Q={}},1e3)}function i(a,b){for(var c=a.length;c--;)Q[P(a[c])]=b;return b}function j(a){var b=[],c=document.body,d=I.scrollHeight;do{var e=Q[P(a)];if(e)return i(b,e);if(b.push(a),d===a.scrollHeight){var f=l(I)&&l(c),g=f||m(I);if(F&&k(I)||!F&&g)return i(b,U())}else if(k(a)&&m(a))return i(b,a)}while(a=a.parentElement)}function k(a){return a.clientHeight+10
0?1:-1,b=b>0?1:-1,G.x===a&&G.y===b||(G.x=a,G.y=b,M=[],O=0)}function r(a){return a?(J.length||(J=[a,a,a]),a=Math.abs(a),J.push(a),J.shift(),clearTimeout(B),B=setTimeout(function(){window.localStorage&&(localStorage.SS_deltaBuffer=J.join(","))},1e3),!t(120)&&!t(100)):void 0}function s(a,b){return Math.floor(a/b)==a/b}function t(a){return s(J[0],a)&&s(J[1],a)&&s(J[2],a)}function u(a){var b=a.target,c=!1;if(-1!=document.URL.indexOf("www.youtube.com/watch"))do if(c=b.classList&&b.classList.contains("html5-video-controls"))break;while(b=b.parentNode);return c}function v(a){var b,c,d;return a*=D.pulseScale,1>a?b=a-(1-Math.exp(-a)):(c=Math.exp(-1),a-=1,d=1-Math.exp(-a),b=c+d*(1-c)),b*D.pulseNormalize}function w(a){return a>=1?1:0>=a?0:(1==D.pulseNormalize&&(D.pulseNormalize/=v(1)),v(a))}function x(a){return R&&(n(R,e),n("mousedown",g),a?b():n("load",b)),!!R}var y,z,A,B,C={frameRate:150,animationTime:400,stepSize:120,pulseAlgorithm:!0,pulseScale:4,pulseNormalize:1,accelerationDelta:20,accelerationMax:1,keyboardSupport:!0,arrowScroll:50,touchpadSupport:!0,fixedBackground:!0,excluded:""},D=C,E=!1,F=!1,G={x:0,y:0},H=!1,I=document.documentElement,J=[],K=/^Mac/.test(navigator.platform),L={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36},D=C,M=[],N=!1,O=Date.now(),P=function(){var a=0;return function(b){return b.uniqueID||(b.uniqueID=a++)}}(),Q={};window.localStorage&&localStorage.SS_deltaBuffer&&(J=localStorage.SS_deltaBuffer.split(","));var R,S=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(a,b,c){window.setTimeout(a,c||1e3/60)}}(),T=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,U=function(){var a;return function(){if(!a){var b=document.createElement("div");b.style.cssText="height:10000px;width:1px;",document.body.appendChild(b);var c=document.body.scrollTop;document.documentElement.scrollTop;window.scrollBy(0,1),a=document.body.scrollTop!=c?document.body:document.documentElement,window.scrollBy(0,-1),document.body.removeChild(b)}return a}}();"onwheel"in document.createElement("div")?R="wheel":"onmousewheel"in document.createElement("div")&&(R="mousewheel"),smoothScroll=function(a){smoothScroll._setCustomOptions(a),x()&&czrapp.$_body.addClass("tc-smoothscroll")},smoothScroll._cleanUp=function(){c(),czrapp.$_body.removeClass("tc-smoothscroll")},smoothScroll._maybeFire=function(){x(!0)&&czrapp.$_body.addClass("tc-smoothscroll")},smoothScroll._setCustomOptions=function(a){D=a?_.extend(D,a):D}}();var smoothScroll;