Display trip title

This commit is contained in:
2025-07-06 18:53:19 +02:00
parent 3698f79731
commit 455d54355c
2 changed files with 10 additions and 0 deletions

View File

@@ -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;