diff --git a/views/templates/main_footer.php b/views/templates/main_footer.php index cbb8457..f50b108 100644 --- a/views/templates/main_footer.php +++ b/views/templates/main_footer.php @@ -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(); };