Improved www.ttss.krakow.pl
Jacek Kowalski
2017-01-03 f50bae766a5086ae5f9caf4668d2ec34fdb4d70c
commit | author | age
896879 1 <!DOCTYPE html>
JK 2 <html lang="en">
3     <head>
2f12c4 4         <title>TTSS Kraków - Real-time tram departures</title>
896879 5         <meta charset="utf-8">
JK 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">
2f12c4 15                     <a class="navbar-brand" href="#">TTSS Kraków</a>
896879 16                 </div>
JK 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                 
55eba3 30                 <button type="button" class="btn btn-default navbar-btn pull-right" id="refresh" disabled="disabled">&#x27f3; Refresh</button>
896879 31                 
JK 32                 <p class="navbar-text pull-right" id="refresh-text">Initializing...</p>
33             </div>
34         </nav>
35         <div class="container-fluid">
36             <div id="alert" class="alert alert-danger alert-dismissible" style="display:none">
37                 <a href="#" class="close" id="alert-close" aria-label="close">&times;</a>
38                 <strong>Error occured!</strong> <span id="alert-text"></span>
39             </div>
40             
41             <div class="row">
42                 <div class="col-md-6">
43                     <h2 id="times-stop-name"></h2>
44                     
45                     <div id="times-alerts"></div>
46                     
47                     <table class="table table-striped table-condensed">
48                         <thead>
49                             <tr>
50                                 <th>Line</th>
51                                 <th>Direction</th>
52                                 <th>Time</th>
53                                 <th>Delay</th>
54                             </tr>
55                         </thead>
56                         <tbody id="times-table">
57                         </tbody>
58                     </table>
59                 </div>
60                 <div class="col-md-6">
61                     <h3>Lines</h3>
62                     
63                     <table class="table table-condensed">
64                         <thead>
65                             <tr>
66                                 <th>Line</th>
67                                 <th>Route</th>
68                                 <th>Carrier</th>
69                             </tr>
70                         </thead>
71                         <tbody id="times-lines">
72                             
73                         </tbody>
74                     </table>
75                     
76                     <!--
77                     <h3 id="route-line"></h3>
78                     
79                     <table class="table table-condensed">
80                         <thead>
81                             <tr>
82                                 <th>Stop</th>
83                             </tr>
84                         </thead>
85                         <tbody id="route-table">
86                             
87                         </tbody>
88                     </table>
89                     -->
525a8b 90                     
a03a80 91                     <p class="small">
JK 92                         Legend:
93                         <span class="label bg-active">Departed</span>
e076ba 94                         <span class="label bg-success">At stop</span>
JK 95                         <span class="label bg-default">En route</span>
96                         <span class="label bg-warning">Delayed 4′+</span>
97                         <span class="label bg-danger">Delayed 10′+</span>
a03a80 98                     </p>
JK 99                     
27662b 100                     <p class="small">
JK 101                         <span class="bigger" title="Bombardier NGT6, Bombardier NGT8, PESA 2014N Krakowiak, Newag Nevelo 126N">&#x267F;</span> - low-floor tram. <span class="bigger" title="Düwag/Man/MPK N8C-NF, Düwag/MPK GT8C, Bombardier-Rotax/MPK EU8N, Protram 405N-Kr">*&#x267F;</span> - partially low-floor tram. <span class="bigger" title="other tram types">&#x2010;</span> - high-floor tram. Hover the icon for more details.
102                     </p>
103                     
a03a80 104                     <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>
JK 105                     
106                     <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 107                 </div>
JK 108             </div>
109         </div>
110         <script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha384-3ceskX3iaEnIogmQchP8opvBy3Mi7Ce34nWjpBIwVTHfGYWQS9jwHDVRnpKKHJg7"  crossorigin="anonymous"></script>
c25e91 111         <script type="text/javascript" src="index.js"></script>
896879 112     </body>
JK 113 </html>