PageSourceSearch

https://fengshuimasterxu.com/cdn/shop/t/15/assets/header.js?v=127091411131105714101742447942

js fengshuimasterxu.com collected 2026-10-09 00:38:06 UTC 4,570 bytes, 2 lines download raw bytes

1(function(){const header=()=>{const body=document.querySelector("body"),header2=document.querySelector(".shopify-section-header"),openBtn=document.querySelector(".header__offcanvas-toggle"),closeBtn=document.querySelector(".header__offcanvas-toggle-link--close"),offMenu=document.querySelector(".header__offcanvas-menu"),searchDetails=document.querySelector(".header__details"),submenuDetails=document.querySelectorAll(".header__submenu li details"),openSearchBtn=document.querySelector(".header__search"),headerIsAlwaysSticky=header2.querySelector(".header-wrapper").getAttribute("data-sticky-type")==="always",headerIsSticky=header2.querySelector(".header-wrapper").getAttribute("data-sticky-type")==="on-scroll-up",megaMenuLinks=document.querySelectorAll(".list-menu--megamenu"),openMenu=e=>{e.preventDefault(),offMenu.classList.add("header__offcanvas-menu--open"),openBtn&&openBtn.classList.add("active"),body.classList.add("body--hidden")},closeMenu=()=>{offMenu.classList.remove("header__offcanvas-menu--open"),openBtn&&openBtn.classList.remove("active"),body.classList.remove("body--hidden")};openBtn&&openBtn.addEventListener("click",openMenu),closeBtn&&closeBtn.addEventListener("click",function(e){e.preventDefault(),closeMenu()}),submenuDetails.forEach(targetDetail=>{targetDetail.addEventListener("click",()=>{submenuDetails.forEach(detail=>{detail!==targetDetail&&detail.removeAttribute("open")})})}),document.addEventListener("keyup",e=>{let scrollTop2=window.scrollY;e.key==="Escape"&&(closeMenu(),body.classList.remove("overflow-hidden"),searchDetails.open&&scrollTop2<header2.offsetHeight/2&&headerIsSticky?(header2.classList.remove("animate","animated","shopify-section-header-sticky"),searchDetails.removeAttribute("open")):searchDetails.open&&scrollTop2<header2.offsetHeight/2&&headerIsAlwaysSticky?(header2.classList.remove("animate","animated"),header2.classList.add("shopify-section-header-sticky"),searchDetails.removeAttribute("open")):searchDetails.open&&scrollTop2>header2.offsetHeight/2&&(headerIsSticky||headerIsAlwaysSticky)?(header2.classList.add("shopify-section-header-sticky","fixed","animate","animated"),searchDetails.removeAttribute("open")):searchDetails.open&&!headerIsAlwaysSticky&&!headerIsSticky&&(header2.classList.remove("shopify-section-header-sticky","fixed","animate","animated"),searchDetails.removeAttribute("open")))}),openSearchBtn&&openSearchBtn.addEventListener("click",()=>{let scrollTop2=window.scrollY;searchDetails.open&&headerIsAlwaysSticky?(body.classList.add("overflow-hidden"),header2.classList.add("shopify-section-header-sticky","fixed","animate")):searchDetails.open&&!headerIsAlwaysSticky?(body.classList.add("overflow-hidden"),header2.classList.add("shopify-section-header-sticky","animate")):!searchDetails.open&&scrollTop2<header2.offsetHeight/2&&headerIsSticky?(body.classList.remove("overflow-hidden"),header2.classList.remove("animate","animated","shopify-section-header-sticky")):!searchDetails.open&&scrollTop2<header2.offsetHeight/2&&headerIsAlwaysSticky?(body.classList.remove("overflow-hidden"),header2.classList.remove("animate","animated")):!searchDetails.open&&scrollTop2>header2.offsetHeight/2&&(headerIsSticky||headerIsAlwaysSticky)?(body.classList.remove("overflow-hidden"),header2.classList.add("shopify-section-header-sticky","fixed","animate","animated")):(searchDetails.open,body.classList.remove("overflow-hidden"),header2.classList.remove("shopify-section-header-sticky","fixed","animate","animated"))}),document.addEventListener("scroll",()=>{let scrollTop2=window.scrollY;scrollTop2>header2.offsetHeight/2&&headerIsAlwaysSticky?header2.classList.add("fixed","animate"):scrollTop2<=header2.offsetHeight&&headerIsAlwaysSticky&&header2.classList.remove("fixed","animate")});let scrollTop=window.scrollY;scrollTop>header2.offsetHeight/2&&headerIsAlwaysSticky?header2.classList.add("fixed","animate"):scrollTop<=header2.offsetHeight&&headerIsAlwaysSticky&&header2.classList.remove("fixed","animate"),megaMenuLinks.forEach(link=>{link.addEventListener("mouseenter",()=>{link.classList.add("list-menu--megamenu-visible"),link.addEventListener("mousemove",()=>{link.classList.add("list-menu--megamenu-visible")}),link.addEventListener("mouseleave",()=>{setTimeout(()=>{link.classList.remove("list-menu--megamenu-visible")},300),link.addEventListener("mouseenter",()=>{link.classList.add("list-menu--megamenu-visible")})})})})};document.addEventListener("shopify:section:load",header),header()})();
2//# sourceMappingURL=/cdn/shop/t/15/assets/header.js.map?v=127091411131105714101742447942

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.