Improved www.ttss.krakow.pl
Jacek Kowalski
2017-03-17 59549b6b06687c2f5f07fefc03d115e8de906c85
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">
28                             <input type="text" class="form-control form-round-left" id="stop-name" placeholder="Stop name" />
29                         </span>
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">
9e6757 69                     <h3 data-translate="header_lines">Lines</h3>
896879 70                     
JK 71                     <table class="table table-condensed">
72                         <thead>
73                             <tr>
9e6757 74                                 <th data-translate="header_line">Line</th>
JK 75                                 <th data-translate="header_route">Route</th>
76                                 <th data-translate="header_carrier">Carrier</th>
896879 77                             </tr>
JK 78                         </thead>
79                         <tbody id="times-lines">
80                         </tbody>
81                     </table>
82                     
83                     <!--
84                     <h3 id="route-line"></h3>
85                     
86                     <table class="table table-condensed">
87                         <thead>
88                             <tr>
89                                 <th>Stop</th>
90                             </tr>
91                         </thead>
92                         <tbody id="route-table">
93                             
94                         </tbody>
95                     </table>
96                     -->
525a8b 97                     
a03a80 98                     <p class="small">
9e6757 99                         <span data-translate="help_legend">Legend:</span>
JK 100                         <span class="label bg-active" data-translate="status_departed">Departed</span>
101                         <span class="label bg-success" data-translate="status_stopped">At stop</span>
102                         <span class="label bg-default" data-translate="status_default">En route</span>
103                         <span class="label bg-warning" data-translate="status_delayed_4">Delayed 4′+</span>
104                         <span class="label bg-danger" data-translate="status_delayed_10">Delayed 10′+</span>
a03a80 105                     </p>
JK 106                     
27662b 107                     <p class="small">
9e6757 108                         <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 109                         <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>.
110                         <span class="bigger" title="other tram types" data-translate="high_floor_sign">&#x2010;</span> - <span data-translate="high_floor_description">high-floor tram</span>.
111                         <span data-translate="help_hover_for_more">Hover the icon for more details.</span>
27662b 112                     </p>
JK 113                     
9e6757 114                     <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 115                     
9e6757 116                     <p class="small">&copy; 2016 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 117                 </div>
JK 118             </div>
119         </div>
120         <script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha384-3ceskX3iaEnIogmQchP8opvBy3Mi7Ce34nWjpBIwVTHfGYWQS9jwHDVRnpKKHJg7"  crossorigin="anonymous"></script>
9e6757 121         <script tyle="text/javascript" src="lang_en.js" id="lang_script"></script>
c25e91 122         <script type="text/javascript" src="index.js"></script>
896879 123     </body>
JK 124 </html>