1////document.addEventListener("DOMContentLoaded", function () { 2 3//// var navLink = document.querySelector('#PrimaryNavigation li.megaLink a'); 4 5//// navLink.addEventListener('click', function (event) { 6 7//// event.preventDefault(); 8 9//// if (this.classList.contains("active")) { 10//// document.getElementsByClassName("mega-menu").classList.remove("activeNav"); 11//// document.getElementsByClassName("menu-block").classList.remove("active"); 12//// document.querySelectorAll(".megaLink a").classList.remove("active"); 13//// } else { 14//// //$('header .mega-menu').css("top", $("header").height()); 15//// document.getElementsByClassName("menu-block").classList.remove("active"); 16//// document.querySelectorAll(".megaLink a").classList.remove("active"); 17 18//// this.classList.add("active"); 19 20//// let menuID = this.attr('href'); 21 22//// document.getElementsByClassName("mega-menu").classList.add("activeNav"); 23 24//// menuID.classList.add("active"); 25//// } 26 27//// }); 28////}); 29 30function navFunction(event) { 31 32 event.preventDefault(); 33 34 if (document.querySelector('#PrimaryNavigation li.megaLink a.nav-link.active') !== null) { 35 36 if (event.target.classList.contains("active")) { 37 document.querySelector('#PrimaryNavigation li.megaLink a.nav-link.active').classList.remove('active'); 38 } else { 39 document.querySelector('#PrimaryNavigation li.megaLink a.nav-link.active').classList.remove('active'); 40 event.target.className = "nav-link active"; 41 } 42 43 } else { 44 event.target.className = "nav-link active"; 45 } 46 47} 48 49function navScrollFunction(e) { 50 document.querySelectorAll('.mega-menu li a[href^="#"]').forEach(anchor => { 51 anchor.addEventListener('click', function (e) { 52 e.preventDefault(); 53 54 document.querySelector(this.getAttribute('href')).scrollIntoView({ 55 behavior: 'smooth' 56 }); 57 }); 58 }); 59} 60 61function shuttleScroll() { 62 63 64 var tabEl = document.querySelector('button[data-bs-toggle="tab"]') 65 tabEl.addEventListener('shown.bs.tab', function (event) { 66 event.target // newly activated tab 67 event.relatedTarget // previous active tab 68 }) 69 70}
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.