Display trip title
This commit is contained in:
@@ -11,6 +11,10 @@ export function displayTripDetails(trip_id) {
|
||||
fetchTrip(trip_id).then(result => {
|
||||
element_response.innerText = "";
|
||||
|
||||
let el_headline = EL("h1", {});
|
||||
el_headline.innerText = result.trip.line.name + ": " + result.trip.destination.name;
|
||||
element_response.appendChild(el_headline);
|
||||
|
||||
for (let stopover of result.trip.stopovers) {
|
||||
let el = EL("div", {});
|
||||
el.innerText = stopover.stop.name;
|
||||
|
Reference in New Issue
Block a user