1if(!customElements.get("dbtfy-scrolling-banner")){class n extends HTMLElement{constructor(){super(),this.init(),document.addEventListener("shopify:section:load",n=>{n.target.querySelector(".dbtfy-scrolling-banner")&&init()})}init(){const n=this.querySelector("ul.scrolling_banner_inner");let t=n.scrollWidth;const e=2*window.innerWidth,i=n.querySelectorAll("li").length+n.querySelectorAll(".description-block").length;let r=n.innerHTML;if(t<e){const i=parseInt(e/t);for(let t=1;t<i;t++)r+=n.innerHTML}n.insertAdjacentHTML("beforeEnd",r),n.querySelectorAll("li").forEach((n,t)=>{t>=i&&n.setAttribute("aria-hidden","true")});let s=`\n <style>\n #dbtfy-scrolling-banner-${this.dataset.sectionId} ul.scrolling_banner_inner {\n animation-name: dbtfy-scrolling-banner-animation-${this.dataset.sectionId};\n animation-duration: ${this.dataset.animationDuration}s;\n }\n @keyframes dbtfy-scrolling-banner-animation-${this.dataset.sectionId} {\n to { transform: translateX(-${t}px); }\n }\n </style>\n `;"right"!==this.dataset.marqueeDirection&&"normal"!==this.dataset.marqueeDirection||(s+=`\n <style>\n @keyframes dbtfy-scrolling-banner-animation-${this.dataset.sectionId} {\n from { transform: translateX(-${t}px); } \n to { transform: 0); } \n }\n </style>\n `),this.insertAdjacentHTML("beforeBegin",s)}}customElements.define("dbtfy-scrolling-banner",n)}
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.