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