1document.addEventListener('click', function(e) { 2 if (!e.target) return; 3 4 const alertTypes = [ 5 { buttonClass: 'close-emergency-button', selector: '.ums-emergency' }, 6 { buttonClass: 'close-announcement-button', selector: '.ums-announcement' } 7 ]; 8 9 for (const type of alertTypes) { 10 if (e.target.classList.contains(type.buttonClass)) { 11 const banner = e.target.closest(type.selector); 12 if (banner) { 13 banner.style.display = 'none'; 14 } 15 break; 16 } 17 } 18});
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.