PageSourceSearch

https://campusflats.com/wp-content/themes/unh-apartments/js/smoothscroll.min.js

js campusflats.com collected 2026-10-06 12:50:36 UTC 7,855 bytes, 1 lines download raw bytes

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

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.