PageSourceSearch

https://thomasgoode.in/cdn/shop/t/87/assets/collections-hover.js?v=88912160258320727401782286613

js thomasgoode.in collected 2026-10-07 17:28:18 UTC 765 bytes, 1 lines download raw bytes

1!function(){"use strict";const t="[data-hover-target]",e="[data-collection-image]",s="data-hover-target",o="is-visible",c="is-selected";customElements.get("collections-hover")||customElements.define("collections-hover",class extends HTMLElement{constructor(){super(),this.buttons=this.querySelectorAll(t)}connectedCallback(){this.buttons.length&&this.buttons.forEach((t=>{t.addEventListener("mouseenter",(t=>{const e=t.currentTarget.getAttribute(s);this.updateState(e)}))}))}updateState(i){const r=this.querySelector(`[${s}="${i}"]`),l=this.querySelector(`#${i}:not(.${o})`),n=this.querySelector(`${t}.${c}`),a=this.querySelector(`${e}.${o}`);l&&!window.theme.isMobile()&&(a?.classList.remove(o),n?.classList.remove(c),l.classList.add(o),r.classList.add(c))}})}();

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.