1(() => { 2 const canHover = window.matchMedia?.("(hover: hover) and (pointer: fine)")?.matches; 3 if (!canHover) return; 4 5 const bindDropdowns = () => { 6 const dropdowns = document.querySelectorAll(".marketing-header .nav-dropdown"); 7 dropdowns.forEach((dropdown) => { 8 const toggle = dropdown.querySelector(".toggle"); 9 if (!toggle) { 10 return; 11 } 12 13 dropdown.addEventListener("mouseleave", () => { 14 if (toggle.checked) { 15 toggle.checked = false; 16 } 17 18 const active = document.activeElement; 19 if (active && dropdown.contains(active) && typeof active.blur === "function") { 20 active.blur(); 21 } 22 }); 23 }); 24 }; 25 26 if (document.readyState === "loading") { 27 document.addEventListener("DOMContentLoaded", bindDropdowns, { once: true }); 28 } else { 29 bindDropdowns(); 30 } 31})();
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.