1(function () { 2 if (window.__lagunaCookieConsentInit) { 3 return; 4 } 5 window.__lagunaCookieConsentInit = true; 6 7 function initCookieConsent() { 8 var banner = document.getElementById('cookieNotification'); 9 var acceptBtn = document.getElementById('cookieAccept'); 10 if (!banner || !acceptBtn) { 11 return; 12 } 13 14 function hideBanner() { 15 banner.classList.remove('is-visible'); 16 banner.style.animation = 'none'; 17 banner.classList.add('hidden'); 18 } 19 20 function showBanner() { 21 banner.classList.remove('hidden'); 22 void banner.offsetWidth; 23 banner.classList.add('is-visible'); 24 } 25 26 try { 27 if (localStorage.getItem('cookiesAccepted') === 'true') { 28 hideBanner(); 29 return; 30 } 31 } catch (e) {} 32 33 setTimeout(showBanner, 1000); 34 35 acceptBtn.addEventListener('click', function (e) { 36 e.preventDefault(); 37 try { 38 localStorage.setItem('cookiesAccepted', 'true'); 39 } catch (err) {} 40 hideBanner(); 41 }); 42 } 43 44 if (document.readyState === 'loading') { 45 document.addEventListener('DOMContentLoaded', initCookieConsent); 46 } else {
47 initCookieConsent(); 48 } 49})();
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.