Calculate routes with full name stations
This commit is contained in:
parent
a41ce88b5f
commit
995a320208
|
@ -78,7 +78,7 @@
|
||||||
let result_elem = document.getElementById('result')
|
let result_elem = document.getElementById('result')
|
||||||
document.getElementById('form').addEventListener('submit', () => {
|
document.getElementById('form').addEventListener('submit', () => {
|
||||||
result_elem.innerHTML = 'Chargement…'
|
result_elem.innerHTML = 'Chargement…'
|
||||||
fetch('/api/routes/' + day_elem.value + '/' + origin_iata_elem.value + '/' + destination_iata_elem.value + '/')
|
fetch('/api/routes/' + day_elem.value + '/' + origin_elem.value + '/' + destination_elem.value + '/')
|
||||||
.then(resp => resp.json())
|
.then(resp => resp.json())
|
||||||
.then(routes => {
|
.then(routes => {
|
||||||
console.log(routes)
|
console.log(routes)
|
||||||
|
|
Loading…
Reference in New Issue