1function toggleExpand(elem) { 2 document.querySelectorAll('div.nav-active').forEach(drawer => { 3 if (drawer !== elem.parentNode.closest('div')) { 4 drawer.classList.remove('nav-active'); 5 } 6 }); 7 elem.parentNode.closest('div').classList.toggle('nav-active'); 8 /* Toggle the 'open' class to expand or collapse */ 9 } 10 11 function toggleExpandNav(elem) { 12 const expandable = document.querySelector('.mobile-item'); 13 const menuLi = document.querySelector('.mobile-item'); 14 document.querySelectorAll('li.li-active').forEach(drawer => { 15 if (drawer !== elem.parentNode.closest('li')) { 16 drawer.classList.remove('li-active'); 17 } 18 }); 19 elem.parentNode.closest('li').classList.toggle('li-active'); 20 /* Toggle the 'open' class to expand or collapse */ 21 } 22 23 document.addEventListener("DOMContentLoaded", function () { 24 // Your code here, after the DOM is fully loaded 25 var bodyClass = document.body.className; 26 if (bodyClass.indexOf("page-id-") !== -1) { 27 var checkPgCls = bodyClass.split("page-id-"); 28 var pageId = checkPgCls[checkPgCls.length - 1].split(" ")[0]; 29 var pageElement = document.querySelector(".mega-links .page-id-" + pageId); 30 if (pageElement) { 31 pageElement.classList.add("active"); 32 } 33 } 34 // Search elements in header 35 const contactBtn = document.querySelector('.contact-btn'); 36 const searchNav = document.querySelector('.search-nav'); 37 const searchInput = document.querySelector('#searchInput'); 38 39 // Add click event to contact button 40 contactBtn.addEventListener('click', function(event) { 41 event.stopPropagation(); // Prevent event propagation 42 searchNav.classList.remove('active-search'); // Remove the 'active-search' class 43 searchInput.value = ''; // Clear the input field 44 }); 45 46 // Add click event to search navigation 47 searchNav.addEventListener('click', function() { 48 setTimeout(function() { 49 searchInput.focus(); // Focus on the input field after a small delay 50 }, 10); 51 searchNav.classList.add('active-search'); // Add the 'active-search' class to searchNav 52 }); 53 });
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.