PageSourceSearch

https://www.lampdirect.nl/static/version1790658255/frontend/Wwl/an…/Magento_Theme/js/islands/sticky-header.js

js lampdirect.nl collected 2026-10-04 14:36:31 UTC 620 bytes, 1 lines download raw bytes

1const DESKTOP_QUERY="(min-width: 769px)",DEFAULT_SCROLL_OFFSET=75,DEFAULT_FIXED_CLASS="header--fixed";function isDesktopViewport(){return window.matchMedia(DESKTOP_QUERY).matches}function initStickyHeader(){const e=document.querySelector("header.header");if(!e)return;const t=Number(e.dataset.scrollOffset)||75,i=e.dataset.headerFixedClass||"header--fixed";function d(){isDesktopViewport()&&window.scrollY>=t?e.classList.add(i):e.classList.remove(i)}window.addEventListener("scroll",d,{passive:!0}),window.addEventListener("resize",d),window.matchMedia(DESKTOP_QUERY).addEventListener("change",d),d()}initStickyHeader();

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.