1jQuery( document ).ready( function( $ ) { 2 var $browserWidth = $( window ).width(); 3 var $masthead = $( '#masthead' ); 4 5 $.fn.smallMenu = function() { 6 $( $masthead ).find( '.site-navigation' ).removeClass( 'main-navigation' ).addClass( 'main-small-navigation' ); 7 $( $masthead ).find( '.site-navigation h1' ).removeClass( 'assistive-text' ).addClass( 'menu-toggle' ); 8 9 $( '.menu-toggle' ).click( function () { 10 $( $masthead ).find( '.menu' ).toggle(); 11 $( this ).toggleClass( 'toggled-on' ); 12 }); 13 } 14 15 $(window).resize(function() { 16 var $browserWidth = $( window ).width(); 17 18 if ( $browserWidth < 800 ) { 19 $.fn.smallMenu(); 20 } else { 21 $( $masthead ).find( '.site-navigation' ).removeClass( 'main-small-navigation' ).addClass( 'main-navigation' ); 22 $( $masthead ).find( '.site-navigation h1' ).removeClass( 'menu-toggle' ).addClass( 'assistive-text' ); 23 $( $masthead ).find( '.menu' ).removeAttr( 'style' ); 24 } 25 }); 26 27 if ( $browserWidth < 800 ) { 28 $.fn.smallMenu(); 29 } 30 31} ); 32
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.