1function toggleMegaMenuTabs() { 2 const isDesktop = window.innerWidth >= 992; // Bootstrap lg breakpoint 3 document.querySelectorAll('.megamenu-tabs .nav-link[role="tab"]').forEach(link => { 4 if (isDesktop) { 5 // turn into tab toggle 6 link.setAttribute('data-bs-toggle', 'pill'); 7 link.setAttribute('href', '#' + link.getAttribute('aria-controls')); 8 } else { 9 // restore as real link 10 link.removeAttribute('data-bs-toggle'); 11 link.setAttribute('href', link.getAttribute('data-bs-url')); 12 } 13 }); 14} 15 16// Run on load + resize 17window.addEventListener('load', toggleMegaMenuTabs); 18window.addEventListener('resize', toggleMegaMenuTabs);
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.