Improved www.ttss.krakow.pl
Jacek Kowalski
2016-12-13 5dd112453445da6ae7a04c1423b02ef33d65e652
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">
5dd112 9         <link rel="stylesheet" type="text/css" href="index.css">
896879 10     </head>
JK 11     <body>
12         <nav class="navbar navbar-default">
13             <div class="container-fluid">
14                 <div class="navbar-header">
15                     <a class="navbar-brand" href="#">TTSS KRK</a>
16                 </div>
17                 <form class="navbar-form navbar-left">
18                     <div class="input-group">
19                         <span class="input-group-btn">
20                             <input type="text" class="form-control form-round-left" id="stop-name" placeholder="Stop name" />
21                         </span>
22                         <select class="form-control" id="stop-name-autocomplete">
23                         </select>
24                         <span class="input-group-btn">
25                             <button type="submit" class="btn btn-default">Go</button>
26                         </span>
27                     </div>
28                 </form>
29                 
30                 <button type="button" class="btn btn-default navbar-btn pull-right" id="refresh" disabled="disabled">
31                     <span class="glyphicon glyphicon-refresh" aria-hidden="true"></span>
32                     Refresh
33                 </button>
34                 
35                 <p class="navbar-text pull-right" id="refresh-text">Initializing...</p>
36             </div>
37         </nav>
38         <div class="container-fluid">
ac721d 39             <div id="progress" class="progress" style="display: none;">
JK 40                 <div id="progress-bar" class="progress-bar progress-bar-striped active" style="width: 100%">
41                     <span id="progress-text" class="sr-only">Refreshing data...</span>
42                 </div>
43             </div>
44             
896879 45             <div id="alert" class="alert alert-danger alert-dismissible" style="display:none">
JK 46                 <a href="#" class="close" id="alert-close" aria-label="close">&times;</a>
47                 <strong>Error occured!</strong> <span id="alert-text"></span>
48             </div>
49             
50             <div class="row">
51                 <div class="col-md-6">
52                     <h2 id="times-stop-name"></h2>
53                     
54                     <div id="times-alerts"></div>
55                     
56                     <table class="table table-striped table-condensed">
57                         <thead>
58                             <tr>
59                                 <th>Line</th>
60                                 <th>Direction</th>
61                                 <th>Time</th>
62                                 <th>Delay</th>
63                             </tr>
64                         </thead>
65                         <tbody id="times-table">
66                         </tbody>
67                     </table>
68                 </div>
69                 <div class="col-md-6">
70                     <h3>Lines</h3>
71                     
72                     <table class="table table-condensed">
73                         <thead>
74                             <tr>
75                                 <th>Line</th>
76                                 <th>Route</th>
77                                 <th>Carrier</th>
78                             </tr>
79                         </thead>
80                         <tbody id="times-lines">
81                             
82                         </tbody>
83                     </table>
84                     
85                     <!--
86                     <h3 id="route-line"></h3>
87                     
88                     <table class="table table-condensed">
89                         <thead>
90                             <tr>
91                                 <th>Stop</th>
92                             </tr>
93                         </thead>
94                         <tbody id="route-table">
95                             
96                         </tbody>
97                     </table>
98                     -->
525a8b 99                     
a03a80 100                     <p class="small">
JK 101                         Legend:
102                         <span class="label bg-active">Departed</span>
e076ba 103                         <span class="label bg-success">At stop</span>
JK 104                         <span class="label bg-default">En route</span>
105                         <span class="label bg-warning">Delayed 4′+</span>
106                         <span class="label bg-danger">Delayed 10′+</span>
a03a80 107                     </p>
JK 108                     
109                     <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>
110                     
111                     <p class="small">&copy; 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 112                 </div>
JK 113             </div>
114         </div>
115         <script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha384-3ceskX3iaEnIogmQchP8opvBy3Mi7Ce34nWjpBIwVTHfGYWQS9jwHDVRnpKKHJg7"  crossorigin="anonymous"></script>
c25e91 116         <script type="text/javascript" src="index.js"></script>
896879 117     </body>
JK 118 </html>