PageSourceSearch

https://www.coco-cici.com/cdn/shop/t/108/assets/menu-block.js?v=163538393593911394501784628174

js coco-cici.com collected 2026-10-08 00:07:38 UTC 2,125 bytes, 2 lines download raw bytes

1class MenuBlock extends HTMLElement{constructor(){super()}connectedCallback(){if(this.level2Details=this.querySelectorAll("[data-details-level-1]"),this.summaries=this.querySelectorAll("summary"),this.options={level_2_open_by_default:!1,level_2_open_by_default_mobile:!1},this?.dataset?.options){const dataOptions=JSON.parse(this.dataset.options);this.options={...this.options,...dataOptions}}this.onSummaryClick=this.onSummaryClick.bind(this),this.summaries.forEach(summary=>{summary.addEventListener("click",this.onSummaryClick)}),!(this.options.level_2_open_by_default&&this.options.level_2_open_by_default_mobile)&&(this.options.level_2_open_by_default?(document.addEventListener("DOMContentLoaded",()=>window.windowWidth>=768?this.level2OpenByDefault():this.level2ClosedByDefault()),window.addEventListener("window:resize",()=>window.windowWidth>=768?this.level2OpenByDefault():this.level2ClosedByDefault())):this.options.level_2_open_by_default_mobile&&(document.addEventListener("DOMContentLoaded",()=>window.windowWidth<768?this.level2OpenByDefault():this.level2ClosedByDefault()),window.addEventListener("window:resize",()=>window.windowWidth<768?this.level2OpenByDefault():this.level2ClosedByDefault())))}disconnectedCallback(){this.summaries.forEach(summary=>{summary.removeEventListener("click",this.onSummaryClick)})}onSummaryClick(e){e.preventDefault(),e.stopPropagation();const detail=e.target.parentElement;detail.hasAttribute("open")?e.target.dataset?.url&&e.target.dataset?.url!=="#"?window.location.href=e.target.dataset?.url:detail.removeAttribute("open"):detail.setAttribute("open","")}level2OpenByDefault(){this.level2Details.forEach(detail=>{detail.setAttribute("open",""),detail.querySelector("summary").querySelector("svg").classList.add("hidden")})}level2ClosedByDefault(){this.level2Details.forEach(detail=>{detail.removeAttribute("open"),detail.querySelector("summary").querySelector("svg").classList.remove("hidden")})}}customElements.get("menu-block")||customElements.define("menu-block",MenuBlock);
2//# sourceMappingURL=/cdn/shop/t/108/assets/menu-block.js.map?v=163538393593911394501784628174

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.