https://waddesdon.org.uk/wp-content/plugins/rothschild-mega-menu/b…/view.js?ver=4035e82a4f2f70544a8f
1(()=>{function e(e=!1){document.querySelectorAll(".wp-block-rothschild-mega-menu-block__menu-button").forEach(t=>{if(t.setAttribute("aria-expanded",!1),!e)return;const c=t?.closest("header.mega-menu-is-active");c&&c?.classList?.remove("mega-menu-is-active")})}document.querySelectorAll(".wp-block-rothschild-mega-menu-block").forEach(t=>{const c=t.querySelector(".wp-block-rothschild-mega-menu-block__menu-button");if(!c)return;const n=c.getAttribute("aria-controls"),a=document.getElementById(n);c.addEventListener("keydown",t=>{"Escape"===t.key&&e(!0)}),a.addEventListener("keydown",t=>{"Escape"===t.key&&(e(!0),c.focus())}),c.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),"true"===c.getAttribute("aria-expanded")?e(!0):(e(),function(e){e.setAttribute("aria-expanded",!0);const t=e?.closest("header.wp-block-template-part");t&&t?.classList?.add("mega-menu-is-active")}(c))})}),document.addEventListener("click",t=>{t.target.closest(".wp-block-rothschild-mega-menu-block")||e(!0)}),document.addEventListener("focusin",t=>{t.target.closest("header.mega-menu-is-active")||e(!0)})})(); 2//# sourceMappingURL=view.js.map
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.