mirror of
https://github.com/Daniongithub/ER-TPL.git
synced 2025-12-06 09:22:03 +00:00
Fallback API.
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
</div>
|
||||
<div class="riga">
|
||||
<h2 class="piccolospazio">Ravenna:</h2>
|
||||
<p class="piccolospazio" style="color:orange;">Attenzione: stiamo riscontrando problemi con i nostri server,<br>pertanto il servizio "Autobus in tempo reale" non funziona.</p>
|
||||
<p class="piccolospazio">
|
||||
Nuovo articolo! <i>"Altra navetta, altro MAN, ma 6 metri in più!"</i>.<br>
|
||||
Sistemate home Ravenna e START per dispositivi piccoli, aggiornata la <a class="novita" href="/startravenna_bus/listamezzi.html">lista mezzi</a>.<br>
|
||||
|
||||
@@ -111,7 +111,8 @@ document.getElementById('bacino').addEventListener('change', function(event) {
|
||||
const selectedOption = event.target.value;
|
||||
currentSelectedOption = selectedOption;
|
||||
|
||||
const urlFermate = `https://api.vichingo455.freeddns.org/fermateapi/bacino?selectedOption=${selectedOption}`;
|
||||
//const urlFermate = `https://api.vichingo455.freeddns.org/fermateapi/bacino?selectedOption=${selectedOption}`;
|
||||
const urlFermate = `https://startapi.serverissimo.freeddns.org/bacino?selectedOption=${selectedOption}`;
|
||||
|
||||
const radiobuttons = document.getElementById('radios');
|
||||
const ricerca = document.getElementById('ricerca');
|
||||
|
||||
@@ -3,7 +3,8 @@ const palina = params.get('palina');
|
||||
const targetID = params.get('targetID');
|
||||
const selectedOption = params.get('selectedOption');
|
||||
|
||||
const urlBackend = `https://api.vichingo455.freeddns.org/fermateapi/fermata?param=${targetID}¶m2=${selectedOption}&palina=${palina}`;
|
||||
//const urlBackend = `https://api.vichingo455.freeddns.org/fermateapi/fermata?param=${targetID}¶m2=${selectedOption}&palina=${palina}`;
|
||||
const urlBackend = `https://startapi.serverissimo.freeddns.org/fermata?param=${targetID}¶m2=${selectedOption}&palina=${palina}`;
|
||||
function caricadati(){
|
||||
fetch(urlBackend)
|
||||
.then(res => res.json())
|
||||
@@ -16,7 +17,7 @@ function caricadati(){
|
||||
const container = document.getElementById('tabella-container');
|
||||
container.innerHTML = '';
|
||||
|
||||
fetch('https://api.vichingo455.freeddns.org/fermateapi/versione')
|
||||
fetch('https://startapi.serverissimo.freeddns.org/versione')
|
||||
.then(res => res.text())
|
||||
.then(versione => document.getElementById("ver").innerHTML = versione);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user