MAPG-172 don't close the cookie DIV if not the agree button was clicked
This commit is contained in:
parent
212728e138
commit
eae7cefae1
@ -29,10 +29,13 @@
|
||||
document.cookie = 'COOKIES_CONSENT=1; expires=' + expirationDate + '; path=/';
|
||||
|
||||
MapGuesser.cookiesAgreed = true;
|
||||
document.getElementById('cookiesNotice').style.display = 'none';
|
||||
}
|
||||
};
|
||||
|
||||
document.getElementById('agreeCookies').onclick = function () {
|
||||
document.getElementById('cookiesNotice').style.display = 'none';
|
||||
};
|
||||
|
||||
window.onclick = function () {
|
||||
MapGuesser.agreeCookies();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user