Failover api vichi

This commit is contained in:
Leocraft1
2025-10-30 13:55:28 +01:00
parent 41da0539e4
commit 6953f0f0cc
4 changed files with 5 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
// VARIABILI DA MODIFICARE - VARIABLES TO MODIFY // // VARIABILI DA MODIFICARE - VARIABLES TO MODIFY //
const ApiUri = 'https://api.vichingo455.freeddns.org/start-corsesopp.json'; //JSON Dinamico - Dynamic JSON const ApiUri = 'https://startapi.serverissimo.freeddns.org/start-corsesopp.json'; //JSON Dinamico - Dynamic JSON
// IMPORTANTE!! NON MODIFICARE SOTTO!! - IMPORTANT!! DO NOT MODIFY THE CODE BELOW!! // // IMPORTANTE!! NON MODIFICARE SOTTO!! - IMPORTANT!! DO NOT MODIFY THE CODE BELOW!! //
let ultimaRichiesta = null; let ultimaRichiesta = null;

View File

@@ -111,7 +111,7 @@ document.getElementById('bacino').addEventListener('change', function(event) {
const selectedOption = event.target.value; const selectedOption = event.target.value;
currentSelectedOption = selectedOption; currentSelectedOption = selectedOption;
const urlFermate = `https://api.vichingo455.freeddns.org/fermateapi/bacino?selectedOption=${selectedOption}`; const urlFermate = `https://startapi.serverissimo.freeddns.org/fermateapi/bacino?selectedOption=${selectedOption}`;
const radiobuttons = document.getElementById('radios'); const radiobuttons = document.getElementById('radios');
const ricerca = document.getElementById('ricerca'); const ricerca = document.getElementById('ricerca');

View File

@@ -3,7 +3,7 @@ const palina = params.get('palina');
const targetID = params.get('targetID'); const targetID = params.get('targetID');
const selectedOption = params.get('selectedOption'); const selectedOption = params.get('selectedOption');
const urlBackend = `https://api.vichingo455.freeddns.org/fermateapi/fermata?param=${targetID}&param2=${selectedOption}&palina=${palina}`; const urlBackend = `https://startapi.serverissimo.freeddns.org/fermateapi/fermata?param=${targetID}&param2=${selectedOption}&palina=${palina}`;
function caricadati(){ function caricadati(){
fetch(urlBackend) fetch(urlBackend)
.then(res => res.json()) .then(res => res.json())
@@ -16,7 +16,7 @@ function caricadati(){
const container = document.getElementById('tabella-container'); const container = document.getElementById('tabella-container');
container.innerHTML = ''; container.innerHTML = '';
fetch('https://api.vichingo455.freeddns.org/fermateapi/versione') fetch('https://startapi.serverissimo.freeddns.org/fermateapi/versione')
.then(res => res.text()) .then(res => res.text())
.then(versione => document.getElementById("ver").innerHTML = versione); .then(versione => document.getElementById("ver").innerHTML = versione);

View File

@@ -1,4 +1,4 @@
const apiurl = 'https://api.vichingo455.freeddns.org/infobus/'; const apiurl = 'https://startapi.serverissimo.freeddns.org/infobus/';
// Funzione per applicare il filtro su ogni colonna // Funzione per applicare il filtro su ogni colonna
function applyFilter() { function applyFilter() {
const filterZona = document.getElementById('filterZona').value.toLowerCase(); const filterZona = document.getElementById('filterZona').value.toLowerCase();