This commit is contained in:
Leocraft1 2025-07-25 20:07:51 +02:00
parent e887c57348
commit ac8203a047
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ const resultsContainer = document.getElementById('searchResults');
let allresults = []; let allresults = [];
window.onbeforeunload=searchBar.value=""; window.onbeforeunload=searchBar.value="";
const url = 'http://setaapi.serverissimo.freeddns.org/stoplist'; const url = 'https://setaapi.serverissimo.freeddns.org/stoplist';
fetch(url) fetch(url)
.then(response => { .then(response => {
if (!response.ok) throw new Error("Errore nel caricamento dei dati."); if (!response.ok) throw new Error("Errore nel caricamento dei dati.");

View File

@ -6,7 +6,7 @@ const codice = params.get('code');
const fermata_span = document.getElementById('fermata-span'); const fermata_span = document.getElementById('fermata-span');
fermata_span.innerHTML = `"${nome}"`; fermata_span.innerHTML = `"${nome}"`;
const urlBackend = `http://setaapi.serverissimo.freeddns.org/arrivals/${codice}`; const urlBackend = `https://setaapi.serverissimo.freeddns.org/arrivals/${codice}`;
function caricadati(){ function caricadati(){
fetch(urlBackend) fetch(urlBackend)
.then(response => { .then(response => {