PageSourceSearch

https://shystab.github.io/js/aos.js

js shystab.github.io collected 2026-10-03 09:57:00 UTC 2,989 bytes, 1 lines download raw bytes

1(()=>{var L=(a,n)=>()=>{try{return n||a((n={exports:{}}).exports,n),n.exports}catch(r){throw n=0,r}};var _=L(O=>{var g=(a,n)=>{let r;return(...u)=>{clearTimeout(r),r=setTimeout(()=>{a.apply(O,u)},n)}},l,f,b,m;(()=>{let a={offset:120,delay:0,duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,easing:"ease"},n=[],r=!1,u=e=>{let t=0,o=0;for(;e;)t+=e.offsetLeft-(e.tagName!="BODY"?e.scrollLeft:0),o+=e.offsetTop-(e.tagName!="BODY"?e.scrollTop:0),e=e.offsetParent;return{top:o,left:t}},h=e=>[...e].some(t=>t.dataset?.aos||t.children&&h(t.children)),p=e=>{b?.disconnect(),b=new MutationObserver(t=>{t?.some(({addedNodes:o,removedNodes:s})=>h([...o,...s]))&&e()}),b.observe(document.documentElement,{childList:!0,subtree:!0})},y=(e,t,o)=>{let s=e.node.getAttribute("data-aos-once");t>e.position?e.node.classList.add("aos-animate"):(s==="false"||!o&&s!=="true")&&e.node.classList.remove("aos-animate")},v=(e,t)=>{let o=window.innerHeight+window.scrollY;e.forEach(s=>y(s,o,t))},A=(e,t)=>{let o=0,s=0,c=window.innerHeight,d={offset:e.getAttribute("data-aos-offset"),anchor:e.getAttribute("data-aos-anchor"),anchorPlacement:e.getAttribute("data-aos-anchor-placement")};switch(d.offset&&(s=parseInt(d.offset)),d.anchor&&(e=_$(d.anchor)||e),o=u(e).top,d.anchorPlacement){case"top-bottom":break;case"center-bottom":o+=e.offsetHeight/2;break;case"bottom-bottom":o+=e.offsetHeight;break;case"top-center":o+=c/2;break;case"bottom-center":o+=c/2+e.offsetHeight;break;case"center-center":o+=c/2+e.offsetHeight/2;break;case"top-top":o+=c;break;case"bottom-top":o+=e.offsetHeight+c;break;case"center-top":o+=e.offsetHeight/2+c;break}return!d.anchorPlacement&&!d.offset&&(s=t),o+s},E=(e,t)=>(e.forEach(o=>{o.node.classList.add("aos-init"),o.position=A(o.node,t.offset)}),e),i=(e=!1)=>{if(e&&(r=!0),r)return n=E(n,a),v(n,a.once),n},w=()=>{n=[..._$$("[data-aos]")].map(e=>({node:e})),i()},H=e=>{if(a={...a,...e},n=[..._$$("[data-aos]")].map(t=>({node:t})),a.disable){n.forEach(({node:t})=>{t.removeAttribute("data-aos"),t.removeAttribute("data-aos-easing"),t.removeAttribute("data-aos-duration"),t.removeAttribute("data-aos-delay")});return}return document.body.setAttribute("data-aos-easing",a.easing),document.body.setAttribute("data-aos-duration",a.duration),document.body.setAttribute("data-aos-delay",a.delay),a.startEvent==="DOMContentLoaded"&&["complete","interactive"].indexOf(document.readyState)>-1?i(!0):a.startEvent==="load"?window.addEventListener(a.startEvent,()=>{i(!0)}):document.addEventListener(a.startEvent,()=>{i(!0)}),f&&(window.off("resize",f),window.off("orientationchange",f)),f=g(i,a.debounceDelay),window.on("resize",f),window.on("orientationchange",f),l&&window.off("scroll",l),l=throttle(()=>v(n,a.once),a.throttleDelay),window.on("scroll",l),p(w),window.ResizeObserver&&_$("#main")&&(m?.disconnect?.(),m=new ResizeObserver(g(()=>i(),a.debounceDelay)),m.observe(_$("#main"))),n};window.AOS={init:H,refresh:i,refreshHard:w}})()});_();})();

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.