1( function( window, $, undefined ) { 2 'use strict'; 3 4 $( 'nav' ).before( '<button class="menu-toggle" role="button" aria-pressed="false"></button>' ); // Add toggles to menus 5 $( 'nav .sub-menu' ).before( '<button class="sub-menu-toggle" role="button" aria-pressed="false"></button>' ); // Add toggles to sub menus 6 7 // Show/hide the navigation 8 $( '.menu-toggle, .sub-menu-toggle' ).on( 'click', function() { 9 var $this = $( this ); 10 $this.attr( 'aria-pressed', function( index, value ) { 11 return 'false' === value ? 'true' : 'false'; 12 }); 13 14 $this.toggleClass( 'activated' ); 15 $this.next( 'nav, .sub-menu' ).slideToggle( 'fast' ); 16 17 }); 18 19})( this, 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.