Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4561c825a4 | ||
|
|
693bddbcf0 | ||
|
|
eae7cefae1 | ||
|
|
212728e138 | ||
|
|
0d627f297e | ||
|
|
f07ae979a2 | ||
|
|
8bdbbafcff |
No files matched your search
@@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
#noPano {
|
#noPano {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
@@ -23,7 +25,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#noPano>p {
|
#noPano>p {
|
||||||
margin: auto;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#control {
|
#control {
|
||||||
|
|||||||
@@ -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();
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -25,9 +25,9 @@
|
|||||||
<?php if (!isset($_COOKIE['COOKIES_CONSENT'])): ?>
|
<?php if (!isset($_COOKIE['COOKIES_CONSENT'])): ?>
|
||||||
<div id="cookiesNotice">
|
<div id="cookiesNotice">
|
||||||
<p class="small">
|
<p class="small">
|
||||||
<?= $_ENV['APP_NAME'] ?> uses cookies to improve user experience. By using the app or clicking I agree, you consent to our use of cookies.
|
<?= $_ENV['APP_NAME'] ?> uses cookies to improve user experience. By using the app or clicking 'Agree', you consent to our use of cookies.
|
||||||
</p>
|
</p>
|
||||||
<button id="agreeCookies" class="small marginTop">I agree</button>
|
<button id="agreeCookies" class="small marginTop">Agree</button>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<div id="loading">
|
<div id="loading">
|
||||||
|
|||||||
Reference in new issue
Block a user