PageSourceSearch

https://www.reneerouleau.com/cdn/shop/t/118/assets/chunk--StickyHeader-2RHAITPL.vbt.js

js reneerouleau.com collected 2026-09-24 18:44:53 UTC 1,756 bytes, 1 lines download raw bytes

1import"./chunk--chunk-IULP5YAC.vbt.js";var r=class{constructor(e){this.header=e,this.isHidden=!1,this.lastScrollY=window.scrollY,this.ticking=!1,this.hasUserScrolled=!1;let s=getComputedStyle(this.header).position;this.isNaturallyFixed=s==="fixed"||s==="absolute",this.isNaturallyFixed||(this.spacer=document.createElement("div"),this.spacer.style.height="0px",this.header.parentElement.insertBefore(this.spacer,this.header.nextSibling));let t=()=>{this.hasUserScrolled=!0};window.addEventListener("wheel",t,{once:!0,passive:!0}),window.addEventListener("touchmove",t,{once:!0,passive:!0}),window.addEventListener("keydown",h=>{["ArrowDown","ArrowUp","PageDown","PageUp"," "].includes(h.key)&&t()},{passive:!0}),document.addEventListener("scroll",()=>{this.ticking||(window.requestAnimationFrame(()=>{this.onScroll(),this.ticking=!1}),this.ticking=!0)}),window.scrollY>0&&this.show();let i=document.getElementById("cart-drawer-toggle");i&&i.addEventListener("change",()=>{i.checked&&window.scrollY>0&&this.show()})}show(){this.header.classList.add("scrolled"),this.header.style.transform="translateY(0)",this.isHidden=!1,this.spacer&&(this.spacer.style.height=this.header.offsetHeight+"px")}hide(){this.header.classList.contains("scrolled")||(this.spacer&&(this.spacer.style.height=this.header.offsetHeight+"px"),this.header.classList.add("scrolled")),this.header.style.transform="translateY(-100%)",this.isHidden=!0}onScroll(){let e=window.scrollY,s=e-this.lastScrollY;if(this.lastScrollY=e,e<=0){this.header.classList.remove("scrolled"),this.header.style.transform="",this.isHidden=!1,this.spacer&&(this.spacer.style.height="0px");return}this.hasUserScrolled&&(s>0&&!this.isHidden?this.hide():s<0&&this.isHidden&&this.show())}},a=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.