PageSourceSearch

https://www.smartwool.com/cdn/shop/t/68/assets/header-minimal-expanded.Ba_LJ7oa.min.js

js smartwool.com collected 2026-09-24 10:26:58 UTC 1,938 bytes, 1 lines download raw bytes

1class r extends HTMLElement{constructor(){super(),this.scrollY=window.scrollY,this.promoBar=document.querySelector(".promo-bar"),this.topBarNavigation=document.querySelector(".top-bar-navigation"),this.enableSticky=this.getAttribute("data-enable-sticky")==="true",this.enableStickyHideOnScrollDown=this.getAttribute("data-enable-sticky-header-hide-on-scroll-down")==="true"}connectedCallback(){this.onScrollHandler=this.onScrollHandler.bind(this),window.addEventListener("components:loaded",()=>{this.setDynamicHeightCssVariable()}),this.addEventListeners()}disconnectedCallback(){this.removeEventListeners()}addEventListeners(){window.addEventListener("scroll",this.onScrollHandler)}removeEventListeners(){document.removeEventListener("scroll",this.onScrollHandler)}onScrollHandler(){var t,i;this.setDynamicHeightCssVariable();const e=((t=this.promoBar)==null?void 0:t.offsetHeight)||0,s=((i=this.topBarNavigation)==null?void 0:i.offsetHeight)||0;if(window.scrollY<e+s?this.setAttribute("data-is-top",!0):this.setAttribute("data-is-top",!1),this.enableSticky&&this.enableStickyHideOnScrollDown){const o=window.innerHeight/3,n=window.scrollY>this.scrollY;window.scrollY>o?n?(this.setAttribute("data-scrolled",!0),document.documentElement.setAttribute("data-header-hidden","")):(this.setAttribute("data-scrolled",!1),document.documentElement.removeAttribute("data-header-hidden")):(this.setAttribute("data-scrolled",!1),document.documentElement.removeAttribute("data-header-hidden"))}this.scrollY=window.scrollY}setDynamicHeightCssVariable(){const e=this.getBoundingClientRect();document.documentElement.style.setProperty("--header-dynamic-height",`${e.bottom}px`),document.documentElement.style.setProperty("--header-height",`${e.height}px`),document.documentElement.style.setProperty("--mobile-header-height",`${e.height}px`)}}const a=()=>{customElements.get("site-header")||customElements.define("site-header",r)};export{a as default};

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.