From 8ab6e28858c6c4d7e9de6cb6fe0325a3146d4b6f Mon Sep 17 00:00:00 2001 From: Set Sakrecoer Date: Tue, 12 Oct 2021 13:47:30 +0200 Subject: [PATCH] prettier --- _includes/cookie-consent.html | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/_includes/cookie-consent.html b/_includes/cookie-consent.html index ceef6b7..062c424 100644 --- a/_includes/cookie-consent.html +++ b/_includes/cookie-consent.html @@ -40,33 +40,21 @@ function eraseCookie(name) { createCookie(name, "", -1); } - if (readCookie('cookie-notice-dismissed') == 'wantCookies') { - {% include mautic-tracker.js %} + {% include mautic - tracker.js %} } else { document.getElementById('cookie-notice').style.display = 'flex'; - - - } if (readCookie('cookie-notice-dismissed') == 'dontWantCookies') { document.getElementById('cookie-notice').style.display = 'none'; - - } document.getElementById('cookie-notice-accept').addEventListener("click", function () { createCookie('cookie-notice-dismissed', 'wantCookies', 365); document.getElementById('cookie-notice').style.display = 'none'; - _paq.push(['trackEvent', 'Consent', 'wantCookie']); - }); - document.getElementById('cookie-notice-decline').addEventListener("click", function () { createCookie('cookie-notice-dismissed', 'dontWantCookies', 365); document.getElementById('cookie-notice').style.display = 'none'; - _paq.push(['trackEvent', 'Consent', 'dontWantCookie']); - }); - \ No newline at end of file