From 7a58f50a20cb2517f310cd93494ad1833158def2 Mon Sep 17 00:00:00 2001
From: p0358 <p0358@users.noreply.github.com>
Date: Sun, 29 Oct 2017 15:31:21 +0000
Subject: [PATCH] 2 fixes (typo and boarding animation when arrows weren't shown yet)

---
 index.js   |    4 +++-
 index.html |    4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/index.html b/index.html
index f4e3a0e..65b6577 100644
--- a/index.html
+++ b/index.html
@@ -134,8 +134,8 @@
 			</div>
 		</div>
 		<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha384-3ceskX3iaEnIogmQchP8opvBy3Mi7Ce34nWjpBIwVTHfGYWQS9jwHDVRnpKKHJg7"  crossorigin="anonymous"></script>
-		<script tyle="text/javascript" src="lang_pl.js" id="lang_script"></script>
-		<script tyle="text/javascript" src="common.js"></script>
+		<script type="text/javascript" src="lang_pl.js" id="lang_script"></script>
+		<script type="text/javascript" src="common.js"></script>
 		<script type="text/javascript" src="index.js"></script>
 	</body>
 </html>
diff --git a/index.js b/index.js
index 3a7e3f5..c21eff0 100644
--- a/index.js
+++ b/index.js
@@ -139,7 +139,9 @@
 			
 			if(data.actual[i].status == 'STOPPING') {
 				tr.className = 'success';
-				status_cell.className = 'status-boarding';
+				if (data.actual[i].actualRelativeTime <= 0) {
+					status_cell.className = 'status-boarding';
+				}
 			} else if(parseInt(delay) > 9) {
 				tr.className = 'danger';
 				delay_cell.className = 'status-delayed';

--
Gitblit v1.9.1