From 12310b92f7fff6f285b21eb3c40fcde28b2f1af1 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Mon, 26 Dec 2016 14:41:18 +0000
Subject: [PATCH] Raise AJAX timeout from 3s to 10s

---
 index.html |   53 ++++++++++++++++++++---------------------------------
 1 files changed, 20 insertions(+), 33 deletions(-)

diff --git a/index.html b/index.html
index c7be53f..2b4c5b3 100644
--- a/index.html
+++ b/index.html
@@ -1,43 +1,18 @@
 <!DOCTYPE html>
 <html lang="en">
 	<head>
-		<title>TTSS Cracow</title>
+		<title>TTSS Kraków - Real-time tram departures</title>
 		<meta charset="utf-8">
 		<meta http-equiv="X-UA-Compatible" content="IE=edge">
 		<meta name="viewport" content="width=device-width, initial-scale=1">
 		<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
-		<style type="text/css">
-			tr.active {
-				color: gray;
-			}
-			.form-round-left {
-				border-top-left-radius: 4px !important;
-				border-bottom-left-radius: 4px !important;
-				border-right: 0;
-			}
-			.navbar-text {
-				margin-right: 15px;
-				margin-left: 15px;
-			}
-			.input-group-btn:first-child {
-				width: 50%;
-			}
-			@keyframes blink {
-				50% { color: transparent; }
-			}
-			.status-boarding {
-				animation: blink 1s linear infinite;
-			}
-			.status-delayed {
-				font-weight: bold;
-			}
-		</style>
+		<link rel="stylesheet" type="text/css" href="index.css">
 	</head>
 	<body>
 		<nav class="navbar navbar-default">
 			<div class="container-fluid">
 				<div class="navbar-header">
-					<a class="navbar-brand" href="#">TTSS KRK</a>
+					<a class="navbar-brand" href="#">TTSS Kraków</a>
 				</div>
 				<form class="navbar-form navbar-left">
 					<div class="input-group">
@@ -52,10 +27,7 @@
 					</div>
 				</form>
 				
-				<button type="button" class="btn btn-default navbar-btn pull-right" id="refresh" disabled="disabled">
-					<span class="glyphicon glyphicon-refresh" aria-hidden="true"></span>
-					Refresh
-				</button>
+				<button type="button" class="btn btn-default navbar-btn pull-right" id="refresh" disabled="disabled">&#x27f3; Refresh</button>
 				
 				<p class="navbar-text pull-right" id="refresh-text">Initializing...</p>
 			</div>
@@ -116,7 +88,22 @@
 					</table>
 					-->
 					
-					<p>&copy; 2016 Jacek Kowalski - <a href="https://github.com/jacekkow/mpk-ttss">Source</a> - <a href="https://raw.githubusercontent.com/jacekkow/mpk-ttss/master/LICENSE">License</a></p>
+					<p class="small">
+						Legend:
+						<span class="label bg-active">Departed</span>
+						<span class="label bg-success">At stop</span>
+						<span class="label bg-default">En route</span>
+						<span class="label bg-warning">Delayed 4′+</span>
+						<span class="label bg-danger">Delayed 10′+</span>
+					</p>
+					
+					<p class="small">
+						<span class="bigger" title="Bombardier NGT6, Bombardier NGT8, PESA 2014N Krakowiak, Newag Nevelo 126N">&#x267F;</span> - low-floor tram. <span class="bigger" title="Düwag/Man/MPK N8C-NF, Düwag/MPK GT8C, Bombardier-Rotax/MPK EU8N, Protram 405N-Kr">*&#x267F;</span> - partially low-floor tram. <span class="bigger" title="other tram types">&#x2010;</span> - high-floor tram. Hover the icon for more details.
+					</p>
+					
+					<p class="small">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>
+					
+					<p class="small">&copy; 2016 Jacek Kowalski - <a href="https://github.com/jacekkow/mpk-ttss">Source</a> - <a href="https://raw.githubusercontent.com/jacekkow/mpk-ttss/master/LICENSE">License</a></p>
 				</div>
 			</div>
 		</div>

--
Gitblit v1.9.1