PageSourceSearch

https://theouai.com/cdn/shop/t/964/assets/ticker-vite-DIMZYkgD.js

js theouai.com collected 2026-09-25 04:04:22 UTC 2,088 bytes, 1 lines download raw bytes

1const t={scale:"[data-ticker-scale]",text:"[data-ticker-text]",clone:"data-clone"},a={autoplay:"autoplay",speed:"speed"},i={animation:"ticker--animated",unloaded:"ticker--unloaded",comparitor:"ticker__comparitor"},d={speed:1.63,space:100};customElements.get("ticker-bar")||customElements.define("ticker-bar",class extends HTMLElement{constructor(){super(),this.autoplay=this.hasAttribute(a.autoplay),this.scale=this.querySelector(t.scale),this.text=this.querySelector(t.text),this.speed=this.hasAttribute(a.speed)?this.getAttribute(a.speed):d.speed,this.comparitor=this.text.cloneNode(!0),this.comparitor.classList.add(i.comparitor),this.appendChild(this.comparitor),this.scale.classList.remove(i.unloaded),this.checkWidthEvent=this.checkWidth.bind(this)}connectedCallback(){this.checkWidth(),this.addEventListener("theme:ticker:refresh",window.theme.debounce(()=>this.checkWidthEvent(),50)),screen.orientation.addEventListener("change",this.checkWidthEvent),document.addEventListener("theme:resize:width",this.checkWidthEvent)}disconnectedCallback(){document.removeEventListener("theme:resize:width",this.checkWidthEvent)}checkWidth(){var h;this.text=this.querySelector(t.text);const o=window.getComputedStyle(this).paddingLeft.replace("px","")*2,n=this.clientWidth-o<this.comparitor.clientWidth;if(n||this.autoplay){this.text.classList.remove(i.animation);const s=this.scale.querySelectorAll(`[${t.clone}]`),c=this.autoplay?parseInt((window.innerWidth-o)/this.text.clientWidth):2;if(s==null||s.forEach(e=>{e.remove()}),this.autoplay||n)for(let e=0;e<=c;e++){const r=this.text.cloneNode(!0);r.setAttribute(t.clone,""),this.scale.appendChild(r)}const l=(this.text.clientWidth/d.space*Number(this.speed)).toFixed(2);this.scale.style.removeProperty("--animation-time"),this.scale.style.setProperty("--animation-time",`${l}s`),(h=this.scale.querySelectorAll(t.text))==null||h.forEach(e=>{e.classList.add(i.animation)})}else this.text.classList.add(i.animation),this.scale.querySelectorAll(`[${t.clone}]`).forEach(c=>{c.parentNode.removeChild(c)}),this.text.classList.remove(i.animation)}});

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.