mirror of
https://github.com/Daniongithub/ER-TPL.git
synced 2025-10-02 16:50:48 +00:00
SSL
This commit is contained in:
@@ -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.");
|
||||||
|
@@ -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 => {
|
||||||
|
Reference in New Issue
Block a user