PageSourceSearch

https://masmi.com.pl/cdn/shop/t/9/assets/addtocart-sticky.js?v=167162085696267276511772556401

js masmi.com.pl collected 2026-10-05 17:40:53 UTC 2,055 bytes, 2 lines download raw bytes

1if(!customElements.get("product-add-to-cart-sticky")){class ProductAddToCartSticky extends HTMLElement{constructor(){super(),this.handleScroll=this.handleScroll.bind(this),this.handleVariantChange=this.handleVariantChange.bind(this),this.sectionId=this.dataset.section}connectedCallback(){this.targetElement=document.querySelector('[id^="ProductSubmitButton-"]'),this.footerElement=document.querySelector("footer"),this.stickyAtcVariantInput=this.querySelector(".product-variant-id"),window.addEventListener("scroll",this.handleScroll),document.body.addEventListener("change",this.handleVariantChange)}disconnectedCallback(){window.removeEventListener("scroll",this.handleScroll),document.body.removeEventListener("change",this.handleVariantChange)}getAbsoluteTop(element){let top=0;for(;element;)top+=element.offsetTop||0,element=element.offsetParent;return top}handleScroll(){const targetTopPosition=this.getAbsoluteTop(this.targetElement),footerTopPosition=this.getAbsoluteTop(this.footerElement),isTargetElementOutOfView=targetTopPosition<window.scrollY,isFooterInView=window.scrollY+window.innerHeight>footerTopPosition;isTargetElementOutOfView&&!isFooterInView?this.classList.add("show"):this.classList.remove("show")}updateStickyATCOption(optionName,optionValue){const matches=optionName.match(/options\[(.+)\]/);matches&&matches[1]&&(optionName=matches[1]);const optionDisplay=this.querySelector('.selected-variant-option[data-option-name="'+optionName+'"]');optionDisplay&&(optionDisplay.textContent=optionName+": "+optionValue)}handleVariantChange(event){const target=event.target;if(target.closest(`#MainProduct-${this.sectionId}`)&&(target.tagName==="INPUT"||target.tagName==="SELECT")){const optionName=target.name,optionValue=target.tagName==="INPUT"?target.value:target.options[target.selectedIndex].textContent;this.updateStickyATCOption(optionName,optionValue)}}}customElements.define("product-add-to-cart-sticky",ProductAddToCartSticky)}
2//# sourceMappingURL=/cdn/shop/t/9/assets/addtocart-sticky.js.map?v=167162085696267276511772556401

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.