PageSourceSearch

https://bookings.elgouna.com/build/assets/menu-CQ6l8_yQ.js

js elgouna.com collected 2026-10-01 12:25:10 UTC 4,476 bytes, 2 lines download raw bytes

1function y(){window.scrollTo(0,0)}const b=e=>{let t=e.querySelector(".sub-menu");if(!t){const o=e.getAttribute("aria-controls");t=document.getElementById(o)}t.classList.remove("active"),e.classList.remove("expanded"),e.setAttribute("aria-expanded","false"),document.body.classList.remove("hidden-overflow")},L=e=>{let t=e.querySelector(".sub-menu");if(!t){const o=e.getAttribute("aria-controls");t=document.getElementById(o)}t==null||t.classList.add("active"),e.classList.add("expanded"),e.setAttribute("aria-expanded","true"),document.body.classList.add("hidden-overflow")},x=e=>{e==null||e.map(t=>{t!=null&&t.classList.contains("expanded")&&b(t)})};function f(){var l;const e=document.getElementById("openNav");e&&e.setAttribute("aria-expanded","false"),document.getElementById("side-menu").classList.add("closed"),document.getElementById("side-menu").classList.remove("open"),(l=document.querySelector(".hamburger-menu"))==null||l.classList.remove("open"),document.body.style.overflow="",document.body.classList.remove("hidden-overflow"),document.getElementById("no-scroll-top")||window.removeEventListener("scroll",y);const o=document.getElementById("hide-on-sidebar-open"),d=document.getElementById("lang-menu-hide-on-sidebar-open");o&&d&&(d.style.display="block")}function h(){var r;const e=document.getElementById("side-menu"),t=document.getElementById("openNav");t&&t.setAttribute("aria-expanded","true"),e.classList.add("open"),e.classList.remove("closed"),e.setAttribute("aria-hidden","false"),(r=document.querySelector(".hamburger-menu"))==null||r.classList.add("open"),document.body.style.overflow="hidden",setTimeout(()=>{const c=getFocusableElements();c.length>0&&c[0].focus()},100),document.getElementById("no-scroll-top")||window.addEventListener("scroll",y);const d=document.getElementById("hide-on-sidebar-open"),l=document.getElementById("lang-menu-hide-on-sidebar-open");d&&l&&(l.style.display="none")}function S(){const e=document.querySelector("#element-to-toggle-on-click");e&&(e.classList.contains("expanded")?e.classList.remove("expanded"):e.classList.add("expanded"))}function v(){document.querySelectorAll(".menu-item-has-children-on-hover").forEach(t=>{const o=t.querySelector("[aria-expanded]");o&&(t.addEventListener("mouseenter",()=>{window.innerWidth>=1024&&(o.setAttribute("aria-expanded","true"),t.classList.add("expanded"))}),t.addEventListener("mouseleave",()=>{window.innerWidth>=1024&&(o.setAttribute("aria-expanded","false"),t.classList.remove("expanded"))}))})}$(document).ready(function(){const e=Array.from(document.querySelectorAll(".menu-item-has-children")),t=document.getElementById("side-menu"),o=document.getElementById("openNav"),d=document.getElementById("closeNav");if(o&&o.addEventListener("click",()=>{if(!d&&t.classList.contains("open")){f();return}h()}),d&&d.addEventListener("click",f),e==null||e.map((n,s)=>{n==null||n.addEventListener("click",()=>{n.classList.contains("expanded")?b(n):(x(e),L(n))})}),Array.from((t==null?void 0:t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'))||[]).length){let n=function(s){var i;if(document.getElementById("side-menu").classList.contains("open")){const a=getFocusableElements();if(a.length===0)return;if(s.key==="Escape"){f(),(i=document.querySelector("#openNav"))==null||i.focus();return}if(s.key==="Tab"){const p=a[0],m=a[a.length-1];s.shiftKey&&document.activeElement===p?(s.preventDefault(),m.focus()):!s.shiftKey&&document.activeElement===m&&(s.preventDefault(),p.focus())}}};var g=n;window.addEventListener("keydown",n)}const c=document.querySelectorAll("header .menu-item-has-children > a, header .menu-item-has-children > button");c==null||c.forEach(function(n){const s=n.nextElementSibling;n.getAttribute("aria-expanded")===null&&n.setAttribute("aria-expanded","false"),n.addEventListener("click",function(){const i=n.getAttribute("aria-expanded")==="true";n.setAttribute("aria-expanded",!i),c.forEach(function(a){a!==n&&a.setAttribute("aria-expanded","false")})}),(s?s.querySelectorAll("a, button"):[]).forEach(function(i){i.addEventListener("focus",function(){n.setAttribute("aria-expanded","true")}),i.addEventListener("blur",function(){setTimeout(function(){s.contains(document.activeElement)||n.setAttribute("aria-expanded","fal
1se")},0)})})}),v(),window.addEventListener("resize",v);const u=document.getElementById("btn-toggle-element");u==null||u.addEventListener("click",S)});
2//# sourceMappingURL=menu-CQ6l8_yQ.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.