Alphissima percorsi seta (accessibile solo dal monitor in servizio)

This commit is contained in:
Leocraft1
2025-08-25 18:11:39 +02:00
parent 9bd8d5cad8
commit daeb9f00e2
12 changed files with 242 additions and 188 deletions

View File

@@ -0,0 +1,22 @@
const uContainer = document.getElementById('urbano-container');
const url = "https://setaapi.serverissimo.freeddns.org/routenumberslist";
//Elenco linee urbano
fetch(url)
.then(response => {
if (!response.ok) throw new Error("Errore nel caricamento dei dati.");
return response.json();
})
.then(data => {
allresults = data;
allresults.forEach(element => {
const result = document.createElement('a');
result.setAttribute("class","bianco");
result.innerHTML = `
<div class="search-result"><h3>${element}</h3>
`;
uContainer.appendChild(option);
});
})
.catch(error => console.error('Errore nel caricamento dei dati:', error));