Merge branch 'main' of https://github.com/Daniongithub/ER-TPL
This commit is contained in:
commit
4f5bbe6943
|
@ -59,7 +59,7 @@ document.getElementById('bacino').addEventListener('change', function(event) {
|
||||||
const resultsContainer = document.getElementById('searchResults');
|
const resultsContainer = document.getElementById('searchResults');
|
||||||
resultsContainer.innerHTML = '<p>Caricamento lista fermate in corso...</p>';
|
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(res => res.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
allOptions = data;
|
allOptions = data;
|
||||||
|
|
|
@ -3,9 +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://startapi.serverissimo.freeddns.org/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://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}`;
|
|
||||||
function caricadati(){
|
function caricadati(){
|
||||||
fetch(urlBackend)
|
fetch(urlBackend)
|
||||||
.then(res => res.json())
|
.then(res => res.json())
|
||||||
|
|
Loading…
Reference in New Issue