1function closeNavbarDropdowns() { 2 const megaDivs = document.querySelectorAll( 3 '.avia_mega_div[style*="opacity: 1"], .avia_mega_div[style*="display: block"]' 4 ); 5 6 megaDivs.forEach((div) => { 7 div.style.opacity = '0'; 8 div.style.display = 'none'; 9 10 const parentLi = div.closest('li.menu-item'); 11 if (parentLi) { 12 parentLi.style.overflow = 'hidden'; 13 } 14 }); 15} 16 17document.addEventListener('keydown', function (event) { 18 if (event.key === 'Escape' || event.key === 'Esc' || event.keyCode === 27) { 19 closeNavbarDropdowns(); 20 } 21}); 22 23document.addEventListener('click', function (event) { 24 if (!event.target.closest('.avia_mega_div') && !event.target.closest('.menu-item')) { 25 closeNavbarDropdowns(); 26 } 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.