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