芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/timucuy2124.gob.mx/media/mod_menu/js/menu.min.js
(()=>{function e(e,t){const r=e.querySelector("ul");r&&(r.setAttribute("aria-hidden","false"),r.classList.add(t.menuHoverClass))}function t(e,t){const r=e.querySelector("ul");r&&(r.setAttribute("aria-hidden","true"),r.classList.remove(t.menuHoverClass))}document.addEventListener("DOMContentLoaded",(()=>{const r=document.querySelectorAll(".nav");[].forEach.call(r,(r=>{!function(r){const n={menuHoverClass:"show-menu",dir:"ltr"};r.querySelectorAll(":scope > li").forEach((r=>{const s=r.querySelector("a");s&&(s.tabIndex="0",s.addEventListener("mouseover",e(r,n)),s.addEventListener("mouseout",t(r,n)));const l=r.querySelector("span");l&&(l.tabIndex="0",l.addEventListener("mouseover",e(r,n)),l.addEventListener("mouseout",t(r,n))),r.addEventListener("mouseover",(({target:e})=>{const t=e.querySelector("ul");t&&(t.setAttribute("aria-hidden","false"),t.classList.add(n.menuHoverClass))})),r.addEventListener("mouseout",(({target:e})=>{const t=e.querySelector("ul");t&&(t.setAttribute("aria-hidden","true"),t.classList.remove(n.menuHoverClass))})),r.addEventListener("focus",(({target:e})=>{const t=e.querySelector("ul");t&&(t.setAttribute("aria-hidden","true"),t.classList.add(n.menuHoverClass))})),r.addEventListener("blur",(({target:e})=>{const t=e.querySelector("ul");t&&(t.setAttribute("aria-hidden","false"),t.classList.remove(n.menuHoverClass))})),r.addEventListener("keydown",(e=>{const t=e.key,r=e.target.parentElement,s=r.parentElement;let l=r.previousElementSibling,o=r.nextElementSibling;switch(l||(l=s.children[s.children.length-1]),o||([o]=s.children),t){case"ArrowLeft":e.preventDefault(),"rtl"===n.dir?o.children[0].focus():l.children[0].focus();break;case"ArrowRight":e.preventDefault(),"rtl"===n.dir?l.children[0].focus():o.children[0].focus();break;case"ArrowUp":{e.preventDefault();const t=r.parentElement.parentElement;"LI"===t.nodeName?t.children[0].focus():l.children[0].focus();break}case"ArrowDown":if(e.preventDefault(),r.classList.contains("parent")){const e=r.querySelector("ul");null!=e?e.querySelector("li").children[0].focus():o.children[0].focus()}else o.children[0].focus()}}))}))}(r)}))}))})();