1jQuery( document ).ready( function( $ ) { 2 $( '#mobile-menu' ).click( function() { 3 $( '#mobile-menu i' ).toggleClass( 'fa-times' ); 4 $( '#mobile-menu i' ).toggleClass( 'fa-bars' ); 5 $( 'body' ).toggleClass( 'nav-open' ); 6 return false; 7 }); 8 9 $( window ).click(function() { 10 $( 'body' ).removeClass( 'nav-open' ); 11 $( '#mobile-menu i' ).removeClass( 'fa-times' ).addClass( 'fa-bars' ); 12 }); 13 14 $('#header nav ul').click(function(event){ 15 event.stopPropagation(); 16 }); 17 18 $( '#header nav li a' ).click( function(){ 19 if ( $('body').hasClass( 'nav-open' ) ) { 20 var submenu = $( this ).siblings( 'ul' ); 21 if ( submenu.size() > 0 ) { 22 submenu.toggleClass( 'active' ); 23 return false; 24 } 25 } 26 }); 27 28 $('a[href*="#"]:not([href="#"])').click(function() { 29 if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { 30 var target = $(this.hash); 31 target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); 32 if (target.length) { 33 $('html,body').animate({ 34 scrollTop: target.offset().top 35 }, 1000); 36 return false; 37 } 38 } 39 }); 40 41});
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.