From ac721dc18e5bf997afc016a486fa4788f094b148 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Thu, 08 Dec 2016 22:47:26 +0000
Subject: [PATCH] Add request in progress indicator

---
 index.html |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/index.html b/index.html
index d26beb1..d3e32c7 100644
--- a/index.html
+++ b/index.html
@@ -34,7 +34,10 @@
 			.bg-active {
 				background-color: #eee;
 			}
-			.label.bg-success, .label.bg-warning, .label.bg-danger, .label.bg-active {
+			.bg-default {
+				border: 1px solid #eee;
+			}
+			.label.bg-success, .label.bg-warning, .label.bg-danger, .label.bg-active, .label.bg-default {
 				color: black;
 				font-weight: normal;
 				font-size: inherit;
@@ -69,6 +72,12 @@
 			</div>
 		</nav>
 		<div class="container-fluid">
+			<div id="progress" class="progress" style="display: none;">
+				<div id="progress-bar" class="progress-bar progress-bar-striped active" style="width: 100%">
+					<span id="progress-text" class="sr-only">Refreshing data...</span>
+				</div>
+			</div>
+			
 			<div id="alert" class="alert alert-danger alert-dismissible" style="display:none">
 				<a href="#" class="close" id="alert-close" aria-label="close">&times;</a>
 				<strong>Error occured!</strong> <span id="alert-text"></span>
@@ -126,10 +135,11 @@
 					
 					<p class="small">
 						Legend:
-						<span class="label bg-success">At stop</span>
-						<span class="label bg-warning">Slightly delayed</span>
-						<span class="label bg-danger">Heavily delayed</span>
 						<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">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>

--
Gitblit v1.9.1