PageSourceSearch

https://onewillow.com/cdn/shop/t/149/assets/sticky-atc-card-jYfxW9sV.js

js onewillow.com collected 2026-10-02 05:42:08 UTC 1,725 bytes, 2 lines download raw bytes

1class n extends HTMLElement{constructor(){super(),this.variantJSON=document.querySelector("[data-variant-json]"),this.variantJSON&&(this.variant=JSON.parse(this.variantJSON.innerText),this.chipButtons=document.querySelectorAll(".js-button-chip"),this.cloneChipButtons=this.querySelectorAll(".js-button-clone-chip"),this.chipButtonEls=document.querySelectorAll(".js-button-chip"),this.stickyAtcCardPrice=document.querySelector(".js-sticky-atc-card-price"),this.stickyAtcCardComparePrice=document.querySelector(".js-sticky-atc-card-compare-price"),this.isRecharge=this.getAttribute("data-recharge"),this.changeData(),this.cloneChipButtons.length===0&&this.chipButtonEls&&this.chipButtonEls.forEach(c=>{this.setActiveVariant(c)}));const t="is-show-sticky-card",e=document.querySelector(".js-pdp-add-to-cart"),i=document.querySelector(".js-site-header"),r=i?i.offsetHeight:0;e&&window.addEventListener("scroll",()=>{const c=document.querySelector(".js-footer"),s=e.getBoundingClientRect().bottom,o=c?c.getBoundingClientRect().top-c.offsetHeight<0:!1;s<=parseFloat(r)&&!o?document.body.classList.add(t):document.body.classList.remove(t)},{passive:!0})}setActiveVariant(t){t.addEventListener("click",()=>{this.changeData()})}changeData(){if(this.isRecharge=="false"){const t=document.querySelector(".js-product-price");if(t){const e=t.querySelector("[data-product-compare-price]"),i=t.querySelector("[data-price]");this.changePrice(e.innerText,i.innerText)}}}changePrice(t,e){this.stickyAtcCardPrice&&e!=""&&(this.stickyAtcCardPrice.innerText=e),this.stickyAtcCardComparePrice&&t!=""&&(this.stickyAtcCardComparePrice.innerText=t)}}window.customElements.define("sticky-card",n);
2//# sourceMappingURL=sticky-atc-card-jYfxW9sV.js.map

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.