View file File name : above-menu-no-toggle.min.js Content :!function(){var o=screen.width;if((document.querySelectorAll(".ast-no-toggle-above-menu-enable")||0).length){for(var e=document.querySelectorAll(".ast-above-header"),t=document.querySelectorAll(".ast-above-header"),n=0;n<t.length;n++){e[n].querySelectorAll(".ast-above-header-menu .menu-item");var l=e[n].querySelectorAll(".ast-above-header-menu .ast-menu-toggle");if(0<l.length)for(var r=0;r<l.length;r++)l[r].addEventListener("click",AstraToggleSubMenu,!1);i(l=e[n].querySelectorAll(".ast-above-header-menu > .menu-item > .ast-menu-toggle"))}window.addEventListener("resize",function(){if(o!=screen.width&&(o=screen.width,"BODY"===document.activeElement.tagName)){for(var e=document.querySelectorAll(".ast-above-header .sub-menu"),t=0;t<e.length;t++)e[t].removeAttribute("style");for(e=document.querySelectorAll(".ast-above-header li"),t=0;t<e.length;t++)e[t].classList.remove("ast-submenu-expanded");for(var n=document.querySelectorAll(".ast-above-header"),l=document.querySelectorAll(".ast-above-header"),r=0;r<l.length;r++){var a=n[r].querySelectorAll(".ast-above-header-menu > .menu-item > .ast-menu-toggle");if(0!==a.length){for(r=0;r<a.length;r++)a[r].nextElementSibling.removeAttribute("data-set");i(a)}}}})}function i(e){if(parseInt(window.innerWidth)<=480)for(var t=0;t<e.length;t++)e[t].addEventListener("click",function(e){e.preventDefault();var e=this.nextElementSibling.getBoundingClientRect();null===this.nextElementSibling.getAttribute("data-set")&&(this.nextElementSibling.setAttribute("data-set",!0),left="-"+parseFloat(e.left)+"px",this.nextElementSibling.style.left=left,e=document.documentElement.clientWidth,this.nextElementSibling.style.width=e+"px")})}}();