1var dotnet = { 2 parent : function(node ,targetClass){ 3 while(node){ 4 if(node.nodeType == 1 && node.classList.contains(targetClass)){ 5 return node; 6 } 7 node = node.parentNode; 8 } 9 } 10 } 11;(function(){ 12 var screenWidth = window.innerWidth; 13 if(screenWidth < 768){ 14 var navMenu = document.querySelector("#navMenu"), 15 openNavBtn = document.querySelector("#openNavMenu"), 16 overlay = document.createElement("div"); 17 18 overlay.classList.add("navMenu-overlay"); 19 document.body.appendChild(overlay); 20 21 navMenu.addEventListener("touchstart",function(e){ 22 var target = dotnet.parent(e.target,"item-link"); 23 target && target.classList.add("active-status"); 24 }); 25 navMenu.addEventListener("touchend",function(e){ 26 var target = dotnet.parent(e.target,"item-link"); 27 target && target.classList.remove("active-status"); 28 }); 29 30 openNavBtn.addEventListener("touchend",function(){ 31 document.body.classList.add("open"); 32 setTimeout(function(){ 33 overlay.addEventListener("touchend",openMenu); 34 },1) 35 }); 36 var openMenu = function(){ 37 document.body.classList.remove("open"); 38 overlay.removeEventListener("touchend",openMenu); 39 return false; 40 } 41 } 42})();
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.