PageSourceSearch

https://www.ljudmakarn.se/build/assets/pageNav-D4GGjOhY.js

js ljudmakarn.se collected 2026-09-26 20:51:45 UTC 2,065 bytes, 1 lines download raw bytes

1window.fixedPageNavigation=()=>{const d=document.querySelector(".page-navigation-position-holder"),a=document.querySelector(".page-navigation"),u=document.querySelector(".page"),m=document.querySelectorAll("section[id]");if(!a||!d)return;const L=d.offsetTop+1;let c=!1;function f(t,i=20,n=!0){let s;return function(){let e=this,l=arguments,r=function(){s=null,n||t.apply(e,l)},k=n&&!s;clearTimeout(s),s=setTimeout(r,i),k&&t.apply(e,l)}}function y(){window.scrollY>=L?(a.classList.add("is-fixed"),u.classList.add("has-page-navigation")):(a.classList.remove("is-fixed"),u.classList.remove("has-page-navigation"))}document.querySelectorAll(".page-anchor-link").forEach(t=>{t.addEventListener("click",function(i){i.preventDefault(),document.querySelectorAll(".page-anchor-link.is-active").forEach(e=>{e.classList.remove("is-active")}),this.classList.add("is-active"),c=!0;const n=this.getAttribute("href").slice(1);document.getElementById(n).scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}),setTimeout(()=>{c=!1},1e3)})});function w(){m.forEach(t=>{const i=t.offsetHeight,n=t.offsetTop-240;let s=t.getAttribute("id");const e=document.querySelector(`a[data-section-id="${s}"]`);if(e)if(!c&&window.scrollY>n&&window.scrollY<=n+i){e.classList.add("is-active");const l=e.getBoundingClientRect();if(l.right>window.innerWidth||l.left<48){const r=e.offsetLeft-48;e.parentElement.scrollLeft=r}}else c||e.classList.remove("is-active")})}const g=document.querySelector(".scroll-button.is-left"),v=document.querySelector(".scroll-button.is-right"),o=document.querySelector(".page-anchor-links"),h=()=>{g.style.display=o.scrollLeft>0?"flex":"none",v.style.display=o.scrollWidth-o.scrollLeft>o.clientWidth?"flex":"none"},p=t=>{let i=t==="left"?o.scrollLeft-185:o.scrollLeft+185;o.scroll({left:i,behavior:"smooth"})};h(),o.addEventListener("scroll",h),g.addEventListener("click",()=>p("left")),v.addEventListener("click",()=>p("right")),window.addEventListener("scroll",f(w),{passive:!0}),window.addEventListener("scroll",f(y),{passive:!0})};fixedPageNavigation();

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.