/** * Primary front-end script. * * Primary JavaScript file. Any includes or anything imported should be filtered through this file * and eventually saved back into the `/assets/js/app.js` file. * * @package Initiator * @author Benjamin Lu * @copyright 2019-2020 Benjamin Lu * @license https://www.gnu.org/licenses/gpl-2.0.html GPL-2.0-or-later * @link https://github.com/benlumia007/initiator */ !function(e){var t,a,n,r,s,d,l;if((t=document.getElementById("masthead"))&&void 0!==(a=t.getElementsByTagName("button")[0])){for(r=t.getElementsByTagName("nav")[0],(u=document.createElement("span")).classList.add("screen-reader-text"),u.textContent=camaraderieScreenReaderText.expandMain,a.appendChild(u),d=0,l=(n=t.querySelectorAll(".menu-item-has-children, .page_item_has_children")).length;d a, .page_item_has_children > a");if("ontouchstart"in window)for(t=function(e){var t,a=this.parentNode;if(a.classList.contains("focus"))a.classList.remove("focus");else{for(e.preventDefault(),t=0;t=m?(p="down")!==f&&(e(".menu-toggle").addClass("hide"),f=p):(p="up")!==f&&(e(".menu-toggle").removeClass("hide"),f=p),m=e(this).scrollTop()}))}else a.style.display="none"}function h(){for(var e=this;-1===e.className.indexOf("nav-menu");)"li"===e.tagName.toLowerCase()&&(-1!==e.className.indexOf("focus")?e.className=e.className.replace(" focus",""):e.className+=" focus"),e=e.parentElement}}(jQuery);