1( function( window, $, undefined ) { 2 'use strict'; 3 4 // Add toggles to menus 5 $( 'nav' ).before( '<div class="menu-toggle"><span></span></div>' ); 6 // Add toggles to sub menus 7 $( 'nav .sub-menu' ).before( '<div class="sub-menu-toggle"></div>' ); 8 9 $(window).resize(function(){ 10 if(window.innerWidth > 940) { 11 $( 'nav' ).removeAttr( 'style' ); 12 $( '.sub-menu-toggle, .menu-toggle' ).removeClass( 'active' ); 13 } 14 }); 15 16 // Show/hide the navigation 17 $( '.menu-toggle, .sub-menu-toggle' ).on( 'click', function() { 18 var $this = $( this ); 19 $this.toggleClass( 'active' ); 20 $this.next( 'nav, .sub-menu' ).slideToggle( 'slow' ); 21 }); 22 23})( 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.