1var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ 2let window = _____WB$wombat$assign$function_____("window"); 3let self = _____WB$wombat$assign$function_____("self"); 4let document = _____WB$wombat$assign$function_____("document"); 5let location = _____WB$wombat$assign$function_____("location"); 6let top = _____WB$wombat$assign$function_____("top"); 7let parent = _____WB$wombat$assign$function_____("parent"); 8let frames = _____WB$wombat$assign$function_____("frames"); 9let opener = _____WB$wombat$assign$function_____("opener"); 10/** 11 * navigation.js 12 * 13 * Handles toggling the navigation menu for small screens. 14 */ 15( function() { 16 var nav = document.getElementById( 'site-navigation' ), button, menu; 17 if ( ! nav ) 18 return; 19 button = nav.getElementsByTagName( 'h3' )[0]; 20 menu = nav.getElementsByTagName( 'ul' )[0]; 21 if ( ! button ) 22 return; 23 24 // Hide button if menu is missing or empty. 25 if ( ! menu || ! menu.childNodes.length ) { 26 button.style.display = 'none'; 27 return; 28 } 29 30 button.onclick = function() { 31 if ( -1 == menu.className.indexOf( 'nav-menu' ) ) 32 menu.className = 'nav-menu'; 33 34 if ( -1 != button.className.indexOf( 'toggled-on' ) ) { 35 button.className = button.className.replace( ' toggled-on', '' ); 36 menu.className = menu.className.replace( ' toggled-on', '' ); 37 } else { 38 button.className += ' toggled-on'; 39 menu.className += ' toggled-on'; 40 } 41 }; 42} )(); 43}
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.