🍪 Cookies on Managed.
We use some essential cookies to make this service work.
We'd also like to use analytics cookies so we can
understand how you use the service and make improvements.
-->
`;
document.head.appendChild(scriptElement);
const gtmNoscript = document.createElement("iframe");
gtmNoscript.src = '';
gtmNoscript.height = "0";
gtmNoscript.width = "0";
gtmNoscript.style.display = "none";
gtmNoscript.style.visibility = "hidden";
document.body.appendChild(gtmNoscript);
}
} else {
cookieBanner.style.display = "block";
}
function setCookie(name, value) {
const date = new Date();
date.setTime(date.getTime() + 6 * 30 * 24 * 60 * 60 * 1000); // Expires in 6 months
const expires = "expires=" + date.toUTCString();
document.cookie = name + "=" + value + "; " + expires + "; path=/";
}
accept.addEventListener('click', () => {
setCookie("ManagedCookiesPreferences", "Accept all");
cookieBanner.style.display = "none";
const scriptElement = document.createElement('script');
scriptElement.innerHTML = `
// Clarity
(function (c, l, a, r, i, t, y) {
c[a] = c[a] || function () { (c[a].q = c[a].q || []).push(arguments) };
t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i;
y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "mf1zcaqnvi");
`;
document.head.appendChild(scriptElement);
const gtmNoscript = document.createElement("iframe");
gtmNoscript.src = '';
gtmNoscript.height = "0";
gtmNoscript.width = "0";
gtmNoscript.style.display = "none";
gtmNoscript.style.visibility = "hidden";
document.body.appendChild(gtmNoscript);
});
reject.addEventListener('click', () => {
setCookie("ManagedCookiesPreferences", "Essential only");
cookieBanner.style.display = "none";
});