templates/stop.html

Thu, 06 Dec 2018 19:35:38 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Thu, 06 Dec 2018 19:35:38 +0200
changeset 127
2bc0529d44a5
parent 109
88a5110b66ba
child 133
091a48867bae
permissions
-rw-r--r--

bus live information

77
83cd29dee853 stop_week
Teemu Piippo <teemu@hecknology.net>
parents: 67
diff changeset
1 {% from "macros.html" import route_rep %}
0
fc48613c73e5 Alustava versio
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
2 <html>
fc48613c73e5 Alustava versio
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
3 <head>
35
Teemu Piippo <teemu@hecknology.net>
parents: 34
diff changeset
4 <link rel="icon" type="image/png" href="../static/favicon.png" />
Teemu Piippo <teemu@hecknology.net>
parents: 34
diff changeset
5 <link rel="stylesheet" type="text/css" href="../static/style.css" />
0
fc48613c73e5 Alustava versio
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
6 <meta charset='UTF-8' />
33
f448f291c1dd Korjattu pysäkkisivun otsikko
Teemu Piippo <teemu@hecknology.net>
parents: 32
diff changeset
7 <title>{{name}}</title>
32
ca1a0ea81cf6 Yhdistetty pysäkki.png ja iso-pysäkki.png
Teemu Piippo <teemu@hecknology.net>
parents: 27
diff changeset
8 <meta http-equiv='refresh' content='60'>
0
fc48613c73e5 Alustava versio
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
9 <style>
21
6a0394d5a159 Yleistä päivittelyä
Teemu Piippo <teemu@hecknology.net>
parents: 20
diff changeset
10 .sarake-määränpää
6a0394d5a159 Yleistä päivittelyä
Teemu Piippo <teemu@hecknology.net>
parents: 20
diff changeset
11 {
6a0394d5a159 Yleistä päivittelyä
Teemu Piippo <teemu@hecknology.net>
parents: 20
diff changeset
12 text-align: left;
6a0394d5a159 Yleistä päivittelyä
Teemu Piippo <teemu@hecknology.net>
parents: 20
diff changeset
13 }
127
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
14
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
15 .dataentry
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
16 {
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
17 display: none;
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
18 }
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
19
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
20 .sarake-aika
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
21 {
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
22 width: 150pt;
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
23 }
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
24
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
25 .gone
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
26 {
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
27 background-color: #666;
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
28 color: silver;
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
29 font-style: italic;
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
30 display: none;
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
31 }
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
32
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
33 tbody tr:nth-child(even).gone
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
34 {
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
35 background-color: #585858;
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
36 }
0
fc48613c73e5 Alustava versio
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
37 </style>
127
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
38 <script>
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
39 var getJSON = function(url, callback) {
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
40 var xhr = new XMLHttpRequest();
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
41 xhr.open('GET', url, true);
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
42 xhr.responseType = 'json';
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
43 xhr.onload = function() {
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
44 var status = xhr.status;
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
45 if (status === 200) {
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
46 callback(xhr.response);
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
47 }
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
48 };
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
49 xhr.send();
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
50 };
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
51
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
52 var getUuid = function(blockref, originaimeddeparturetime, data, callback) {
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
53 var xhr = new XMLHttpRequest();
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
54 var url = "../find_halt/{{ref}}/" + blockref + "/" + originaimeddeparturetime.toString();
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
55 xhr.open('GET', url, true);
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
56 xhr.responseType = 'json';
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
57 xhr.onload = function() {
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
58 var status = xhr.status;
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
59 if (status === 200) {
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
60 callback(xhr.response['id'], data);
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
61 }
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
62 };
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
63 xhr.send();
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
64 };
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
65
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
66 function timeConverter(UNIX_timestamp){
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
67 var a = new Date(UNIX_timestamp * 1000);
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
68 var months = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
69 var year = a.getFullYear();
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
70 var month = months[a.getMonth()];
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
71 var date = a.getDate();
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
72 var hour = a.getHours();
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
73 var min = a.getMinutes();
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
74 var sec = a.getSeconds();
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
75 var time = hour + ':' + (min < 10 ? '0' : '') + min;
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
76 return time;
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
77 }
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
78
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
79 function updateTime(uuid, time) {
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
80 const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
81 const d = new Date();
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
82 const now = (d.getTime() + d.getTimezoneOffset()) / 1000;
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
83 row = document.getElementById(uuid);
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
84 timeCell = document.getElementById(uuid + '-time');
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
85 t0 = parseInt(document.getElementById(uuid + '-stamp').innerHTML);
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
86 if (Math.abs(time - t0) > 90) {
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
87 oldTime = timeConverter(t0);
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
88 newTime = timeConverter(time);
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
89 timeCell.innerHTML = '<s style="color:gray">' + oldTime + '</s> ⟶ <b>' + newTime + '</b>';
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
90 }
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
91 if (time + 15 > now)
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
92 row.classList.remove('gone');
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
93 else
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
94 row.classList.add('gone');
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
95 }
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
96 </script>
0
fc48613c73e5 Alustava versio
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
97 </head>
fc48613c73e5 Alustava versio
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
98 <body>
93
53ee9e945673 added ferry support
Teemu Piippo <teemu@hecknology.net>
parents: 90
diff changeset
99 <table class='aikataulu service-{{service}}' cellspacing="0">
55
0f1d046b3f78 Suppeampi näkymä, pikatiet ja mootoritiet
Teemu Piippo <teemu@hecknology.net>
parents: 48
diff changeset
100 <thead>
0
fc48613c73e5 Alustava versio
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
101 <tr>
55
0f1d046b3f78 Suppeampi näkymä, pikatiet ja mootoritiet
Teemu Piippo <teemu@hecknology.net>
parents: 48
diff changeset
102 <th colspan='4' class='primary-heading'>
90
Teemu Piippo <teemu@hecknology.net>
parents: 77
diff changeset
103 <span><img src="../static/{{typename}}.png" height="96" /> {{name}}</span>
55
0f1d046b3f78 Suppeampi näkymä, pikatiet ja mootoritiet
Teemu Piippo <teemu@hecknology.net>
parents: 48
diff changeset
104 </th>
0f1d046b3f78 Suppeampi näkymä, pikatiet ja mootoritiet
Teemu Piippo <teemu@hecknology.net>
parents: 48
diff changeset
105 </tr>
0f1d046b3f78 Suppeampi näkymä, pikatiet ja mootoritiet
Teemu Piippo <teemu@hecknology.net>
parents: 48
diff changeset
106 <tr class='headings'>
20
3199e289ae62 - Sivusto hieman edustuksellisempi
Teemu Piippo <teemu@hecknology.net>
parents: 19
diff changeset
107 <th class='sarake-aika'>{{tr('time', 'headings')}}</th>
3199e289ae62 - Sivusto hieman edustuksellisempi
Teemu Piippo <teemu@hecknology.net>
parents: 19
diff changeset
108 <th class='sarake-linja'>{{tr('route', 'headings')}}</th>
3199e289ae62 - Sivusto hieman edustuksellisempi
Teemu Piippo <teemu@hecknology.net>
parents: 19
diff changeset
109 <th class='sarake-määränpää'>{{tr('destination', 'headings')}}</th>
55
0f1d046b3f78 Suppeampi näkymä, pikatiet ja mootoritiet
Teemu Piippo <teemu@hecknology.net>
parents: 48
diff changeset
110 <th>
0f1d046b3f78 Suppeampi näkymä, pikatiet ja mootoritiet
Teemu Piippo <teemu@hecknology.net>
parents: 48
diff changeset
111 <span class='actions'>
0f1d046b3f78 Suppeampi näkymä, pikatiet ja mootoritiet
Teemu Piippo <teemu@hecknology.net>
parents: 48
diff changeset
112 <a class="pysäkki-sijainti" href="{{link_to_map}}" target="_blank">📌</a>
0f1d046b3f78 Suppeampi näkymä, pikatiet ja mootoritiet
Teemu Piippo <teemu@hecknology.net>
parents: 48
diff changeset
113 {% if cluster %}
0f1d046b3f78 Suppeampi näkymä, pikatiet ja mootoritiet
Teemu Piippo <teemu@hecknology.net>
parents: 48
diff changeset
114 <a href="../stop_cluster/{{cluster}}">🞊</a>
0f1d046b3f78 Suppeampi näkymä, pikatiet ja mootoritiet
Teemu Piippo <teemu@hecknology.net>
parents: 48
diff changeset
115 {% endif %}
109
88a5110b66ba added some features
Teemu Piippo <teemu@hecknology.net>
parents: 93
diff changeset
116 <a href='../stop_week/{{ref}}'>&#9636;</a>
55
0f1d046b3f78 Suppeampi näkymä, pikatiet ja mootoritiet
Teemu Piippo <teemu@hecknology.net>
parents: 48
diff changeset
117 </th>
0
fc48613c73e5 Alustava versio
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
118 </tr>
55
0f1d046b3f78 Suppeampi näkymä, pikatiet ja mootoritiet
Teemu Piippo <teemu@hecknology.net>
parents: 48
diff changeset
119 </thead>
127
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
120 <tbody id='departures-table'>
24
e6bdb9c54096 Yhtenäistetty ohjelmakoodin kieli englanniksi
Teemu Piippo <teemu@hecknology.net>
parents: 22
diff changeset
121 {% for halt in schedule %}
127
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
122 <tr class="{% if halt['night'] %}{% endif %}{% if halt['gone'] %}gone{% endif %}" id="{{halt['id']}}">
41
Teemu Piippo <teemu@hecknology.net>
parents: 40
diff changeset
123 <td class='sarake-aika'>
127
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
124 <!--
41
Teemu Piippo <teemu@hecknology.net>
parents: 40
diff changeset
125 {% if halt['imminent'] %}
Teemu Piippo <teemu@hecknology.net>
parents: 40
diff changeset
126 <span class='imminent-leave'>●</span>
Teemu Piippo <teemu@hecknology.net>
parents: 40
diff changeset
127 {% endif %}
127
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
128 -->
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
129 <span id="{{halt['id']}}-time"></span>
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
130 <span class='dataentry' id="{{halt['id']}}-stamp">{{halt['timestamp']}}</span>
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
131 <!--{{halt['time']}}--></td>
0
fc48613c73e5 Alustava versio
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
132 <td class='sarake-linja linja'>
77
83cd29dee853 stop_week
Teemu Piippo <teemu@hecknology.net>
parents: 67
diff changeset
133 <a href="../trip/{{halt['trip']}}">{{route_rep(halt['route-splice'])}}</a>
0
fc48613c73e5 Alustava versio
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
134 </td>
55
0f1d046b3f78 Suppeampi näkymä, pikatiet ja mootoritiet
Teemu Piippo <teemu@hecknology.net>
parents: 48
diff changeset
135 <td class='sarake-määränpää' colspan='2'>
48
428cfdf64ccc Lisätty uudelleenohjauksia
Teemu Piippo <teemu@hecknology.net>
parents: 41
diff changeset
136 <a href="../trip/{{halt['trip']}}">{{halt['sign']}}</a>
0
fc48613c73e5 Alustava versio
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
137 </td>
fc48613c73e5 Alustava versio
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
138 </tr>
fc48613c73e5 Alustava versio
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
139 {% endfor %}
55
0f1d046b3f78 Suppeampi näkymä, pikatiet ja mootoritiet
Teemu Piippo <teemu@hecknology.net>
parents: 48
diff changeset
140 </tbody>
0
fc48613c73e5 Alustava versio
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
141 </table>
127
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
142 <script>
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
143 var list = document.getElementById('departures-table').children;
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
144 for (var i = 0; i < list.length; i += 1) {
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
145 id = list[i].id;
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
146 timestamp = parseInt(document.getElementById(id + '-stamp').innerHTML);
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
147 document.getElementById(id + '-time').innerHTML = timeConverter(timestamp);
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
148 }
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
149 //updateTime('fbf6f367-069c-4f8d-831b-bd36cd643f3b', 1544092500);
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
150 getJSON('http://data.foli.fi/siri/sm/{{ref}}', function(data){
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
151 var arrayLength = data['result'].length;
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
152 for (var i = 0; i < arrayLength; i++) {
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
153 var blockref = data['result'][i]['blockref'];
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
154 var originaimeddeparturetime = data['result'][i]['originaimeddeparturetime'];
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
155 var expecteddeparturetime = data['result'][i]['expecteddeparturetime'];
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
156 getUuid(blockref, originaimeddeparturetime, expecteddeparturetime, function(id, expecteddeparturetime) {
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
157 updateTime(id, expecteddeparturetime);
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
158 });
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
159 }
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
160 });
2bc0529d44a5 bus live information
Teemu Piippo <teemu@hecknology.net>
parents: 109
diff changeset
161 </script>
0
fc48613c73e5 Alustava versio
Teemu Piippo <teemu@hecknology.net>
parents:
diff changeset
162 </body>
4
Teemu Piippo <teemu@hecknology.net>
parents: 0
diff changeset
163 </html>

mercurial