PageSourceSearch

https://timex.ca/cdn/shop/t/495/assets/-component-transparency-check.min.js?v=99933531342643349811790831497

js timex.ca collected 2026-10-03 21:10:48 UTC 1,365 bytes, 1 lines download raw bytes

1var a=class extends HTMLElement{connectedCallback(){if(this.src=this.getAttribute("src"),this.alt=(this.getAttribute("alt")??"").toLowerCase(),this.themeStyle=(this.getAttribute("theme-style")??"").toLowerCase(),this.src){if(!this.src.split("?")[0].endsWith(".png")){this.ready();return}this.calculateTransparencyFromSrc();return}if(this.image=this.querySelector("img"),!this.image){this.ready();return}this.image.crossOrigin="Anonymous",this.calculateTransparencyFromImage()}calculateTransparencyFromSrc(){var t=new Image;t.src=this.src,t.crossOrigin="Anonymous",t.onload=()=>{this.calculateTransparency(t)}}calculateTransparencyFromImage(){if(this.image.complete)this.calculateTransparency(this.image);else{this.image.addEventListener("load",this.calculateTransparencyFromImage.bind(this));return}}calculateTransparency(t){let e=document.createElement("canvas");e.width=t.width,e.height=t.height;let r=e.getContext("2d");r.drawImage(t,0,0);let i=r.getImageData(0,0,t.width,t.height).data,c=!1;for(let s=3;s<i.length;s+=4)if(i[s]<255){c=!0;break}e.remove();let n=this.themeStyle==="guess"&&this.alt.includes("lifestyle");c&&!n?this.setAttribute("has-transparency",!0):this.removeAttribute("has-transparency"),this.ready()}ready(){!this.hasAttribute("hh-cloak")||setTimeout(()=>{this.removeAttribute("hh-cloak")},0)}};customElements.define("transparency-check",a);

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.