1/** 2* Enables menu toggle for small screens. 3*/ 4 jQuery.noConflict()(function($){ 5 $(document).ready(function(){ 6 ( function() { 7 var nav = $( '#mainnav' ), button, menu; 8 if ( ! nav ) 9 return; 10 11 button = nav.find( '.menu-toggle' ); 12 menu = nav.find( '.nav-menu' ); 13 if ( ! button ) 14 return; 15 16 // Hide button if menu is missing or empty. 17 if ( ! menu || ! menu.children().length ) { 18 button.hide(); 19 return; 20 } 21 22 $( '.menu-toggle' ).on( 'click', function() { 23 nav.toggleClass( 'toggled-on' ); 24 } ); 25 } )(); 26 }); 27 }); 28 29/** 30* Accordion 31*/ 32jQuery.noConflict()(function($){ 33$(document).ready(function(){ 34 $('.accordion-container').hide(); 35 $('.accordion-trigger:first').addClass('active').next().show(); 36 $('.accordion-trigger').click(function(){ 37 if( $(this).next().is(':hidden') ) { 38 $('.accordion-trigger').removeClass('active').next().slideUp(); 39 $(this).toggleClass('active').next().slideDown(); 40 } 41 return false; 42 }); 43 }); 44 });
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.