| 1 <html> |
1 <html> |
| 2 <head> |
2 <head> |
| 3 <link rel="icon" type="image/png" href="../static/favicon.png" /> |
3 <base href=".." /> |
| 4 <link rel="stylesheet" type="text/css" href="../static/style.css" /> |
4 <link rel="icon" type="image/png" href="static/favicon.png" /> |
| |
5 <link rel="stylesheet" type="text/css" href="static/style.css" /> |
| 5 <meta charset='UTF-8' /> |
6 <meta charset='UTF-8' /> |
| 6 <!--<meta http-equiv='refresh' content='60'>--> |
7 <!--<meta http-equiv='refresh' content='60'>--> |
| 7 <link |
8 <link |
| 8 rel="stylesheet" |
9 rel="stylesheet" |
| 9 href="https://unpkg.com/leaflet@1.3.4/dist/leaflet.css" |
10 href="https://unpkg.com/leaflet@1.3.4/dist/leaflet.css" |
| 117 <a class="region-name" href="javascript:toggle_fold('region-schedule-{{entry['index']}}')">{{entry['name']}}</a> |
118 <a class="region-name" href="javascript:toggle_fold('region-schedule-{{entry['index']}}')">{{entry['name']}}</a> |
| 118 <table class="nested-schedule" cellspacing="0"> |
119 <table class="nested-schedule" cellspacing="0"> |
| 119 {% for halt in entry['stops'] %} |
120 {% for halt in entry['stops'] %} |
| 120 <tr> |
121 <tr> |
| 121 <td>{{halt['time']}}</td> |
122 <td>{{halt['time']}}</td> |
| 122 <td><a href="../stop/{{halt['id']}}"><img src="../static/{{halt['typename']}}.png" height='24' /> {{halt['code']}}</a></td> |
123 <td><a href="stop/{{halt['id']}}"><img src="../static/{{halt['typename']}}.png" height='24' /> {{halt['code']}}</a></td> |
| 123 <td><a href="../stop/{{halt['id']}}">{{halt['name']}}</a></td> |
124 <td><a href="stop/{{halt['id']}}">{{halt['name']}}</a></td> |
| 124 </tr> |
125 </tr> |
| 125 {% endfor %} |
126 {% endfor %} |
| 126 </table> |
127 </table> |
| 127 </td> |
128 </td> |
| 128 </tr> |
129 </tr> |
| 194 fillColor: 'yellow', |
195 fillColor: 'yellow', |
| 195 fillOpacity: 1, |
196 fillOpacity: 1, |
| 196 title: "{{halt['ref']}} {{halt['name']}}", |
197 title: "{{halt['ref']}} {{halt['name']}}", |
| 197 _my_bus_stop_url: "/stop/{{halt['ref']}}", |
198 _my_bus_stop_url: "/stop/{{halt['ref']}}", |
| 198 }).addTo(mymap); |
199 }).addTo(mymap); |
| 199 popupmsg = "<span class='popup'><h3><a href='/stop/{{halt['ref']}}'><span class='bus_stop_ref'>{{halt['ref']}}</span> {{halt['name']}}</a></h3>"; |
200 popupmsg = "<span class='popup'><h3><a href='stop/{{halt['ref']}}'><span class='bus_stop_ref'>{{halt['ref']}}</span> {{halt['name']}}</a></h3>"; |
| 200 |
201 |
| 201 {% if halt['arrival_time'] != halt['departure_time'] %} |
202 {% if halt['arrival_time'] != halt['departure_time'] %} |
| 202 popupmsg += "<p><ul><li>Saapuu: {{halt['arrival_time']}}</li><li>Lähtee: {{halt['departure_time']}}</li></ul></p></span>"; |
203 popupmsg += "<p><ul><li>Saapuu: {{halt['arrival_time']}}</li><li>Lähtee: {{halt['departure_time']}}</li></ul></p></span>"; |
| 203 {% else %} |
204 {% else %} |
| 204 popupmsg += "<p><ul><li>Pysähtyy: {{halt['arrival_time']}}</li></ul></p></span>"; |
205 popupmsg += "<p><ul><li>Pysähtyy: {{halt['arrival_time']}}</li></ul></p></span>"; |