PageSourceSearch

https://over.archiefweb.eu/hubfs/hub_generated/module_assets/1/262…/1759313678031/module_footer-menu.min.js

js archiefweb.eu collected 2026-09-24 09:01:16 UTC 3,921 bytes, 2 lines download raw bytes

1var module_262981362907=function(){var menuParentItems=document.querySelectorAll(".menu--desktop .menu__item--has-submenu"),childToggle=document.querySelectorAll(".menu--mobile .menu__child-toggle");let _footerLastColCount,_footerWrapperLastCols;function updateFooterNavColumnCount(){const footerNav=document.querySelector(".footer-nav-list");if(!footerNav)return;const itemsCount=footerNav.querySelectorAll(".footer-nav-list__item").length,w=window.innerWidth;let columns;columns=w>=1300&&w<1600?Math.min(3,itemsCount):Math.min(4,itemsCount),_footerLastColCount!==columns&&(_footerLastColCount=columns,footerNav.style.setProperty("--col-count",columns),footerNav.classList.forEach((c=>{c.startsWith("col-")&&footerNav.classList.remove(c)})),footerNav.classList.add(`col-${columns}`))}function updateFooterWrapperColumns(){const wrapper=document.querySelector(".footer-nav-wrapper.-logo-first-row");if(!wrapper)return;if(!(window.innerWidth>=1300))return void(void 0!==_footerWrapperLastCols&&(wrapper.style.removeProperty("grid-template-columns"),_footerWrapperLastCols=void 0));const cols=[wrapper.querySelector(".footer-nav-list"),wrapper.querySelector(".footer-address"),wrapper.querySelector(".footer-form-container")].filter((el=>!!el&&"none"!==window.getComputedStyle(el).display)).length||1;_footerWrapperLastCols!==cols&&(_footerWrapperLastCols=cols,wrapper.style.gridTemplateColumns=Array(cols).fill("auto").join(" "))}menuParentItems&&Array.prototype.forEach.call(menuParentItems,(function(el){var childToggle=el.querySelector(".menu__child-toggle");el.addEventListener("mouseover",(function(){this.classList.add("menu__item--open"),this.querySelector("a").setAttribute("aria-expanded","true"),this.querySelector("button").setAttribute("aria-expanded","true")})),el.addEventListener("mouseout",(function(){document.querySelector(".menu__item--open > a").setAttribute("aria-expanded","false"),document.querySelector(".menu__item--open > button").setAttribute("aria-expanded","false"),document.querySelector(".menu__item--open").classList.remove("menu__item--open")})),childToggle.addEventListener("click",(function(){this.parentNode.classList.contains("menu__item--open")?(this.parentNode.classList.remove("menu__item--open"),this.parentNode.querySelector("a").setAttribute("aria-expanded","false"),this.parentNode.querySelector("button").setAttribute("aria-expanded","false")):(this.parentNode.classList.add("menu__item--open"),this.parentNode.querySelector("a").setAttribute("aria-expanded","true"),this.parentNode.querySelector("button").setAttribute("aria-expanded","true"))}))})),childToggle&&Array.prototype.forEach.call(childToggle,(function(el){el.addEventListener("click",(function(){this.classList.toggle("menu__child-toggle--open"),this.parentNode.classList.contains("menu__item--open")?(this.parentNode.classList.remove("menu__item--open"),this.parentNode.querySelector("a").setAttribute("aria-expanded","false"),this.parentNode.querySelector("button").setAttribute("aria-expanded","false")):(this.parentNode.classList.add("menu__item--open"),this.parentNode.querySelector("a").setAttribute("aria-expanded","true"),this.parentNode.querySelector("button").setAttribute("aria-expanded","true"))}))})),window.addEventListener("DOMContentLoaded",updateFooterNavColumnCount),window.addEventListener("resize",updateFooterNavColumnCount),window.addEventListener("DOMContentLoaded",(function(){updateFooterWrapperColumns(),function(){const wrapper=document.querySelector(".footer-nav-wrapper.-logo-first-row");if(!wrapper)return;new MutationObserver((()=>{updateFooterWrapperColumns()})).observe(wrapper,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]})}()})),window.addEventListener("resize",updateFooterWrapperColumns)}();
2//# sourceURL=https://146030695.fs1.hubspotusercontent-eu1.net/hubfs/146030695/hub_generated/module_assets/1/262981362907/1759313678031/module_footer-menu.js

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.