/** * navigation.js * * Handles toggling the navigation menu for small screens. */ ( function() { var container, button, menu; container = document.getElementById( 'site-navigation' ); if ( ! container ) return; button = container.getElementsByTagName( 'h1' )[0]; if ( 'undefined' === typeof button ) return; menu = container.getElementsByTagName( 'ul' )[0]; // Hide menu toggle button if menu is empty and return early. if ( 'undefined' === typeof menu ) { button.style.display = 'none'; return; } if ( -1 === menu.className.indexOf( 'nav-menu' ) ) menu.className += ' nav-menu'; button.onclick = function() { if ( -1 !== container.className.indexOf( 'toggled' ) ) container.className = container.className.replace( ' toggled', '' ); else container.className += ' toggled'; }; } )(); /* FILE ARCHIVED ON 09:57:20 Sep 28, 2017 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 17:48:45 Sep 18, 2018. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): LoadShardBlock: 50.24 (3) esindex: 0.012 captures_list: 75.033 CDXLines.iter: 16.918 (3) PetaboxLoader3.datanode: 43.706 (4) exclusion.robots: 0.293 exclusion.robots.policy: 0.27 RedisCDXSource: 2.101 PetaboxLoader3.resolve: 53.707 load_resource: 102.953 */