Fix scripts on bottom of the page

This commit is contained in:
0d0acre 2024-09-21 00:41:20 +02:00
parent 38515febef
commit bf1b2d52e8

View file

@ -91,13 +91,12 @@
<script>
function closePopup() {
var popup = document.getElementById("popup");
const popup = document.getElementById("popup");
popup.style.display = "none";
}
// Popup si chiude automaticamente dopo 13 secondi
setTimeout(closePopup, 13000);
</script>
<script>
window.addEventListener('load', () => {
// Add a click event listener to the button
const gpsButton = document.getElementById("gps-button");
@ -113,5 +112,4 @@
<script src="./js/dist/L.Control.Locate.min.js"></script>
<script type="module" type="text/javascript" src="/js/map.js"></script>
</body>
<footer></footer>
</html>