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