Improved www.ttss.krakow.pl
Jacek Kowalski
2017-04-17 7ca6a15943ffd4dc600aca0afd22835b18ce99c0
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">
0426dc 14                 <ul class="nav navbar-nav">
JK 15                     <li class="navbar-header">
16                         <a class="navbar-brand" href="" data-translate="page_name">TTSS Kraków</a>
17                     </li>
18                     <li>
19                         <form class="navbar-form navbar-left">
20                             <select class="form-control" id="lang-select">
21                                 <option value="en">EN</option>
22                                 <option value="pl">PL</option>
23                             </select>
24                         </form>
25                     </li>
57b8d3 26                     <li>
JK 27                         <a href="/map.html" data-translate="map">Map</a>
28                     </li>
0426dc 29                 </ul>
9e6757 30                 
JK 31                 
896879 32                 <form class="navbar-form navbar-left">
JK 33                     <div class="input-group">
34                         <span class="input-group-btn">
5515fc 35                             <input type="text" class="form-control form-round-left" id="stop-name" placeholder="Stop name" autofocus="autofocus" />
896879 36                         </span>
JK 37                         <select class="form-control" id="stop-name-autocomplete">
38                         </select>
39                         <span class="input-group-btn">
9e6757 40                             <button type="submit" class="btn btn-default" data-translate="go_button">Go</button>
896879 41                         </span>
JK 42                     </div>
43                 </form>
44                 
9e6757 45                 <button type="button" class="btn btn-default navbar-btn pull-right" id="refresh" disabled="disabled" data-translate="refresh_button">&#x27f3; Refresh</button>
896879 46                 <p class="navbar-text pull-right" id="refresh-text">Initializing...</p>
JK 47             </div>
48         </nav>
9e6757 49         
896879 50         <div class="container-fluid">
JK 51             <div id="alert" class="alert alert-danger alert-dismissible" style="display:none">
52                 <a href="#" class="close" id="alert-close" aria-label="close">&times;</a>
9e6757 53                 <strong data-translate="error_title">Error occured!</strong> <span id="alert-text"></span>
896879 54             </div>
JK 55             
56             <div class="row">
57                 <div class="col-md-6">
58                     <h2 id="times-stop-name"></h2>
59                     
60                     <div id="times-alerts"></div>
61                     
62                     <table class="table table-striped table-condensed">
63                         <thead>
64                             <tr>
9e6757 65                                 <th data-translate="header_line">Line</th>
JK 66                                 <th data-translate="header_direction">Direction</th>
67                                 <th data-translate="header_time">Time</th>
68                                 <th data-translate="header_delay">Delay</th>
896879 69                             </tr>
JK 70                         </thead>
71                         <tbody id="times-table">
72                         </tbody>
73                     </table>
74                 </div>
75                 <div class="col-md-6">
68aeb4 76                     <!--
9e6757 77                     <h3 data-translate="header_lines">Lines</h3>
896879 78                     
JK 79                     <table class="table table-condensed">
80                         <thead>
81                             <tr>
9e6757 82                                 <th data-translate="header_line">Line</th>
JK 83                                 <th data-translate="header_route">Route</th>
84                                 <th data-translate="header_carrier">Carrier</th>
896879 85                             </tr>
JK 86                         </thead>
87                         <tbody id="times-lines">
88                         </tbody>
89                     </table>
68aeb4 90                     -->
896879 91                     
68aeb4 92                     <p data-translate="help_click_for_schedule">Click on an entry in the departures timetable to see the tram's schedule.</p>
JK 93                     
896879 94                     <h3 id="route-line"></h3>
JK 95                     
96                     <table class="table table-condensed">
97                         <thead>
98                             <tr>
78b244 99                                 <th data-translate="header_time">Time</th>
JK 100                                 <th data-translate="header_stop">Stop</th>
896879 101                             </tr>
JK 102                         </thead>
103                         <tbody id="route-table">
104                         </tbody>
105                     </table>
525a8b 106                     
a03a80 107                     <p class="small">
9e6757 108                         <span data-translate="help_legend">Legend:</span>
JK 109                         <span class="label bg-active" data-translate="status_departed">Departed</span>
110                         <span class="label bg-success" data-translate="status_stopped">At stop</span>
111                         <span class="label bg-default" data-translate="status_default">En route</span>
112                         <span class="label bg-warning" data-translate="status_delayed_4">Delayed 4′+</span>
113                         <span class="label bg-danger" data-translate="status_delayed_10">Delayed 10′+</span>
a03a80 114                     </p>
JK 115                     
27662b 116                     <p class="small">
9e6757 117                         <span class="bigger" title="Bombardier NGT6, Bombardier NGT8, PESA 2014N Krakowiak, Newag Nevelo 126N" data-translate="low_floor_sign">&#x267F;</span> - <span data-translate="low_floor_description">low-floor tram</span>.
JK 118                         <span class="bigger" title="Düwag/Man/MPK N8C-NF, Düwag/MPK GT8C, Bombardier-Rotax/MPK EU8N, Protram 405N-Kr" data-translate="partially_low_floor_sign">*&#x267F;</span> - <span data-translate="partially_low_floor_description">partially low-floor tram</span>.
119                         <span class="bigger" title="other tram types" data-translate="high_floor_sign">&#x2010;</span> - <span data-translate="high_floor_description">high-floor tram</span>.
120                         <span data-translate="help_hover_for_more">Hover the icon for more details.</span>
27662b 121                     </p>
JK 122                     
9e6757 123                     <p class="small" data-translate="help_text">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>
a03a80 124                     
81ce2f 125                     <p class="small">&copy; 2016-2017 Jacek Kowalski - <a href="https://github.com/jacekkow/mpk-ttss" data-translate="help_source">Source</a> - <a href="https://raw.githubusercontent.com/jacekkow/mpk-ttss/master/LICENSE" data-translate="help_license">License</a></p>
896879 126                 </div>
JK 127             </div>
128         </div>
129         <script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha384-3ceskX3iaEnIogmQchP8opvBy3Mi7Ce34nWjpBIwVTHfGYWQS9jwHDVRnpKKHJg7"  crossorigin="anonymous"></script>
9e6757 130         <script tyle="text/javascript" src="lang_en.js" id="lang_script"></script>
68aeb4 131         <script tyle="text/javascript" src="common.js"></script>
c25e91 132         <script type="text/javascript" src="index.js"></script>
896879 133     </body>
JK 134 </html>