1jQuery(document).ready(function($) { 2 // Mobile menu toggle 3 $(".menu-toggle").click(function(e) { 4 e.preventDefault(); 5 $(".main-navigation").slideToggle(); 6 $(".header-buttons").toggleClass("show-mobile"); 7 8 // Animate hamburger menu 9 $(this).toggleClass("active"); 10 }); 11 12 // Handle submenu clicks on mobile 13 if ($(window).width() < 992) { 14 $(".menu-item-has-children > a").on("click", function(e) { 15 e.preventDefault(); 16 $(this).siblings(".sub-menu").slideToggle(); 17 $(this).parent().toggleClass("submenu-active"); 18 }); 19 } 20 21 // Reset menu state on window resize 22 $(window).resize(function() { 23 if($(window).width() > 992) { 24 $(".main-navigation").show(); 25 $(".header-buttons").removeClass("show-mobile"); 26 $(".sub-menu").removeAttr("style"); 27 } 28 }); 29});
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.