Fix scripts on bottom of the page
This commit is contained in:
parent
38515febef
commit
bf1b2d52e8
1 changed files with 2 additions and 4 deletions
|
@ -91,13 +91,12 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function closePopup() {
|
function closePopup() {
|
||||||
var popup = document.getElementById("popup");
|
const popup = document.getElementById("popup");
|
||||||
popup.style.display = "none";
|
popup.style.display = "none";
|
||||||
}
|
}
|
||||||
// Popup si chiude automaticamente dopo 13 secondi
|
// Popup si chiude automaticamente dopo 13 secondi
|
||||||
setTimeout(closePopup, 13000);
|
setTimeout(closePopup, 13000);
|
||||||
</script>
|
|
||||||
<script>
|
|
||||||
window.addEventListener('load', () => {
|
window.addEventListener('load', () => {
|
||||||
// Add a click event listener to the button
|
// Add a click event listener to the button
|
||||||
const gpsButton = document.getElementById("gps-button");
|
const gpsButton = document.getElementById("gps-button");
|
||||||
|
@ -113,5 +112,4 @@
|
||||||
<script src="./js/dist/L.Control.Locate.min.js"></script>
|
<script src="./js/dist/L.Control.Locate.min.js"></script>
|
||||||
<script type="module" type="text/javascript" src="/js/map.js"></script>
|
<script type="module" type="text/javascript" src="/js/map.js"></script>
|
||||||
</body>
|
</body>
|
||||||
<footer></footer>
|
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue