PageSourceSearch

https://www.selmer.fr/cdn/shop/t/83/assets/details-disclosure.js?v=118590178190501669191729524208

js selmer.fr collected 2026-09-24 18:24:06 UTC 3,275 bytes, 2 lines download raw bytes

1class DetailsDisclosure extends HTMLElement{constructor(){super(),this.mainDetailsToggle=this.querySelector("details"),this.content=this.mainDetailsToggle.querySelector("summary").nextElementSibling,this.mainDetailsToggle.addEventListener("focusout",this.onFocusOut.bind(this)),this.mainDetailsToggle.addEventListener("toggle",this.onToggle.bind(this))}onFocusOut(){setTimeout(()=>{this.contains(document.activeElement)||this.close()})}onToggle(){this.animations||(this.animations=this.content.getAnimations()),this.mainDetailsToggle.hasAttribute("open")?this.animations.forEach(animation=>animation.play()):this.animations.forEach(animation=>animation.cancel())}close(){this.mainDetailsToggle.removeAttribute("open"),this.mainDetailsToggle.querySelector("summary").setAttribute("aria-expanded",!1)}}customElements.define("details-disclosure",DetailsDisclosure);class HeaderMenu extends DetailsDisclosure{constructor(){super(),this.header=document.querySelector(".header-wrapper"),this.itemMenu=document.querySelectorAll(".header-wrapper a.header__menu-item"),this.mainDetailsToggle.addEventListener("mouseenter",this.onMouseEnter.bind(this)),this.mainDetailsToggle.closest("#shopify-section-header").addEventListener("mouseleave",this.onMouseLeave.bind(this));for(const item of this.itemMenu)item.addEventListener("mouseenter",this.onRemoveActive.bind(this))}onToggle(){this.header&&(this.detailsToggled(this.mainDetailsToggle),this.header.preventHide=this.mainDetailsToggle.open,this.header.preventHide?(this.header.classList.add("transparent-menu-open"),document.body.classList.add("mega-menu-open")):(this.header.classList.remove("transparent-menu-open"),document.body.classList.remove("mega-menu-open")),document.documentElement.style.getPropertyValue("--header-bottom-position-desktop")===""&&document.documentElement.style.setProperty("--header-bottom-position-desktop",`${Math.floor(this.header.getBoundingClientRect().bottom)}px`))}detailsToggled(e){typeof e>
1"u"||e.open||(this.mainDetailsToggle=document.createElement("details"),this.mainDetailsToggle.innerHTML=e.innerHTML,this.mainDetailsToggle.classList.add(e.classList),this.mainDetailsToggle.setAttribute("id",e.getAttribute("id")),e.parentNode.replaceChild(this.mainDetailsToggle,e),this.mainDetailsToggle.addEventListener("toggle",this.onToggle.bind(this)),this.mainDetailsToggle.addEventListener("mouseenter",this.onMouseEnter.bind(this)),this.mainDetailsToggle.closest("#shopify-section-header").addEventListener("mouseleave",this.onMouseLeave.bind(this)))}onRemoveActive(){for(const itemMegaMenu of this.header.querySelectorAll("details"))itemMegaMenu.removeAttribute("open"),itemMegaMenu.querySelector("summary").setAttribute("aria-expanded",!1)}onMouseEnter(){for(const itemMegaMenu of this.header.querySelectorAll("details"))itemMegaMenu.removeAttribute("open"),itemMegaMenu.querySelector("summary").setAttribute("aria-expanded",!1);this.mainDetailsToggle.setAttribute("open",""),this.mainDetailsToggle.querySelector("summary").setAttribute("aria-expanded","true")}onMouseLeave(){setTimeout(()=>{this.contains(document.activeElement)||this.close()})}}customElements.define("header-menu",HeaderMenu);
2//# sourceMappingURL=/cdn/shop/t/83/assets/details-disclosure.js.map?v=118590178190501669191729524208

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.