Improved www.ttss.krakow.pl
Jacek Kowalski
2016-12-25 2f753992f8a467eafb375255afb145d7984e0872
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                 
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">
39             <div id="alert" class="alert alert-danger alert-dismissible" style="display:none">
40                 <a href="#" class="close" id="alert-close" aria-label="close">&times;</a>
41                 <strong>Error occured!</strong> <span id="alert-text"></span>
42             </div>
43             
44             <div class="row">
45                 <div class="col-md-6">
46                     <h2 id="times-stop-name"></h2>
47                     
48                     <div id="times-alerts"></div>
49                     
50                     <table class="table table-striped table-condensed">
51                         <thead>
52                             <tr>
53                                 <th>Line</th>
54                                 <th>Direction</th>
55                                 <th>Time</th>
56                                 <th>Delay</th>
57                             </tr>
58                         </thead>
59                         <tbody id="times-table">
60                         </tbody>
61                     </table>
62                 </div>
63                 <div class="col-md-6">
64                     <h3>Lines</h3>
65                     
66                     <table class="table table-condensed">
67                         <thead>
68                             <tr>
69                                 <th>Line</th>
70                                 <th>Route</th>
71                                 <th>Carrier</th>
72                             </tr>
73                         </thead>
74                         <tbody id="times-lines">
75                             
76                         </tbody>
77                     </table>
78                     
79                     <!--
80                     <h3 id="route-line"></h3>
81                     
82                     <table class="table table-condensed">
83                         <thead>
84                             <tr>
85                                 <th>Stop</th>
86                             </tr>
87                         </thead>
88                         <tbody id="route-table">
89                             
90                         </tbody>
91                     </table>
92                     -->
525a8b 93                     
a03a80 94                     <p class="small">
JK 95                         Legend:
96                         <span class="label bg-active">Departed</span>
e076ba 97                         <span class="label bg-success">At stop</span>
JK 98                         <span class="label bg-default">En route</span>
99                         <span class="label bg-warning">Delayed 4′+</span>
100                         <span class="label bg-danger">Delayed 10′+</span>
a03a80 101                     </p>
JK 102                     
103                     <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>
104                     
105                     <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 106                 </div>
JK 107             </div>
108         </div>
109         <script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha384-3ceskX3iaEnIogmQchP8opvBy3Mi7Ce34nWjpBIwVTHfGYWQS9jwHDVRnpKKHJg7"  crossorigin="anonymous"></script>
c25e91 110         <script type="text/javascript" src="index.js"></script>
896879 111     </body>
JK 112 </html>