PageSourceSearch

https://vetzpetz.co.th/cdn/shop/t/135/assets/faq.js?v=149040188024518208421707380526

js vetzpetz.co.th collected 2026-10-07 16:03:47 UTC 1,104 bytes, 2 lines download raw bytes

1if(!customElements.get("faq-component")&&!customElements.get("faq-selector")){class FaqComponent extends HTMLElement{constructor(){super(),this.querySelectorAll(".faq-item__heading").forEach(element=>{element.addEventListener("click",event=>{event.currentTarget.parentElement.classList.toggle("open")})})}}customElements.define("faq-component",FaqComponent);class FaqSelector extends HTMLElement{constructor(){super(),this.buttons=this.querySelectorAll(".faq-selector__item"),this.faqs=document.querySelectorAll(".faq[data-anchor]"),this.select(this.buttons[0]),this.buttons.forEach(button=>{button.addEventListener("click",this.select.bind(this,button))})}select(button){const anchor=button.dataset.anchor;if(anchor){const faq=document.querySelector(`.faq[data-anchor="${anchor}"]`);if(faq){for(const b of this.buttons)b.classList.remove("active");for(const f of this.faqs)f.classList.remove("active");faq.classList.add("active"),button.classList.add("active")}}}}customElements.define("faq-selector",FaqSelector)}
2//# sourceMappingURL=/cdn/shop/t/135/assets/faq.js.map?v=149040188024518208421707380526

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.