PageSourceSearch

https://matycohen.com/wp-content/themes/generatepress/js/menu.min.js?ver=2.0.2

js matycohen.com collected 2026-10-10 02:20:32 UTC 2,850 bytes, 1 lines download raw bytes

1!function(){"use strict";if("querySelector"in document&&"addEventListener"in window){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this,n=this;if(!document.documentElement.contains(t))return null;do{if(n.matches(e))return n;n=n.parentElement}while(null!==n);return null});for(var e=document.querySelectorAll(".menu-toggle"),t=document.querySelectorAll("nav .dropdown-menu-toggle"),n=document.body,o=document.documentElement,r=0;r<e.length;r++)e[r].addEventListener("click",function(e,t){if(!t)var t=this;if(t.getAttribute("data-nav"))r=document.getElementById(t.getAttribute("data-nav"));else var r=document.getElementById(t.closest("nav").getAttribute("id"));var s=r.getElementsByTagName("ul")[0];if(r.classList.contains("toggled")){if(r.classList.remove("toggled"),o.classList.remove("mobile-menu-open"),s.setAttribute("aria-hidden","true"),t.setAttribute("aria-expanded","false"),n.classList.contains("dropdown-hover"))for(var l=s.querySelectorAll("li.menu-item-has-children"),i=0;i<l.length;i++)l[i].querySelector(".dropdown-menu-toggle").setAttribute("tabindex","")}else if(r.classList.add("toggled"),o.classList.add("mobile-menu-open"),s.setAttribute("aria-hidden","false"),t.setAttribute("aria-expanded","true"),n.classList.contains("dropdown-hover"))for(var l=s.querySelectorAll("li.menu-item-has-children"),i=0;i<l.length;i++)l[i].querySelector(".dropdown-menu-toggle").setAttribute("tabindex","0")},!1);for(var s=function(e,t){if(!t)var t=this;if((t.closest("nav").classList.contains("toggled")||o.classList.contains("slide-opened"))&&!n.classList.contains("dropdown-click")){e.preventDefault();var r=t.closest("li"),s=r.querySelector(".dropdown-menu-toggle");if("false"==s.getAttribute("aria-expanded")?s.setAttribute("aria-expanded","true"):s.setAttribute("aria-expanded","false"),r.querySelector(".sub-menu"))l=r.querySelector(".sub-menu");else var l=r.querySelector(".children");r.classList.toggle("sfHover"),l.classList.toggle("toggled-on")}e.stopPropagation()},r=0;r<t.length;r++)t[r].addEventListener("click",s,!1),t[r].addEventListener("keypress",function(e){13===(e.which||e.keyCode)&&s(e,this)},!1);var l=function(){for(var t=0;t<e.length;t++)if(null===e[t].offsetParent){var n=e[t].closest("nav"),r=n.getElementsByTagName("ul")[0],s=r.getElementsByTagName("li"),l=r.getElementsByTagName("ul");if(n){n.classList.remove("toggled"),o.classList.remove("mobile-menu-open"),e[t].setAttribute("aria-expanded","false");for(var i=0;i<s.length;i++)s[i].classList.remove("sfHover");for(var a=0;a<l.length;a++)l[a].classList.remove("toggled-on");r&&r.setAttribute("aria-hidden","true")}}};window.addEventListener("resize",l,!1),window.addEventListener("orientationchange",l,!1)}}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.