Merged in hotfix/MAPG-172-create-cookie-notice (pull request #144)

MAPG-172 don't close the cookie DIV if not the agree button was clicked
This commit is contained in:
Bence Pőcze 2020-06-24 21:01:34 +00:00
commit 693bddbcf0

View File

@ -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();
};