1window.addEventListener ("DOMContentLoaded", function() { 2 if (!localStorage.getItem('cookieConsent')) { 3 const cookieConsent = document.createElement('div'); 4 cookieConsent.innerHTML = '<div class="cookie-consent">' + 5 '<p>ÐÑ Ð¸ÑполÑзÑем ÑÐ°Ð¹Ð»Ñ cookie, ÑÑÐ¾Ð±Ñ ÑлÑÑÑиÑÑ Ð²Ð°Ñе взаимодейÑÑвие Ñ ÑайÑом.</p>' + 6 '<button class="cookie-consent__button">ÐÑинÑÑÑ</button>' + 7 '</div>'; 8 document.body.appendChild(cookieConsent); 9 10 const button = document.querySelector('.cookie-consent__button'); 11 button.addEventListener('click', () => { 12 localStorage.setItem('cookieConsent', true); 13 cookieConsent.remove(); 14 }); 15 } 16});
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.