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 23:00:26 +02:00
parent 212728e138
commit eae7cefae1

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