commit | author | age
|
896879
|
1 |
<!DOCTYPE html> |
JK |
2 |
<html lang="en"> |
|
3 |
<head> |
|
4 |
<title>TTSS Cracow</title> |
|
5 |
<meta charset="utf-8"> |
|
6 |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> |
|
7 |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
|
8 |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> |
|
9 |
<style type="text/css"> |
|
10 |
tr.active { |
|
11 |
color: gray; |
|
12 |
} |
|
13 |
.form-round-left { |
|
14 |
border-top-left-radius: 4px !important; |
|
15 |
border-bottom-left-radius: 4px !important; |
|
16 |
border-right: 0; |
|
17 |
} |
|
18 |
.navbar-text { |
|
19 |
margin-right: 15px; |
|
20 |
margin-left: 15px; |
|
21 |
} |
|
22 |
.input-group-btn:first-child { |
|
23 |
width: 50%; |
|
24 |
} |
e2b283
|
25 |
@keyframes blink { |
JK |
26 |
50% { color: transparent; } |
|
27 |
} |
|
28 |
.status-boarding { |
|
29 |
animation: blink 1s linear infinite; |
|
30 |
} |
|
31 |
.status-delayed { |
|
32 |
font-weight: bold; |
|
33 |
} |
a03a80
|
34 |
.bg-active { |
JK |
35 |
background-color: #eee; |
|
36 |
} |
|
37 |
.label.bg-success, .label.bg-warning, .label.bg-danger, .label.bg-active { |
|
38 |
color: black; |
|
39 |
font-weight: normal; |
|
40 |
font-size: inherit; |
|
41 |
} |
896879
|
42 |
</style> |
JK |
43 |
</head> |
|
44 |
<body> |
|
45 |
<nav class="navbar navbar-default"> |
|
46 |
<div class="container-fluid"> |
|
47 |
<div class="navbar-header"> |
|
48 |
<a class="navbar-brand" href="#">TTSS KRK</a> |
|
49 |
</div> |
|
50 |
<form class="navbar-form navbar-left"> |
|
51 |
<div class="input-group"> |
|
52 |
<span class="input-group-btn"> |
|
53 |
<input type="text" class="form-control form-round-left" id="stop-name" placeholder="Stop name" /> |
|
54 |
</span> |
|
55 |
<select class="form-control" id="stop-name-autocomplete"> |
|
56 |
</select> |
|
57 |
<span class="input-group-btn"> |
|
58 |
<button type="submit" class="btn btn-default">Go</button> |
|
59 |
</span> |
|
60 |
</div> |
|
61 |
</form> |
|
62 |
|
|
63 |
<button type="button" class="btn btn-default navbar-btn pull-right" id="refresh" disabled="disabled"> |
|
64 |
<span class="glyphicon glyphicon-refresh" aria-hidden="true"></span> |
|
65 |
Refresh |
|
66 |
</button> |
|
67 |
|
|
68 |
<p class="navbar-text pull-right" id="refresh-text">Initializing...</p> |
|
69 |
</div> |
|
70 |
</nav> |
|
71 |
<div class="container-fluid"> |
|
72 |
<div id="alert" class="alert alert-danger alert-dismissible" style="display:none"> |
|
73 |
<a href="#" class="close" id="alert-close" aria-label="close">×</a> |
|
74 |
<strong>Error occured!</strong> <span id="alert-text"></span> |
|
75 |
</div> |
|
76 |
|
|
77 |
<div class="row"> |
|
78 |
<div class="col-md-6"> |
|
79 |
<h2 id="times-stop-name"></h2> |
|
80 |
|
|
81 |
<div id="times-alerts"></div> |
|
82 |
|
|
83 |
<table class="table table-striped table-condensed"> |
|
84 |
<thead> |
|
85 |
<tr> |
|
86 |
<th>Line</th> |
|
87 |
<th>Direction</th> |
|
88 |
<th>Time</th> |
|
89 |
<th>Delay</th> |
|
90 |
</tr> |
|
91 |
</thead> |
|
92 |
<tbody id="times-table"> |
|
93 |
</tbody> |
|
94 |
</table> |
|
95 |
</div> |
|
96 |
<div class="col-md-6"> |
|
97 |
<h3>Lines</h3> |
|
98 |
|
|
99 |
<table class="table table-condensed"> |
|
100 |
<thead> |
|
101 |
<tr> |
|
102 |
<th>Line</th> |
|
103 |
<th>Route</th> |
|
104 |
<th>Carrier</th> |
|
105 |
</tr> |
|
106 |
</thead> |
|
107 |
<tbody id="times-lines"> |
|
108 |
|
|
109 |
</tbody> |
|
110 |
</table> |
|
111 |
|
|
112 |
<!-- |
|
113 |
<h3 id="route-line"></h3> |
|
114 |
|
|
115 |
<table class="table table-condensed"> |
|
116 |
<thead> |
|
117 |
<tr> |
|
118 |
<th>Stop</th> |
|
119 |
</tr> |
|
120 |
</thead> |
|
121 |
<tbody id="route-table"> |
|
122 |
|
|
123 |
</tbody> |
|
124 |
</table> |
|
125 |
--> |
525a8b
|
126 |
|
a03a80
|
127 |
<p class="small"> |
JK |
128 |
Legend: |
|
129 |
<span class="label bg-success">At stop</span> |
|
130 |
<span class="label bg-warning">Slightly delayed</span> |
|
131 |
<span class="label bg-danger">Heavily delayed</span> |
|
132 |
<span class="label bg-active">Departed</span> |
|
133 |
</p> |
|
134 |
|
|
135 |
<p class="small">Relative times (eg. 3 min) are real-time arrivals based on tram location data. Absolute times (eg. 8:01) are scheduled departures, shown when the tram cannot be located. "?" means unknown delay.</p> |
|
136 |
|
|
137 |
<p class="small">© 2016 Jacek Kowalski - <a href="https://github.com/jacekkow/mpk-ttss">Source</a> - <a href="https://raw.githubusercontent.com/jacekkow/mpk-ttss/master/LICENSE">License</a></p> |
896879
|
138 |
</div> |
JK |
139 |
</div> |
|
140 |
</div> |
|
141 |
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha384-3ceskX3iaEnIogmQchP8opvBy3Mi7Ce34nWjpBIwVTHfGYWQS9jwHDVRnpKKHJg7" crossorigin="anonymous"></script> |
c25e91
|
142 |
<script type="text/javascript" src="index.js"></script> |
896879
|
143 |
</body> |
JK |
144 |
</html> |