add preliminary nta support
This commit is contained in:
parent
a7d323056a
commit
1d66553398
21 changed files with 3318 additions and 257 deletions
|
|
@ -3,7 +3,7 @@
|
|||
.train-direction-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-family: sans-serif;
|
||||
font-family: mono;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
|
|
@ -148,11 +148,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||
{% let live_o = timetable.tracking_data[loop.index0] %}
|
||||
{% if let Tracked(live) = live_o %}
|
||||
{% let time = (t + (live.delay * 60.0) as i64) %}
|
||||
{% if live.next_stop_id == Some(*row.stop_id) %}
|
||||
<td style="background-color: #007700">
|
||||
{% else %}
|
||||
<td style="background-color: #003300">
|
||||
{% endif %}
|
||||
<span style="color: #22bb22"> {{ time | format_time }} </span>
|
||||
</td>
|
||||
{% elif let TripTracking::Cancelled = live_o %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue