skip reload when accepting cookie
This commit is contained in:
parent
19be21f3bd
commit
33ffadfc64
|
@ -52,20 +52,20 @@
|
||||||
createCookie('cookie-notice-dismissed', 'wantCookies', 90);
|
createCookie('cookie-notice-dismissed', 'wantCookies', 90);
|
||||||
document.getElementById('cookie-notice').style.display = 'none';
|
document.getElementById('cookie-notice').style.display = 'none';
|
||||||
_paq.push(['trackEvent', 'Consent', 'wantCookie']);
|
_paq.push(['trackEvent', 'Consent', 'wantCookie']);
|
||||||
location.reload();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
document.getElementById('cookie-notice-decline').addEventListener("click", function () {
|
document.getElementById('cookie-notice-decline').addEventListener("click", function () {
|
||||||
createCookie('cookie-notice-dismissed', 'dontWantCookies', 90);
|
createCookie('cookie-notice-dismissed', 'dontWantCookies', 90);
|
||||||
document.getElementById('cookie-notice').style.display = 'none';
|
document.getElementById('cookie-notice').style.display = 'none';
|
||||||
_paq.push(['trackEvent', 'Consent', 'dontWantCookie']);
|
_paq.push(['trackEvent', 'Consent', 'dontWantCookie']);
|
||||||
location.reload();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// document.getElementById('cookie-notice-gimme').addEventListener("click", function () {
|
// document.getElementById('cookie-notice-gimme').addEventListener("click", function () {
|
||||||
// createCookie('cookie-notice-dismissed', 'wantCookies', 31);
|
// createCookie('cookie-notice-dismissed', 'wantCookies', 31);
|
||||||
// document.getElementById('cookie-notice').style.display = 'none';
|
// document.getElementById('cookie-notice').style.display = 'none';
|
||||||
// location.reload();
|
//
|
||||||
// });
|
// });
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue