-
Notifications
You must be signed in to change notification settings - Fork 1
/
stop.mustache
59 lines (46 loc) · 1.38 KB
/
stop.mustache
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{{>preamble}}
<meta name=description content="Last BART departures from {{stop_name}}">
<title>Last BART departures from {{stop_name}}</title>
<style>
{{>style}}
.service {
display: none;
}
.service.selected {
display: block;
}
button {
font-size: inherit;
}
.service_id.selected {
font-weight: bold;
}
</style>
<script>
{{>stop_js}}
</script>
<body>
<p>On:</p>
<div id=services>
{{#service}}
<button class="service_id {{#visible_days}}svid_{{day}} {{/visible_days}}">{{service_id}}</button>
{{/service}}
<p>the last train departs {{stop_name}} at:</p>
{{#service}}<div class="service {{service_id}} {{#visible_days}}{{day}} {{/visible_days}}">
{{#departure}}
<p>⏰ {{friendly_time}} for {{headsign}}</p>
{{/departure}}
<p><b>Note:</b> Last departures are listed by where the train is ultimately
going. (This is called the <i>headsign</i>.) If there’s no listing for the train
you want to get on, or if the last departure is surprisingly early, you probably
need to take a different train and transfer. See the <a
href="https://www.bart.gov/stations">station map</a> for lines and transfer
stations.</p>
<p>Data retrieved from <a href="https://bart.gov/">bart.gov</a> on
{{fetch_date}}, valid until {{last_valid_date}}. See also the <a
href="https://bart.gov/stations/{{shortest_stop_id}}/schedule.aspx">official
bart.gov schedule</a>.</p>
</div>{{/service}}
</div>
{{>footer}}
</body>