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

@@ -30,6 +30,8 @@ body {
color: white; color: white;
display: none; display: none;
overflow: scroll;
} }
#journeys-search { #journeys-search {
@@ -54,6 +56,10 @@ body {
margin-bottom: 20px; margin-bottom: 20px;
} }
.popup h1 {
margin-bottom: 30px;
}
.popup input { .popup input {
color: white; color: white;
} }

View File

@@ -11,6 +11,10 @@ export function displayTripDetails(trip_id) {
fetchTrip(trip_id).then(result => { fetchTrip(trip_id).then(result => {
element_response.innerText = ""; 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) { for (let stopover of result.trip.stopovers) {
let el = EL("div", {}); let el = EL("div", {});
el.innerText = stopover.stop.name; el.innerText = stopover.stop.name;