Improved www.ttss.krakow.pl
Jacek Kowalski
2017-05-03 eec54b3920b2974922a103b4bb4d5246f4cdefe8
commit | author | age
896879 1 <!DOCTYPE html>
da2d4d 2 <html lang="pl">
896879 3     <head>
da2d4d 4         <title>TTSS Kraków - Odjazdy tramwajów na żywo</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">
4b0eda 10         <style type="text/css" id="vehicle-data-style"></style>
896879 11     </head>
JK 12     <body>
13         <nav class="navbar navbar-default">
14             <div class="container-fluid">
0426dc 15                 <ul class="nav navbar-nav">
JK 16                     <li class="navbar-header">
17                         <a class="navbar-brand" href="" data-translate="page_name">TTSS Kraków</a>
18                     </li>
19                     <li>
20                         <form class="navbar-form navbar-left">
21                             <select class="form-control" id="lang-select">
22                                 <option value="pl">PL</option>
da2d4d 23                                 <option value="en">EN</option>
0426dc 24                             </select>
JK 25                         </form>
26                     </li>
57b8d3 27                     <li>
da2d4d 28                         <a href="/map.html" data-translate="map">Mapa</a>
57b8d3 29                     </li>
0426dc 30                 </ul>
9e6757 31                 
JK 32                 
896879 33                 <form class="navbar-form navbar-left">
JK 34                     <div class="input-group">
35                         <span class="input-group-btn">
877a78 36                             <input type="text" class="form-control form-round-left" id="stop-name" placeholder="Nazwa przystanku" autofocus="autofocus" />
896879 37                         </span>
JK 38                         <select class="form-control" id="stop-name-autocomplete">
39                         </select>
40                         <span class="input-group-btn">
877a78 41                             <button type="submit" class="btn btn-default" data-translate="go_button">Dalej</button>
896879 42                         </span>
JK 43                     </div>
44                 </form>
45                 
da2d4d 46                 <button type="button" class="btn btn-default navbar-btn pull-right" id="refresh" disabled="disabled" data-translate="refresh_button">&#x27f3; Odśwież</button>
JK 47                 <p class="navbar-text pull-right" id="refresh-text">Ładowanie...</p>
896879 48             </div>
JK 49         </nav>
9e6757 50         
896879 51         <div class="container-fluid">
JK 52             <div id="alert" class="alert alert-danger alert-dismissible" style="display:none">
53                 <a href="#" class="close" id="alert-close" aria-label="close">&times;</a>
da2d4d 54                 <strong data-translate="error_title">Wystąpił błąd!</strong> <span id="alert-text"></span>
896879 55             </div>
JK 56             
57             <div class="row">
58                 <div class="col-md-6">
59                     <h2 id="times-stop-name"></h2>
60                     
61                     <div id="times-alerts"></div>
62                     
63                     <table class="table table-striped table-condensed">
64                         <thead>
65                             <tr>
da2d4d 66                                 <th data-translate="header_line">Linia</th>
4b0eda 67                                 <th>
JK 68                                     <span data-translate="header_direction">Kierunek</span>
69                                     <a id="vehicle-data" data-translate="header_vehicle">Pojazd</span>
70                                 </th>
71                                 <th data-translate="header_vehicle" class="vehicleData">Pojazd</th>
da2d4d 72                                 <th data-translate="header_time">Czas</th>
JK 73                                 <th data-translate="header_delay">Opóźn.</th>
896879 74                             </tr>
JK 75                         </thead>
76                         <tbody id="times-table">
77                         </tbody>
78                     </table>
79                 </div>
80                 <div class="col-md-6">
68aeb4 81                     <!--
da2d4d 82                     <h3 data-translate="header_lines">Linie</h3>
896879 83                     
JK 84                     <table class="table table-condensed">
85                         <thead>
86                             <tr>
da2d4d 87                                 <th data-translate="header_line">Linia</th>
JK 88                                 <th data-translate="header_route">Trasa</th>
89                                 <th data-translate="header_carrier">Przewoźnik</th>
896879 90                             </tr>
JK 91                         </thead>
92                         <tbody id="times-lines">
93                         </tbody>
94                     </table>
68aeb4 95                     -->
896879 96                     
da2d4d 97                     <p data-translate="help_click_for_schedule">Kliknij na wpis w tabeli odjazdów by zobaczyć rozkład jazdy danego tramwaju.</p>
68aeb4 98                     
896879 99                     <h3 id="route-line"></h3>
JK 100                     
0f11d0 101                     <p id="route-vehicle"></p>
JK 102                     
896879 103                     <table class="table table-condensed">
JK 104                         <thead>
105                             <tr>
da2d4d 106                                 <th data-translate="header_time">Czas</th>
JK 107                                 <th data-translate="header_stop">Przystanek</th>
896879 108                             </tr>
JK 109                         </thead>
110                         <tbody id="route-table">
111                         </tbody>
112                     </table>
525a8b 113                     
a03a80 114                     <p class="small">
da2d4d 115                         <span data-translate="help_legend">Legenda:</span>
JK 116                         <span class="label bg-active" data-translate="status_departed">Odjechał</span>
117                         <span class="label bg-success" data-translate="status_stopped">Na przystanku</span>
118                         <span class="label bg-default" data-translate="status_default">W trasie</span>
119                         <span class="label bg-warning" data-translate="status_delayed_4">Opóźniony 4′+</span>
120                         <span class="label bg-danger" data-translate="status_delayed_10">Opóźniony 10′+</span>
a03a80 121                     </p>
JK 122                     
27662b 123                     <p class="small">
da2d4d 124                         <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">tramwaj niskopodłogowy</span>.
JK 125                         <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">tramwaj częściowo niskopodłogowy</span>.
126                         <span class="bigger" title="other tram types" data-translate="high_floor_sign">&#x2010;</span> - <span data-translate="high_floor_description">tramwaj wysokopodłogowy</span>.
127                         <span data-translate="help_hover_for_more">Najedź na ikonę, by uzyskać więcej informacji.</span>
27662b 128                     </p>
JK 129                     
da2d4d 130                     <p class="small" data-translate="help_text">Względne czasy (np. 3 min) są podawane na podstawie faktycznej lokalizacji tramwajów. Czasy bezwzględne (np. 8:01) to odjazdy rozkładowe, pokazywane gdy tramwaj nie może być zlokalizowany. "?" oznacza nieznane opóźnienie.</p>
a03a80 131                     
da2d4d 132                     <p class="small">&copy; 2016-2017 Jacek Kowalski - <a href="https://github.com/jacekkow/mpk-ttss" data-translate="help_source">Źródło</a> - <a href="https://raw.githubusercontent.com/jacekkow/mpk-ttss/master/LICENSE" data-translate="help_license">Licencja</a></p>
896879 133                 </div>
JK 134             </div>
135         </div>
136         <script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha384-3ceskX3iaEnIogmQchP8opvBy3Mi7Ce34nWjpBIwVTHfGYWQS9jwHDVRnpKKHJg7"  crossorigin="anonymous"></script>
da2d4d 137         <script tyle="text/javascript" src="lang_pl.js" id="lang_script"></script>
68aeb4 138         <script tyle="text/javascript" src="common.js"></script>
c25e91 139         <script type="text/javascript" src="index.js"></script>
896879 140     </body>
JK 141 </html>