1'use strict'; 2 3const banner = document.querySelector('.js-banner'); 4 5function closeBanner(event) { 6 const banner = event.currentTarget.closest('.js-banner'); 7 banner.classList.remove('banner-visible'); 8 banner.removeAttribute('role'); 9 banner.setAttribute('aria-hidden', true); 10 setTimeout(function(){ 11 banner.classList.add('hidden'); 12 }, 550); 13} 14 15 16const bannerCloseBtn = banner.querySelector('.js-banner-close'); 17bannerCloseBtn.addEventListener('click', closeBanner); 18 19function showBanner(data){ 20 banner.classList.add(data.type); 21 banner.classList.add('banner-visible'); 22 document.getElementById('banner-msg').innerHTML = data.msg; 23 window.scrollTo(0,document.body.scrollHeight); 24}
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.