Update error message display

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-01-15 00:17:28 +00:00
parent 40b517224e
commit 0d18fd6c26
3 changed files with 9 additions and 4 deletions

View File

@ -6,7 +6,7 @@
<meta name="application-name" content="OwlBoard"> <meta name="application-name" content="OwlBoard">
<meta name="author" content="Frederick Boniface"> <meta name="author" content="Frederick Boniface">
<meta name="theme-color" content="#155bb7"> <meta name="theme-color" content="#155bb7">
<title id="pgTitle">OwlBoard - Loading</title> <title>OwlBoard - Loading</title>
<script src="./js/board.js"></script> <script src="./js/board.js"></script>
<link rel="stylesheet" type="text/css" href="./styles/style.css"/> <link rel="stylesheet" type="text/css" href="./styles/style.css"/>
<link rel="stylesheet" type="text/css" href="./styles/boards.css"/> <link rel="stylesheet" type="text/css" href="./styles/boards.css"/>
@ -36,9 +36,9 @@
<div id="error_notice" class="main-notice hidden-while-loading"> <div id="error_notice" class="main-notice hidden-while-loading">
<h1 class="error">Oops</h1> <h1 class="error">Oops</h1>
<p class="error">There was an error with your request</p> <p class="error">There was an error with your request</p>
<p id="err_not_found">The station you are searching for cannot be found</p> <p id="err_not_found" class="notices-hidden">The station you are searching for cannot be found</p>
<p id="err_no_data">The station has no data. It may not be in operation yet/anymore.</p> <p id="err_no_data" class="notices-hidden">The station has no data. It may not be in operation yet/anymore.</p>
<p id="err_conn">Connection Error, check your data connection. Retrying.</p> <p id="err_conn" class="notices-hidden">Connection Error, check your data connection. Retrying.</p>
</div> </div>
<div id="no_services" class="main-notice hidden-whille-loading"> <div id="no_services" class="main-notice hidden-whille-loading">
<p>There are no scheduled train services from this station</p> <p>There are no scheduled train services from this station</p>

View File

@ -66,6 +66,7 @@
<div class="text-description"> <div class="text-description">
<p>This is a development release and is under testing.</p> <p>This is a development release and is under testing.</p>
<p>Departure boards do not yet work.</p> <p>Departure boards do not yet work.</p>
<p>API Responses are being cached for a long time, any data you access may be stale</p>
</div> </div>
<!-- Footer --> <!-- Footer -->

View File

@ -45,6 +45,10 @@
margin-top: 150px; margin-top: 150px;
} }
.notices-hidden {
display: none;
}
#no_services { #no_services {
width: 75%; width: 75%;
margin: auto; margin: auto;