Web: Show startup loading message

This commit is contained in:
Unrud 2020-01-16 04:39:22 +01:00
parent 1ef067c7e9
commit f844bbacda
2 changed files with 8 additions and 5 deletions

View File

@ -1142,6 +1142,8 @@ function CreateEditCollectionScene(user, password, collection) {
} }
function main() { function main() {
// Hide startup loading message
document.getElementById("loadingscene").classList.add("hidden");
push_scene(new LoginScene(), false); push_scene(new LoginScene(), false);
} }

View File

@ -18,6 +18,12 @@
</ul> </ul>
</nav> </nav>
<section id="loadingscene">
<h1>Loading</h1>
<p>Please wait...</p>
<noscript>JavaScript is required</noscript>
</section>
<section id="loginscene" class="hidden"> <section id="loginscene" class="hidden">
<h1>Login</h1> <h1>Login</h1>
<form data-name="form"> <form data-name="form">
@ -28,11 +34,6 @@
</form> </form>
</section> </section>
<section id="loadingscene" class="hidden">
<h1>Loading</h1>
Please wait...
</section>
<section id="collectionsscene" class="hidden"> <section id="collectionsscene" class="hidden">
<h1>Collections</h1> <h1>Collections</h1>
<ul> <ul>