Display trip title
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user