PageSourceSearch

https://lhjsg.myshopify.com/cdn/shop/t/2/assets/global.js?v=5520672949039931711785286188

js lhjsg.myshopify.com collected 2026-10-10 02:39:33 UTC 8,317 bytes, 2 lines download raw bytes

1document.addEventListener("DOMContentLoaded",function(){var toggle=document.querySelector(".mobile-nav-toggle"),nav=document.querySelector(".main-nav");if(toggle&&nav){var setNav=function(open){nav.classList.toggle("is-open",open),document.body.classList.toggle("nav-open",open),toggle.setAttribute("aria-expanded",open)};toggle.addEventListener("click",function(){setNav(!nav.classList.contains("is-open"))});var closeBtn=nav.querySelector(".mobile-nav-close");closeBtn&&closeBtn.addEventListener("click",function(){setNav(!1)}),nav.querySelectorAll(".main-nav__item--has-children > a").forEach(function(link){link.addEventListener("click",function(e){window.innerWidth<=991&&(e.preventDefault(),link.parentElement.classList.toggle("is-expanded"))})})}document.querySelectorAll(".hero").forEach(function(hero){var slides=hero.querySelectorAll(".hero__slide"),dots=hero.querySelectorAll(".hero__dots button"),prev=hero.querySelector(".hero__arrow--prev"),next=hero.querySelector(".hero__arrow--next");if(slides.length<2)return;var idx=0,timer,animating=!1;function show(i,dir){var from=idx,to=(i+slides.length)%slides.length;if(!(to===from||animating)){if(dir=dir||1,dots[from]&&dots[from].classList.remove("is-active"),dots[to]&&dots[to].classList.add("is-active"),window.innerWidth<=767){animating=!0;var out=slides[from],inn=slides[to];inn.style.transition="none",inn.style.opacity="1",inn.style.transform="translateX("+(dir>0?100:-100)+"%)",inn.classList.add("is-active"),inn.offsetWidth,inn.style.transition="transform .35s ease, opacity 0s",out.style.transition="transform .35s ease, opacity 0s",out.style.opacity="1",inn.style.transform="translateX(0)",out.style.transform="translateX("+(dir>0?-100:100)+"%)",setTimeout(function(){out.classList.remove("is-active"),[out,inn].forEach(function(s){s.style.transition=s.style.transform=s.style.opacity=""}),animating=!1},380)}else slides[from].classList.remove("is-active"),slides[to].classList.add("is-active");idx=to}}function auto(){timer=setInterval(function(){show(idx+1,1)},5e3)}dots.forEach(function(d,i){d.addEventListener("click",function(){clearInterval(timer),show(i,i>idx?1:-1),auto()})}),prev&&prev.addEventListener("click",function(){clearInterval(timer),show(idx-1,-1),auto()}),next&&next.addEventListener("click",function(){clearInterval(timer),show(idx+1,1),auto()});var startX=null;hero.addEventListener("touchstart",function(e){startX=e.touches[0].clientX},{passive:!0}),hero.addEventListener("touchend",function(e){if(startX!==null){var dx=e.changedTouches[0].clientX-startX;Math.abs(dx)>40&&(clearInterval(timer),show(idx+(dx<0?1:-1),dx<0?1:-1),auto()),startX=null}},{passive:!0}),auto()});var mainImg=document.querySelector(".product-gallery__main img"),mainWrap=document.querySelector(".product-gallery__main"),thumbs=[].slice.call(document.querySelectorAll(".product-gallery__thumbs img")),current=0,sliding=!1;function showImage(i,dir){if(!(!mainImg||!thumbs.length||sliding)){var target=(i+thumbs.length)%thumbs.length;dir===void 0&&(dir=target===current?0:target>current?1:-1),current=target;var t=thumbs[current],next=t.dataset.full||t.src;if(thumbs.forEach(function(a){a.classList.remove("is-active")}),t.classList.add("is-active"),t.scrollIntoView&&t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}),mainImg.src!==next){sliding=!0;var pre=new Image,go=function(){var incoming=document.createElement("img");incoming.src=next,incoming.alt=mainImg.alt,incoming.style.cssText="position:absolute;inset:0;width:100%;z-index:2;border-radius:4px;transform:translateX("+(dir<0?"-100%":"100%")+");transition:transform .4s ease;",mainWrap.appendChild(incoming),requestAnimationFrame(function(){requestAnimationFrame(function(){incoming.style.transform="translateX(0)",mainImg.style.transition="transform .4s ease",mainImg.style.transform="translateX("+(dir<0?"100%":"-100%")+")"})}),setTimeout(function(){mainImg.src=next,mainImg.style.transition="none",mainImg.style.transform="",incoming.remove(),mainImg.offsetWidth,mainImg.style.transition="",sliding=!1},430)};pre.onload=go,pre.onerror=go,pre.src=next}}}
1if(thumbs.forEach(function(t,i){t.addEventListener("click",function(){showImage(i)})}),thumbs.length){var warmGallery=function(){thumbs.forEach(function(t){var im=new Image;im.src=t.dataset.full||t.src})};"requestIdleCallback"in window?requestIdleCallback(warmGallery,{timeout:3e3}):setTimeout(warmGallery,1200)}if(mainWrap){var galleryStartX=null;mainWrap.addEventListener("touchstart",function(e){galleryStartX=e.touches[0].clientX},{passive:!0}),mainWrap.addEventListener("touchend",function(e){if(galleryStartX!==null){var dx=e.changedTouches[0].clientX-galleryStartX;Math.abs(dx)>40&&showImage(current+(dx<0?1:-1),dx<0?1:-1),galleryStartX=null}},{passive:!0})}var prevBtn=document.querySelector(".gallery-arrow--prev"),nextBtn=document.querySelector(".gallery-arrow--next");prevBtn&&prevBtn.addEventListener("click",function(){showImage(current-1,-1)}),nextBtn&&nextBtn.addEventListener("click",function(){showImage(current+1,1)});var strip=document.querySelector(".product-gallery__thumbs"),tPrev=document.querySelector(".thumb-arrow--prev"),tNext=document.querySelector(".thumb-arrow--next");strip&&tPrev&&tPrev.addEventListener("click",function(){strip.scrollBy({left:-300,behavior:"smooth"})}),strip&&tNext&&tNext.addEventListener("click",function(){strip.scrollBy({left:300,behavior:"smooth"})})}),document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".footer-acc-title").forEach(function(t){t.addEventListener("click",function(){window.innerWidth>767||t.parentElement.classList.toggle("active")})})}),document.addEventListener("DOMContentLoaded",function(){var seo=document.querySelector(".seo-acc");if(seo){var toggle=seo.querySelector(".seo-acc__toggle"),flip=function(){seo.classList.toggle("open"),toggle.textContent=seo.classList.contains("open")?"[-]":"[+]"};seo.querySelector(".seo-acc__title").addEventListener("click",flip)}document.querySelectorAll(".rte .tabtitle").forEach(function(t){t.addEventListener("click",function(){t.classList.toggle("active")})})}),document.addEventListener("DOMContentLoaded",function(){function setParams(changes){for(var parts=location.search.replace(/^\?/,"").split("&").filter(Boolean),out=[],i=0;i<parts.length;i++){var k=decodeURIComponent(parts[i].split("=")[0]);k==="page"||Object.prototype.hasOwnProperty.call(changes,k)||out.push(parts[i])}for(var key in changes)changes[key]!==null&&out.push(key+"="+encodeURIComponent(changes[key]));location.href=location.pathname+(out.length?"?"+out.join("&"):"")}var sortSel=document.getElementById("SortBy");sortSel&&sortSel.addEventListener("change",function(){setParams({sort_by:this.value})});var arrow=document.querySelector(".sorter-arrow");arrow&&arrow.addEventListener("click",function(e){e.preventDefault(),setParams({sort_by:arrow.getAttribute("data-sort")})}),document.querySelectorAll(".show-per-page").forEach(function(sel){sel.addEventListener("change",function(){setParams({view:sel.value==="16"?null:"show"+sel.value})})})}),document.addEventListener("click",function(e){if(!(window.innerWidth>767)){var open=document.querySelectorAll(".product-card.is-tapped"),media=e.target.closest(".product-card__media");if(!media){open.forEach(function(c){c.classList.remove("is-tapped")});return}var card=media.closest(".product-card");card.classList.contains("is-tapped")||(e.preventDefault(),open.forEach(function(c){c.classList.remove("is-tapped")}),card.classList.add("is-tapped"))}}),document.addEventListener("click",function(e){var wa=e.target.closest(".product-card__tocart[data-wa-url]");wa&&(e.preventDefault(),e.stopPropagation(),window.open(wa.getAttribute("data-wa-url"),"_blank","noopener"))}),document.addEventListener("click",function(e){var btn=e.target.closest(".product-card__tocart[data-variant-id]");btn&&(e.preventDefault(),e.stopPropagation(),btn.textContent="ADDING\u2026",fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:Number(btn.getAttribute("data-variant-id")),quantity:1})}).then(function(r){if(!r.ok)throw new Error("add failed");window.location.href="/cart"}).catch(function(){btn.textContent="BUY NOW"}))});
2//# sourceMappingURL=/cdn/shop/t/2/assets/global.js.map?v=5520672949039931711785286188

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.