PageSourceSearch

https://biokhaan.com/cdn/shop/t/18/assets/sticky-add-to-cart.js?v=120539101339805280881781090903

js biokhaan.com collected 2026-10-06 13:17:43 UTC 908 bytes, 2 lines download raw bytes

1import{isElementInViewport}from"@theme/utilities";class StickyAddToCart extends HTMLElement{constructor(){super(),this.form=null,this.footer=null}connectedCallback(){this.form=this.closest('[data-ref="product-form"]'),this.footer=document.querySelector('[data-ref="footer"]'),this.#displayStickyAddToCart(),window.addEventListener("scroll",()=>{this.#displayStickyAddToCart()})}disconnectedCallback(){window.removeEventListener("scroll",()=>{this.#displayStickyAddToCart()})}#displayStickyAddToCart(){isElementInViewport(this.form)||isElementInViewport(this.footer)?(this.dataset.active="false",this.classList.remove("color-scheme-1")):(this.dataset.active="true",this.classList.add("color-scheme-1"))}}customElements.get("sticky-add-to-cart")||customElements.define("sticky-add-to-cart",StickyAddToCart);
2//# sourceMappingURL=/cdn/shop/t/18/assets/sticky-add-to-cart.js.map?v=120539101339805280881781090903

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.