// JS File for Blockattack // Cookie Banner document.addEventListener("DOMContentLoaded", function () { const cookieKey = "cookieConsent"; const shouldShowBanner = !localStorage.getItem(cookieKey) || window.location.hash === "#changecookies"; if (shouldShowBanner) { showCookieBanner(); } function showCookieBanner() { const banner = document.createElement("div"); banner.id = "cookie-banner"; banner.innerHTML = `
Diese Seite verwendet Cookies, Google Analytics und Google Services wie Ads. Durch die Nutzung stimmen Sie unseren Nutzungsbedingungen und Datenschutzbestimmungen zu.
`; document.body.appendChild(banner); document.getElementById("accept-cookies").addEventListener("click", function () { localStorage.setItem(cookieKey, "accepted"); banner.remove(); }); } });