PageSourceSearch

https://belledebrillet.com/cdn/shop/t/67/assets/header-sticky.js?v=98842436234814683891706088202

js belledebrillet.com collected 2026-10-05 18:30:28 UTC 1,887 bytes, 2 lines download raw bytes

1class StickyHeader extends HTMLElement{constructor(){super()}connectedCallback(){this.header=document.getElementById("shopify-section-header"),this.headerBounds={},this.currentScrollTop=0,this.preventReveal=!1,this.onScrollHandler=this.onScroll.bind(this),this.hideHeaderOnScrollUp=()=>this.preventReveal=!0,this.addEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.addEventListener("scroll",this.onScrollHandler,!1),this.createObserver()}disconnectedCallback(){this.removeEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.removeEventListener("scroll",this.onScrollHandler)}createObserver(){new IntersectionObserver((entries,observer2)=>{this.headerBounds=entries[0].intersectionRect,observer2.disconnect()}).observe(this.header)}onScroll(){const scrollTop=window.pageYOffset||document.documentElement.scrollTop;scrollTop>this.currentScrollTop?requestAnimationFrame(this.hide.bind(this)):scrollTop<this.currentScrollTop?this.preventReveal?(window.clearTimeout(this.isScrolling),this.isScrolling=setTimeout(()=>{this.preventReveal=!1},1),requestAnimationFrame(this.hide.bind(this))):requestAnimationFrame(this.reveal.bind(this)):scrollTop<=this.headerBounds.top&&requestAnimationFrame(this.reset.bind(this)),this.currentScrollTop=scrollTop}hide(){this.header.classList.add("shopify-section-header-sticky"),this.closeMenuDisclosure()}reveal(){this.header.classList.add("shopify-section-header-sticky"),this.header.classList.remove("shopify-section-header-hidden")}reset(){this.header.classList.remove("shopify-section-header-sticky")}closeMenuDisclosure(){this.disclosures=this.disclosures||this.header.querySelectorAll("details-disclosure"),this.disclosures.forEach(disclosure=>disclosure.close())}}customElements.define("sticky-header",StickyHeader);
2//# sourceMappingURL=/cdn/shop/t/67/assets/header-sticky.js.map?v=98842436234814683891706088202

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.