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:
commit
693bddbcf0
@ -29,10 +29,13 @@
|
|||||||
document.cookie = 'COOKIES_CONSENT=1; expires=' + expirationDate + '; path=/';
|
document.cookie = 'COOKIES_CONSENT=1; expires=' + expirationDate + '; path=/';
|
||||||
|
|
||||||
MapGuesser.cookiesAgreed = true;
|
MapGuesser.cookiesAgreed = true;
|
||||||
document.getElementById('cookiesNotice').style.display = 'none';
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
document.getElementById('agreeCookies').onclick = function () {
|
||||||
|
document.getElementById('cookiesNotice').style.display = 'none';
|
||||||
|
};
|
||||||
|
|
||||||
window.onclick = function () {
|
window.onclick = function () {
|
||||||
MapGuesser.agreeCookies();
|
MapGuesser.agreeCookies();
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user