1//Mobile menu functionality OLD VERSION - top level nav not clickable. 2/* 3function mobileMenuExpanding() { 4 $('.mobile_menu li a').click(function() { 5 if($(this).parent('li').has('ul').length > 0) { //Check if it has child ul 6 if($(this).parent('li').hasClass('expanded')) { //if has class expanded 7 $(this).parent('li').removeClass('expanded'); //remove expanded class 8 if($(this).parent('li').children('ul').children('li').hasClass('expanded')) { 9 $(this).parent('li').children('ul').children('li').removeClass('expanded'); } 10 return false; 11 } else { 12 $(this).parent('li').children('ul').addClass('tempClass'); //give temp class 13 $(this).parent('li').addClass('expanded'); //give expanded class 14 return false; 15 } 16 } else { //No child ul - you may pass 17 } 18 }); 19} 20*/ 21 22 23//Mobile menu functionality NEW version, closes other item and top level is clickable 24function mobileMenuExpanding() { 25 $('.mobile_menu li a').click(function() { 26 if($(this).parent('li').has('ul').length > 0) { //Check if it has child ul 27 if($(this).parents('li').hasClass('expanded')) { //if has class expanded 28 return; 29 } else { 30 $('.expanded').removeClass('expanded'); //Remove all expanded classes 31 $(this).parent('li').addClass('expanded'); //give expanded class to this item 32 return false; 33 } 34 } else { //No child ul - you may pass 35 } 36 }); 37} 38 39function mobileMenu() { 40 $('.contentWrap').toggleClass('activated'); 41 $('.mobileSideMenu').toggleClass('activated'); 42} 43 44function start() { 45 mobileMenuExpanding(); 46} 47window.onload=start; 48 49document.addEventListener("DOMContentLoaded", () => { 50 function updateScrollbarVar() { 51 const sb = window.innerWidth - document.documentElement.clientWidth; 52 document.documentElement.style.setProperty("--scrollbar-width", sb + "px"); 53 } 54 55 updateScrollbarVar(); // initial run 56 window.addEventListener("resize", updateScrollbarVar); // update on resize 57});
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.