1(function($) { 2 3 $(document).on('click', '.search-item', function() { 4 $(this).toggleClass('active close-search'); 5 const searchForm = $('.navigation-search'); 6 searchForm.toggleClass('nav-search-active'); 7 searchForm.find('input').focus(); 8 }); 9 10 $(document).on('click', '.menu-toggle', function() { 11 $(this).attr('aria-expanded', $(this).attr('aria-expanded') === 'false'); 12 $('#mobile-header').toggleClass('toggled'); 13 }); 14 15 $(document).on('click', '.dropdown-menu-toggle', function(e) { 16 e.preventDefault(); 17 $(this).toggleClass('open'); 18 $(this).parent().siblings('.sub-menu').toggleClass('toggled-on'); 19 }); 20 21 // scroll to top 22 const scrollBtn = document.getElementById('scroll-top'); 23 const scrollThreshold = 300; // Show button after 300px scroll 24 25 // Handle scroll event 26 window.addEventListener('scroll', () => { 27 if (window.scrollY > scrollThreshold) { 28 scrollBtn.classList.add('visible'); 29 } else { 30 scrollBtn.classList.remove('visible'); 31 } 32 }); 33 34 // Smooth scroll to top 35 scrollBtn.addEventListener('click', () => { 36 window.scrollTo({ 37 top: 0, 38 behavior: 'smooth' 39 }); 40 }); 41 42})(jQuery);
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.