mirror of
https://github.com/Daniongithub/ER-TPL.git
synced 2025-10-02 12:30:48 +00:00
Cerca fermate
This commit is contained in:
@@ -59,7 +59,7 @@ document.getElementById('bacino').addEventListener('change', function(event) {
|
||||
const resultsContainer = document.getElementById('searchResults');
|
||||
resultsContainer.innerHTML = '<p>Caricamento lista fermate in corso...</p>';
|
||||
|
||||
fetch(`https://startapi.serverissimo.freeddns.org/bacino?selectedOption=${selectedOption}`)
|
||||
fetch(`https://api.vichingo455.freeddns.org/fermateapi/bacino?selectedOption=${selectedOption}`)
|
||||
.then(res => res.json())
|
||||
.then(data => {
|
||||
allOptions = data;
|
||||
|
@@ -3,9 +3,7 @@ const palina = params.get('palina');
|
||||
const targetID = params.get('targetID');
|
||||
const selectedOption = params.get('selectedOption');
|
||||
|
||||
const urlBackend = `https://startapi.serverissimo.freeddns.org/fermata?param=${targetID}¶m2=${selectedOption}&palina=${palina}`;
|
||||
//const urlBackend = `https://api.vichingo455.freeddns.org/start-fermatebus/fermata?param=${targetID}¶m2=${selectedOption}&palina=${palina}`;
|
||||
//const urlBackend = `http://localhost:3005/fermata?param=${targetID}¶m2=${selectedOption}&palina=${palina}`;
|
||||
const urlBackend = `https://api.vichingo455.freeddns.org/fermateapi/fermata?param=${targetID}¶m2=${selectedOption}&palina=${palina}`;
|
||||
function caricadati(){
|
||||
fetch(urlBackend)
|
||||
.then(res => res.json())
|
||||
|
Reference in New Issue
Block a user