From 9ef75ebcde745f47992f84b455057811139e640c Mon Sep 17 00:00:00 2001 From: CalDescent Date: Tue, 23 Nov 2021 21:15:45 +0000 Subject: [PATCH] Improved styling of loading panel --- src/main/resources/loading/index.html | 32 ++++++++++++++++++++------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/src/main/resources/loading/index.html b/src/main/resources/loading/index.html index c5d2babe..8ac5c39f 100644 --- a/src/main/resources/loading/index.html +++ b/src/main/resources/loading/index.html @@ -16,14 +16,25 @@ text-align: center; color: black; } - h1 { - margin-top: 50px; - } - #panel { + #panel-outer { position: absolute; width: 100%; text-align: center; z-index: 1000; + top: 45%; + -ms-transform: translateY(-50%); + transform: translateY(-50%); + } + #panel { + text-align: center; + background: white; + width: 350px; + margin: auto; + padding: 25px; + border-radius: 30px; + } + #status { + color: #03a9f4; } @@ -50,10 +61,12 @@ if (json.status == "UNSUPPORTED") { textStatus = "Unsupported request"; + document.getElementById("status").style.color = "red"; } else if (json.status == "BLACKLISTED") { textStatus = name + " is blacklisted so content cannot be served"; retryInterval = 5000; + document.getElementById("status").style.color = "red"; } else if (json.status == "READY") { textStatus = "Ready"; @@ -73,6 +86,7 @@ else if (json.status == "MISSING_DATA") { textStatus = "Unable to locate files. Please try again later."; retryInterval = 10000; + document.getElementById("status").style.color = "red"; } else if (json.status == "DOWNLOADED") { textStatus = "Files downloaded"; @@ -234,10 +248,12 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI -
-

Loading... please wait...

-

This page will refresh automatically when the content becomes available

-

Loading...

+
+
+

Loading

+

This page will refresh automatically when the content becomes available

+

Loading...

+