PageSourceSearch

https://drvaidyas.com/cdn/shop/t/344/assets/header.js?v=139348793745598728721789197808

js drvaidyas.com collected 2026-09-25 04:41:25 UTC 2,794 bytes, 2 lines download raw bytes

1class MHeader extends HTMLElement{constructor(){super(),this.selectors={headers:["header"],logos:[".m-logo"],topbar:".m-topbar",headerWrapper:".m-header__wrapper",topbarClose:".m-topbar__close"},this.domNodes=queryDomNodes(this.selectors,this),this.innerWidth=window.innerWidth,this.headerOffsetTop=this.domNodes.headerWrapper.offsetTop,this.headerHeight=this.domNodes.headerWrapper.offsetHeight,this.stickyHeader=this.dataset.sticky,this.classes={scrollUp:"scroll-up",scrollDown:"scroll-down",stuck:"stuck",always:"header-sticky-always",headerScrollUp:"header-scroll-up",headerScrollDown:"header-scroll-down"},this.init()}init(){this.transparentHeader=this.domNodes&&this.domNodes.headers[0]&&this.domNodes.headers[0].dataset.transparent==="true",this.initAddon(),this.handleSticky(),document.addEventListener("matchMobile",()=>this.handleSticky()),document.addEventListener("unmatchMobile",()=>this.handleSticky()),this.siteNav=new SiteNav(this),window.__sfHeader=this,window.addEventListener("resize",()=>{this.innerWidth=window.innerWidth})}initAddon(){this.megamenu=new Megamenu(this),Shopify.designMode&&(MinimogTheme=MinimogTheme||{},MinimogTheme&&MinimogTheme.Wishlist&&MinimogTheme.Wishlist.updateWishlistCount())}handleSticky(){let extraSpace=20;document.querySelectorAll(".shopify-section-group-header-group").forEach(section=>{!section.classList.contains("m-section-header")&&!section.classList.contains("m-section-scaling-logo")&&(extraSpace+=section.offsetHeight)});const topBar=document.querySelector(".m-topbar");topBar&&(extraSpace+=topBar.offsetHeight);let lastScroll=0;window.addEventListener("scroll",()=>{const currentScroll=window.scrollY;if(currentScroll<=extraSpace){this.classList.remove(this.classes.scrollUp,this.classes.stuck,this.classes.always),document.body.classList.remove(this.classes.headerScrollUp,this.classes.headerScrollDown);return}this.stickyHeader==="on_scroll_up"?this.classList.add(this.classes.stuck):this.stickyHeader==="always"&&this.classList.add(this.classes.always),currentScroll>this.headerHeight+extraSpace&&currentScroll>lastScroll&&!this.classList.contains(this.classes.scrollDown)?(this.classList.remove(this.classes.scrollUp),document.body.classList.remove(this.classes.headerScrollUp),this.classList.add(this.classes.scrollDown),document.body.classList.add(this.classes.headerScrollDown)):currentScroll<lastScroll&&this.classList.contains(this.classes.scrollDown)&&(this.classList.remove(this.classes.scrollDown),document.body.classList.remove(this.classes.headerScrollDown),this.classList.add(this.classes.scrollUp),document.body.classList.add(this.classes.headerScrollUp)),lastScroll=currentScroll})}}customElements.define("m-header",MHeader);
2//# sourceMappingURL=/cdn/shop/t/344/assets/header.js.map?v=139348793745598728721789197808

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.