PageSourceSearch

https://gyre.pro/build/navbar.8f070457.js

js gyre.pro collected 2026-10-01 12:00:51 UTC 2,442 bytes, 1 lines download raw bytes

1const k="modulepreload",p=function(e){return"/build/"+e},y={},E=function(n,a,l){if(!a||a.length===0)return n();const r=document.getElementsByTagName("link");return Promise.all(a.map(t=>{if(t=p(t),t in y)return;y[t]=!0;const c=t.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(!!l)for(let i=r.length-1;i>=0;i--){const d=r[i];if(d.href===t&&(!c||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${t}"]${f}`))return;const o=document.createElement("link");if(o.rel=c?"stylesheet":k,c||(o.as="script",o.crossOrigin=""),o.href=t,document.head.appendChild(o),c)return new Promise((i,d)=>{o.addEventListener("load",i),o.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${t}`)))})})).then(()=>n())};function S(){const e=document.querySelector(".navbar-wrap");if(!e||e.dataset.navbarInitialized==="true")return;const n=e.querySelector(".navbar-header-wrap"),a=n?.querySelector(".logo-toggle-wrap .navbar-toggle"),l=n?.querySelector(".change-lang-desk"),r=e.querySelector(".mobile-menu"),t=r?.querySelector(".navbar-toggle");if(!n||!a||!l||!r||!t)return;e.dataset.navbarInitialized="true";const c=r.querySelectorAll(".jump-link"),f=()=>{r.style.display="none",document.body.style.overflow="visible"},m=()=>{r.style.display="block",document.body.style.overflow="hidden"},o=s=>{if(s.target.closest(".change-lang-desk")){l.classList.toggle("active");return}l.classList.remove("active")},i=()=>{f()},d=()=>{document.querySelectorAll(".folding-fixed-wrap").forEach(g=>{const u=g.querySelector(".folding-section");if(!u||!g.querySelector(".section"))return;const h=g.getBoundingClientRect(),b=u.getBoundingClientRect();h.bottom>200&&b.bottom>200&&h.top<0&&b.top<0&&(u.classList.contains("grey")?(n.classList.add("bright"),n.classList.remove("dark")):(u.classList.contains("black")||u.classList.contains("blue"))&&(n.classList.remove("bright"),n.classList.add("dark")))})};let v=0;const L=()=>{d();const s=document.documentElement.scrollTop||document.body.scrollTop;if(s>0&&v<=s){v+100<=s&&(v=s,e.classList.add("scrolled-down"),e.classList.remove("scrolled-up"),l.classList.remove("active"));return}v=s,e.classList.remove("scrolled-down"),e.classList.add("scrolled-up"),l.classList.remove("active")};t.addEventListener("click",f),a.addEventListener("click",m),document.addEventListener("click",o),window.addEventListener("scroll",L),c.forEach(s=>{s.addEventListener("click",i)})}typeof window<"u"&&S();export{E as _};

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.