PageSourceSearch

https://momi.baby/cdn/shop/t/147/assets/ew-custom.js?v=160004129072053638341782913941

js momi.baby collected 2026-10-07 16:51:44 UTC 1,156 bytes, 2 lines download raw bytes

1document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".swatch-btn").forEach(btn=>{const preloadImg=new Image;btn.dataset.src&&(preloadImg.src=btn.dataset.src),btn.dataset.srcset&&(preloadImg.srcset=btn.dataset.srcset)}),document.querySelectorAll(".product-card").forEach(card=>{const mainImage=card.querySelector(".product-card__image--primary"),swatches=card.querySelectorAll(".swatch-btn");swatches.forEach(btn=>{btn.addEventListener("click",()=>{if(!mainImage)return;const newSrc=btn.dataset.src,newSrcset=btn.dataset.srcset;newSrc&&mainImage.src!==newSrc&&(mainImage.classList.add("swapping"),mainImage.src=newSrc),newSrcset&&mainImage.srcset!==newSrcset&&(mainImage.srcset=newSrcset),mainImage.onload=()=>{mainImage.classList.remove("swapping")},swatches.forEach(b=>b.classList.remove("selected")),btn.classList.add("selected"),btn.dataset.handle&&btn.closest("product-card").querySelectorAll('a[href*="/products/"]').forEach(a=>{a.href=btn.dataset.handle,a.closest(".product-card__title")&&(a.innerHTML=btn.dataset.title)})})})})});
2//# sourceMappingURL=/cdn/shop/t/147/assets/ew-custom.js.map?v=160004129072053638341782913941

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.