1function open_accordion_details() 2{ 3 var hash = location.hash.substring(1); 4 if ( hash !== '' ) 5 { 6 var details = document.getElementById(hash); 7 if ( details !== null ) 8 { 9 if ( details.tagName.toLowerCase() === 'details' ) 10 { 11 details.setAttribute('open', true); 12 } 13 } 14 } 15} 16 17jQuery(document).ready(function(){ 18 /* 19 * Helper to add a "mega-menu" class to the mega menu so it can be targeted for 100% width and leave auto width for standard dropdowns 20 */ 21 jQuery('.header_primary_navigation .menu > li.menu-item-has-children > .sub-menu:has(ul.sub-menu)').each(function(){ 22 jQuery(this).addClass('mega-menu'); 23 }); 24 25 window.addEventListener('hashchange', open_accordion_details); 26 open_accordion_details(); 27});
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.