PageSourceSearch

https://www.lecoqsportif.com/cdn/shop/t/16/assets/islands-sticky-add-to-cart-20260918T094325-sh.js

js lecoqsportif.com collected 2026-09-24 21:03:34 UTC 897 bytes, 1 lines download raw bytes

1import{E as d}from"./index-20260918T094325-sh.js";class c extends d{observer;onStart(){const a=this.getAttribute("data-toggle-class")??"!hidden";if(this.getAttribute("data-disable-js")==="true")return;const s=(this.closest("product-manager")||this._throwError("StickyAddToCart must be inside a ProductManager")).querySelector("[data-main-add-to-cart]")??this._throwError("StickyAddToCart requires an add to cart button in the product manager"),e=document.getElementById("footer");let r=!1,o=!1;this.observer=new IntersectionObserver(n=>{for(const t of n)t.target===s?r=t.isIntersecting:t.target===e&&(o=t.isIntersecting);const i=r||o;this.classList.toggle(a,i),this.setAttribute("aria-hidden",i?"true":"false")},{threshold:0}),this.observer.observe(s),e&&this.observer.observe(e)}onDestroy(){this.observer?.disconnect()}}customElements.define("sticky-add-to-cart",c);export{c as StickyAddToCart};

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.