1jQuery( function() { 2 // Enable menu toggle for small screens. 3 ( function() { 4 var nav = jQuery( '#branding' ), button, menu; 5 if ( ! nav ) { 6 return; 7 } 8 9 button = nav.find( '.menu-toggle' ); 10 if ( ! button ) { 11 return; 12 } 13 14 // Hide button if menu is missing or empty. 15 menu = nav.find( '.root' ); 16 if ( ! menu || ! menu.children().length ) { 17 button.hide(); 18 return; 19 } 20 21 jQuery( '.menu-toggle' ).on( 'click', function() { 22 nav.toggleClass( 'toggled-on' ); 23 } ); 24 } )(); 25} );
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.