Fix policy opt-out issue
This commit is contained in:
parent
c3bc836a99
commit
16beaedc6f
@ -4,7 +4,7 @@ function openPolicyPopup() {
|
|||||||
$("#mind-policy-popup").fadeIn(300); // Enable the div
|
$("#mind-policy-popup").fadeIn(300); // Enable the div
|
||||||
}
|
}
|
||||||
|
|
||||||
function agreePolicyPopup() {
|
function giveConsent() {
|
||||||
const _paq = window._paq || [];
|
const _paq = window._paq || [];
|
||||||
_paq.push(['forgetUserOptOut']);
|
_paq.push(['forgetUserOptOut']);
|
||||||
_paq.push(['rememberConsentGiven', 43800]);
|
_paq.push(['rememberConsentGiven', 43800]);
|
||||||
@ -16,7 +16,7 @@ function agreePolicyPopup() {
|
|||||||
function removeConsent()
|
function removeConsent()
|
||||||
{
|
{
|
||||||
const _paq = window._paq || [];
|
const _paq = window._paq || [];
|
||||||
_paq.push(['rememberCookieConsentGiven']);
|
_paq.push(['forgetCookieConsentGiven']);
|
||||||
$("#mind-policy-popup").fadeIn(300); // Enable the div
|
$("#mind-policy-popup").fadeIn(300); // Enable the div
|
||||||
setCookie("consentGiven", "false", 1825);
|
setCookie("consentGiven", "false", 1825);
|
||||||
}
|
}
|
||||||
|
@ -4,5 +4,5 @@
|
|||||||
<br>
|
<br>
|
||||||
By visiting our website, you agree with our <a href="/policy" target="_blank">Privacy Policy</a>.
|
By visiting our website, you agree with our <a href="/policy" target="_blank">Privacy Policy</a>.
|
||||||
</p>
|
</p>
|
||||||
<button onclick="agreePolicyPopup()">Ok, understood</button>
|
<button onclick="giveConsent()">Ok, understood</button>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user