PageSourceSearch

https://www.ylasatakunta.fi/javascript-8.38.0.20260121194855.710b3cad28

js ylasatakunta.fi collected 2026-10-02 13:29:47 UTC 1,452 bytes, 3 lines download raw bytes

1document.addEventListener("DOMContentLoaded",()=>{function n(a,b,d){const g=a.value,h=a.vel;b=h+(-m.stiffness*(g-b)-m.damping*h)/m.mass*d;a.vel=b;a.value=g+b*d}function t(a){var b={value:0,vel:0},d={value:0,vel:0},g=0,h=0,k=null,l=0;const p=()=>{const e=Math.round(g),c=Math.round(h);b.value=e;b.vel=0;d.value=c;d.vel=0;a.style.setProperty("--pill-x",e+"px");a.style.setProperty("--pill-w",c+"px")},q=e=>{l||=e;var c=Math.max(0,Math.min(1/30,(e-l)/1E3));l=e;n(b,g,c);n(d,h,c);a.style.setProperty("--pill-x",
2b.value.toFixed(2)+"px");a.style.setProperty("--pill-w",Math.max(0,d.value).toFixed(2)+"px");e=Math.abs(d.value-h);c=Math.abs(b.vel);const f=Math.abs(d.vel);.25>Math.abs(b.value-g)&&.25>e&&.25>c&&.25>f?(p(),cancelAnimationFrame(k),k=null,l=0):k=requestAnimationFrame(q)};return{setToActive:(e=!0)=>{var c=a.querySelector(".btn.active")||a.querySelector(".btn");if(c){var f=a.getBoundingClientRect();c=c.getBoundingClientRect();f={x:Math.round(c.left-f.left-3),w:Math.round(c.width)}}else f=null;f&&(g=
3f.x,h=f.w,""!==a.style.getPropertyValue("--pill-w").trim()&&e?k||=requestAnimationFrame(q):p())}}}const r=document.querySelectorAll(".button-wrap.article-swap-btn");if(r.length){var m={stiffness:480,damping:36,mass:1};r.forEach(a=>{const b=t(a);b.setToActive(!1);a.addEventListener("click",d=>{d.target.closest(".btn")&&requestAnimationFrame(()=>b.setToActive(!0))});window.addEventListener("resize",()=>b.setToActive(!1),{passive:!0})})}});

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.