1(function ($) { 2 //Handle hamburger animation 3 $('.icon').on('click', function () { 4 $(this).toggleClass('open'); 5 }); 6 7 8 $('#bouncexl-masthead .navbar-toggler').click(function () { 9 $('#mobile-overlay').toggle(); 10 $('.mobile-social-menu').toggle(); 11 $('#menu-bounce-xl-header-menu').addClass('mobile-nav'); 12 13 14 if ($('#mobile-overlay').is(":visible")) { 15 $('#menu-bounce-xl-header-menu').show(); 16 } 17 else { 18 $('#menu-bounce-xl-header-menu').hide(); 19 } 20 }); 21 22 23 //Add border to mobile menu 24 $('#menu-bounce-xl-header-menu li a').wrapInner('<span></span>'); 25 26 27 $(window).resize(function () { 28 if ($(window).width() >= 1200) { 29 30 //Clean up mobile overlay and menu nav if window resized while menu open 31 $('.mobile-social-menu').hide(); 32 $('#menu-bounce-xl-header-menu').removeClass('mobile-nav'); 33 $('#menu-bounce-xl-header-menu').show(); 34 $('#mobile-overlay').hide(); 35 } 36 else { 37 $('#menu-bounce-xl-header-menu').addClass('mobile-nav'); 38 39 if ($('#main-nav').hasClass('show')) { 40 $('#mobile-overlay').show(); 41 $('.mobile-social-menu').show(); 42 $('nav-icon-hamburger').addClass('open'); 43 } 44 } 45 }); 46 47})(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.