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