PageSourceSearch

https://www.bikester.be/cdn/shop/t/122/assets/details-modal.js?v=66734236392070309301788261940

js bikester.be collected 2026-10-09 04:05:28 UTC 2,215 bytes, 2 lines download raw bytes

1class DetailsModal extends HTMLElement{constructor(){super(),this.detailsEl=this.querySelector("details"),this.toggle=this.querySelector("summary"),this.modal=this.querySelector(".modal"),this.closeBtn=this.querySelector(".js-close-modal"),this.detailsEl.addEventListener("click",this.handleClick.bind(this))}handleClick(evt){this.hasTransition===void 0&&(this.hasTransition=window.getComputedStyle(this.modal).transitionDuration!=="0s"),this.detailsEl.open?(evt.target===this.modal||evt.target===this.toggle||evt.target===this.closeBtn)&&(evt.preventDefault(),this.close()):evt.target===this.toggle&&(evt.preventDefault(),this.open())}handleTransitionEnd(evt){evt.target===this.modal&&this.detailsEl.classList.contains("is-closing")&&(this.detailsEl.classList.remove("is-closing"),this.detailsEl.open=!1,document.body.classList.remove("overflow-hidden"),this.detailsEl.removeEventListener("transitionend",this.transitionendHandler))}open(){document.body.classList.add("overflow-hidden"),this.detailsEl.open=!0,this.opener=this.toggle,this.inertSiblings(),trapFocus(this.detailsEl),this.keyupHandler=evt=>evt.key==="Escape"&&this.close(),this.detailsEl.addEventListener("keyup",this.keyupHandler),this.hasTransition&&(this.transitionendHandler=this.transitionendHandler||this.handleTransitionEnd.bind(this),this.detailsEl.addEventListener("transitionend",this.transitionendHandler))}close(){this.hasTransition?this.detailsEl.classList.add("is-closing"):(this.detailsEl.open=!1,document.body.classList.remove("overflow-hidden")),removeTrapFocus(this.opener),this.restoreSiblings(),this.detailsEl.removeEventListener("keyup",this.keyupHandler)}inertSiblings(){this.inertElements=[];let current=this;for(;current&&current!==document.body;)Array.from(current.parentElement.children).forEach(sibling=>{sibling!==current&&!sibling.hasAttribute("inert")&&(sibling.setAttribute("inert",""),this.inertElements.push(sibling))}),current=current.parentElement}restoreSiblings(){(this.inertElements||[]).forEach(element=>element.removeAttribute("inert")),this.inertElements=[]}}customElements.define("details-modal",DetailsModal);
2//# sourceMappingURL=/cdn/shop/t/122/assets/details-modal.js.map?v=66734236392070309301788261940

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.