diff --git a/assets/js/scripts/policy-popup.js b/assets/js/scripts/policy-popup.js index 87a89cf..865e1cc 100755 --- a/assets/js/scripts/policy-popup.js +++ b/assets/js/scripts/policy-popup.js @@ -13,6 +13,14 @@ function agreePolicyPopup() { setCookie("consentGiven", "true", 1825); // todo: check if already present? also, firefox was throwing a warning... } +function removeConsent() +{ + const _paq = window._paq || []; + _paq.push(['optUserOut']); + $("#mind-policy-popup").fadeIn(300); // Enable the div + setCookie("consentGiven", "false", 1825); +} + function getCookie(cname) { const name = cname + "="; const decodedCookie = decodeURIComponent(document.cookie);