PageSourceSearch

https://visualmodo.com/wp-content/themes/visualmodo/build/frontend/js/header-ui.min.js?ver=1785683651

js visualmodo.com collected 2026-09-24 08:02:22 UTC 2,258 bytes, 1 lines download raw bytes

1function visualmodoInitializeHeader(){const e=document.querySelector(".visualmodo-site-header");if(!e)return;const t=document.querySelectorAll(".visualmodo-account-menu"),o=e.querySelector(".visualmodo-mobile-menu__toggle"),a=e.querySelector(".visualmodo-mobile-menu__overlay"),n=e.querySelectorAll(".visualmodo-mobile-nav__parent"),i=document.body?.classList.contains("home")??"/"===window.location.pathname,d=()=>{const t=window.scrollY>8;e.dataset.scrolled=t?"true":"false"};if(d(),window.addEventListener("scroll",d,{passive:!0}),t.forEach(e=>{const t=e.querySelector(".visualmodo-account-menu__trigger");t&&(document.addEventListener("click",t=>{e.contains(t.target)||(e.open=!1)}),e.addEventListener("keydown",o=>{"Escape"===o.key&&(e.open=!1,t.focus({preventScroll:!0}))}))}),o&&a){const t=window.matchMedia("(max-width: 63.99875rem)");a.hidden=!1;const i=t=>{e.dataset.mobileMenuOpen=t?"true":"false",o.setAttribute("aria-expanded",t?"true":"false"),o.setAttribute("aria-label",t?"Close navigation":"Open navigation"),document.body.classList.toggle("visualmodo-mobile-menu-open",t)},d=()=>{i(!1),n.forEach(e=>{e.setAttribute("aria-expanded","false"),e.closest(".visualmodo-mobile-nav__item")?.removeAttribute("data-open")})};o.addEventListener("click",()=>{const t="true"===e.dataset.mobileMenuOpen;i(!t)}),a.addEventListener("click",e=>{e.target===a&&d()}),a.querySelectorAll("a").forEach(e=>{e.addEventListener("click",()=>{d()})}),n.forEach(e=>{e.addEventListener("click",()=>{const t=e.closest(".visualmodo-mobile-nav__item");if(!t)return;const o="true"===t.dataset.open;n.forEach(e=>{e.setAttribute("aria-expanded","false"),e.closest(".visualmodo-mobile-nav__item")?.removeAttribute("data-open")}),o||(t.dataset.open="true",e.setAttribute("aria-expanded","true"))})}),window.addEventListener("resize",()=>{t.matches||d()},{passive:!0}),document.addEventListener("keydown",t=>{"Escape"===t.key&&"true"===e.dataset.mobileMenuOpen&&(d(),o.focus({preventScroll:!0}))}),i(!1)}i?(e.dataset.mounted="true",e.addEventListener("animationend",()=>{delete e.dataset.mounted},{once:!0})):delete e.dataset.mounted}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",visualmodoInitializeHeader,{once:!0}):visualmodoInitializeHeader();

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.