(function () {
function checkConsent() {
const match = document.cookie.match(/cookieconsent_status=([^;]+)/);
const value = match ? match[1] : null;
if (value === "deny") {
document.body.classList.add("gdpr-denied");
return true;
}
return false;
}
function init() {
if (!checkConsent()) {
setTimeout(init, 200);
}
}
init();
})();