PageSourceSearch

https://endorfy.com/cdn/shop/t/6/compiled_assets/scripts.js?v=6552047183903886731767788221

js endorfy.com collected 2026-10-04 15:34:15 UTC 4,419 bytes, 2 lines download raw bytes

1(function(){var __sections__={};(function(){for(var i=0,s=document.getElementById("sections-script").getAttribute("data-sections").split(",");i<s.length;i++)__sections__[s[i]]=!0})(),(function(){if(__sections__.header)try{class StickyHeader extends HTMLElement{constructor(){super()}connectedCallback(){this.header=document.querySelector(".shopify-section-header"),this.headerIsAlwaysSticky=this.getAttribute("data-sticky-type")==="always",this.currentScrollTop=0,this.preventReveal=!1,this.headerCoords={},this.calcHeaderCoords(),this.onScrollHandler=this.onScroll.bind(this),this.hideHeaderOnScrollUp=()=>{this.preventReveal=!0},this.addEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.addEventListener("scroll",this.onScrollHandler,!1)}disconnectedCallback(){this.removeEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.removeEventListener("scroll",this.onScrollHandler)}calcHeaderCoords(){const clientRect=this.getBoundingClientRect(),pageYOffset=window.pageYOffset||document.documentElement.scrollTop;this.headerCoords.bottom=pageYOffset+clientRect.bottom,this.headerCoords.top=pageYOffset+clientRect.top}onScroll(){const scrollTop=window.pageYOffset||document.documentElement.scrollTop;if(this.headerIsAlwaysSticky&&(scrollTop>this.header.offsetHeight+1&&(this.header.classList.add("shopify-section-header-sticky"),this.header.classList.contains("color-background-overlay")&&(this.header.classList.remove("color-background-overlay"),this.header.classList.add("color-background-overlay-hidden"))),scrollTop<this.header.offsetHeight&&(this.header.classList.remove("shopify-section-header-sticky"),this.header.classList.contains("color-background-overlay-hidden")&&(this.header.classList.add("color-background-overlay"),this.header.classList.remove("color-background-overlay-hidden")))),scrollTop>this.currentScrollTop&&scrollTop>this.headerCoords.bottom){if(this.preventHide)return;requestAnimationFrame(this.hide.bind(this))}else scrollTop<this.currentScrollTop&&scrollTop>this.headerCoords.bottom?this.preventReveal?(window.clearTimeout(this.isScrolling),this.isScrolling=setTimeout(()=>{this.preventReveal=!1},66),requestAnimationFrame(this.hide.bind(this))):requestAnimationFrame(this.reveal.bind(this)):scrollTop<=this.headerCoords.top&&requestAnimationFrame(this.reset.bind(this));this.currentScrollTop=scrollTop}hide(){this.headerIsAlwaysSticky||(this.header.classList.add("shopify-section-header-hidden","shopify-section-header-sticky"),this.closeMenuDisclosure())}reveal(){this.headerIsAlwaysSticky||(this.header.classList.add("shopify-section-header-sticky","animate"),this.header.classList.remove("shopify-section-header-hidden"),this.header.classList.contains("color-background-overlay")&&(this.header.classList.remove("color-background-overlay"),this.header.classList.add("color-background-overlay-hidden")))}reset(){if(!this.headerIsAlwaysSticky&&(this.header.classList.remove("shopify-section-header-hidden","shopify-section-header-sticky","animate"),this.header.classList.contains("color-background-overlay-hidden"))){if(Array.from(document.querySelectorAll(".mega-menu")).some(megaMenu=>megaMenu.hasAttribute("open")))return;this.header.classList.add("color-background-overlay"),this.header.classList.remove("color-background-overlay-hidden")}}closeMenuDisclosure(){this.disclosures=this.disclosures||this.header.querySelectorAll("details-disclosure"),customElements.get("details-disclosure")&&this.disclosures.forEach(disclosure=>{disclosure.close()}),this.disclosureLists=this.header.querySelectorAll(".disclosure__list"),this.disclosureLists.forEach(disclosureList=>{disclosureList.setAttribute("hidden",!0)})}}customElements.define("sticky-header",StickyHeader)}catch(e){console.error(e)}})(),(function(){if(__sections__["main-product"])try{class ProductModal extends ModalDialog{constructor(){super()}hide(){super.hide(),window.pauseAllMedia()}show(opener){super.show(opener),this.showActiveMedia()}showActiveMedia(){const activeMedia=this.querySelector(`[data-media-id="${this.openedBy.getAttribute("data-media-id")}"]`);activeMedia.nodeName=="DEFERRED-MEDIA"&&activeMedia.querySelector("template")?.content?.querySelector(".js-youtube")&&activeMedia.loadContent()}}customElements.define("product-modal",ProductModal)}catch(e){console.error(e)}})()})();
2//# sourceMappingURL=/cdn/shop/t/6/compiled_assets/scripts.js.map?v=6552047183903886731767788221

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.