Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4561c825a4 | ||
|
|
693bddbcf0 | ||
|
|
eae7cefae1 |
@@ -17,7 +17,7 @@
|
|||||||
<?php if (!isset($_COOKIE['COOKIES_CONSENT'])): ?>
|
<?php if (!isset($_COOKIE['COOKIES_CONSENT'])): ?>
|
||||||
<script>
|
<script>
|
||||||
(function () {
|
(function () {
|
||||||
MapGuesser = {
|
var MapGuesser = {
|
||||||
cookiesAgreed: false,
|
cookiesAgreed: false,
|
||||||
|
|
||||||
agreeCookies: function () {
|
agreeCookies: function () {
|
||||||
@@ -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();
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user