%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/projetos/spanish.ongrace.com/wp-content/themes/flash/js/
Upload File :
Create Path :
Current File : /var/www/projetos/spanish.ongrace.com/wp-content/themes/flash/js/navigation.min.js

!function(){function a(){for(var a=this;-1===a.className.indexOf("nav-menu");)"li"===a.tagName.toLowerCase()&&(-1!==a.className.indexOf("focus")?a.className=a.className.replace(" focus",""):a.className+=" focus"),a=a.parentElement}var b,c,d,e,f,g;if(b=document.getElementById("site-navigation"),b&&(c=b.getElementsByClassName("menu-toggle")[0],"undefined"!=typeof c)){if(d=b.getElementsByTagName("ul")[0],"undefined"==typeof d)return void(c.style.display="none");for(d.setAttribute("aria-expanded","false"),-1===d.className.indexOf("nav-menu")&&(d.className+=" nav-menu"),c.onclick=function(){-1!==b.className.indexOf("toggled")?(b.className=b.className.replace(" toggled",""),c.setAttribute("aria-expanded","false"),d.setAttribute("aria-expanded","false")):(b.className+=" toggled",c.setAttribute("aria-expanded","true"),d.setAttribute("aria-expanded","true"))},e=d.getElementsByTagName("a"),f=0,g=e.length;g>f;f++)e[f].addEventListener("focus",a,!0),e[f].addEventListener("blur",a,!0);!function(a){var b,c,d=a.querySelectorAll(".menu-item-has-children > a, .page_item_has_children > a");if("ontouchstart"in window)for(b=function(a){var b,c=this.parentNode;if(c.classList.contains("focus"))c.classList.remove("focus");else{for(a.preventDefault(),b=0;b<c.parentNode.children.length;++b)c!==c.parentNode.children[b]&&c.parentNode.children[b].classList.remove("focus");c.classList.add("focus")}},c=0;c<d.length;++c)d[c].addEventListener("touchstart",b,!1)}(b)}}(),jQuery(window).load(function(){if(window.matchMedia("(max-width: 980px)").matches&&jQuery("#masthead-sticky-wrapper").length>=1){var a=jQuery(window).height(),b=jQuery("#masthead > .header-top"),c=jQuery("#masthead > .header-bottom"),d=0,e=0;b.length>0&&"none"!=b.css("display")&&(d=b.outerHeight()),c.length>0&&"none"!=c.css("display")&&(e=c.outerHeight());var f=a-d-e-50,g=jQuery("#site-navigation").find("ul").first();g.css("max-height",f),g.addClass("menu-scrollbar")}});

Zerion Mini Shell 1.0