PageSourceSearch

https://www.monuta.nl/files/header_menu_animations_v2.js

js monuta.nl collected 2026-09-24 20:30:21 UTC 4,530 bytes, 1 lines download raw bytes

1document.addEventListener("DOMContentLoaded",()=>{const n=document.getElementById("mnt-search-icon-mobile"),a=document.querySelector(".mnt-user-icon-img"),r=document.querySelector(".mnt-logo-link"),l=document.querySelector(".mnt-navbar-search-input-mobile"),s=document.querySelector(".mnt-navbar-right"),u=document.querySelector(".mnt-navbar-mobile"),i=document.querySelector(".mnt-navbar-search-container-mobile"),m=document.querySelector(".mnt-navbar"),o=document.getElementById("mnt-menu-icon"),c=document.getElementById("mnt-navbar-overlay"),f=document.querySelector(".mnt-show-mega-menu"),L=document.querySelector(".mnt-chevron-down-icon-mobile"),d=document.querySelector(".mnt-close-btn-mobile-nav"),M=document.querySelector(".mnt-navbar-mega-menu");d?.addEventListener("click",()=>{d.classList.toggle("mnt-active-btn"),o.style.display="block",o.setAttribute("aria-expanded","false"),c.style.display="none",c.classList.toggle("active")});function S(e){v.forEach(t=>{if(t!==e){const b=t.querySelector(".mnt-navbar-mega-menu"),p=t.querySelector(".mnt-chevron-down-icon-mobile"),h=t.querySelector(".mnt-chevron-down-icon");b&&b.classList.remove("mnt-show-mega-menu"),t.classList.remove("mnt-show-mega-menu"),p&&(p.style.transform="rotate(0deg)"),h&&(h.style.transform="rotate(0deg)")}})}f?.className.includes("mnt-show-mega-menu")&&(L.style.transform="rotate(180deg)"),n?.addEventListener("click",()=>{i.classList.toggle("active")?(console.log("toggledSearchIcon"),n.style.position="absolute",n.style.marginRight="10px",a.style.display="none",r.style.display="none",l.style.display="flex",s.style.display="none",u.style.width="100%",i.style.width="100%",m.style.padding="8px 16px"):(n.style.position="static",n.style.marginRight="0",a.style.display="flex",r.style.display="flex",l.style.display="none",m.style.padding="20px")}),o.addEventListener("click",e=>{e.stopPropagation(),g()}),o.addEventListener("keydown",e=>{e.stopPropagation(),(e.key==="Enter"||e.key==="")&&(e.preventDefault(),g())});function g(){const e=c.classList.toggle("active");if(o.style.display="none",o.setAttribute("aria-expanded","true"),d.classList.toggle("mnt-active-btn"),e){sessionStorage.setItem("mmMenuOpen","false"),c.style.display="flex",c.style.height="100vh";const t=document.querySelector(".mnt-tron-card");t&&(t.style.display="none")}else{c.style.display="none";const t=document.querySelector(".mnt-tron-card");t&&(t.style.display="block")}}document.addEventListener("click",e=>{y()}),document.addEventListener("keydown",e=>{var t=document.querySelector(".mnt-navbar-mega-menu.mnt-show-mega-menu");e.key==="Escape"&&y()});function y(){var e=document.querySelector(".mnt-navbar-mega-menu.mnt-show-mega-menu");e&&e.classList.contains("mnt-show-mega-menu")&&e.classList.remove("mnt-show-mega-menu"),d.classList.contains("mnt-active-btn")&&(d.classList.toggle("mnt-active-btn"),o.style.display="block",o.setAttribute("aria-expanded","false"),c.style.display="none",c.classList.toggle("active"))}const v=document.querySelectorAll(".mnt-navbar-link-item.mnt-navbar-links-dropdown");v.forEach(e=>{e.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),S(e),toggleMegaMenu(e)})}),document.querySelectorAll(".mnt-navbar-mega-menu").forEach(e=>{e.addEventListener("click",t=>{t.stopPropagation()})})}),document.addEventListener("DOMContentLoaded",()=>{const n=document.querySelectorAll(".mnt-navbar-link-item-logged.mnt-navbar-links-dropdown"),a=document.querySelector(".mnt-navbar-overlay-logged-in"),r=document.getElementById("mnt-close-button");document.getElementById("mnt-navbar-burger-menu")?.addEventListener("click",()=>{a.style.display="block"}),r?.addEventListener("click",()=>{a.style.display="none"}),n?.forEach(s=>{s.addEventListener("click",u=>{const i=s.querySelector(".mnt-navbar-logged-in-sublinks-container"),m=s.querySelector(".mnt-chevron-down-icon-mobile"),o=s.querySelector(".mnt-navbar-link-item-logged-label");i&&i.classList.toggle("mnt-show-mega-menu-logged"),i.classList.contains("mnt-show-mega-menu-logged")?(m.style.transform="rotate(180deg)",o.style.fontWeight="600"):(m.style.transform="rotate(0deg)",o.style.fontWeight="400")})})});function toggleMegaMenu(n){const a=n.querySelector(".mnt-navbar-mega-menu"),r=n.classList.toggle("mnt-show-mega-menu"),l=n.querySelector(".mnt-chevron-down-icon-mobile"),s=n.querySelector(".mnt-chevron-down-icon");l&&(l.style.transform=r?"rotate(180deg)":"rotate(0deg)"),s&&(s.style.transform=r?"rotate(180deg)":"rotate(0deg)"),a&&a.classList.toggle("mnt-show-mega-menu")}

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.