1/** 2 * navigation.js 3 * 4 * Handles toggling the navigation menu for small screens. 5 */ 6 7jQuery(document).ready(function($){ 8 $('.expandedNavTrigger, .expandedNavTriggerCover').click(function() { 9 $(".academicsExtendedNav, .expandedNavTriggerCover").toggleClass("visible"); 10 }); 11}); 12 13/*( function() { 14 var container, button, menu; 15 16 container = document.getElementById( 'site-navigation' ); 17 if ( ! container ) { 18 return; 19 } 20 21 button = container.getElementsByTagName( 'button' )[0]; 22 if ( 'undefined' === typeof button ) { 23 return; 24 } 25 26 menu = container.getElementsByTagName( 'ul' )[0]; 27 28 // Hide menu toggle button if menu is empty and return early. 29 if ( 'undefined' === typeof menu ) { 30 button.style.display = 'none'; 31 return; 32 } 33 34 menu.setAttribute( 'aria-expanded', 'false' ); 35 36 if ( -1 === menu.className.indexOf( 'nav-menu' ) ) { 37 menu.className += ' nav-menu'; 38 } 39 40 button.onclick = function() { 41 if ( -1 !== container.className.indexOf( 'toggled' ) ) { 42 container.className = container.className.replace( ' toggled', '' ); 43 button.setAttribute( 'aria-expanded', 'false' ); 44 menu.setAttribute( 'aria-expanded', 'false' ); 45 } else { 46 container.className += ' toggled'; 47 button.setAttribute( 'aria-expanded', 'true' ); 48 menu.setAttribute( 'aria-expanded', 'true' ); 49 } 50 }; 51} )(); 52*/
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.