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() {
// Hide startup loading message
document.getElementById("loadingscene").classList.add("hidden");
push_scene(new LoginScene(), false);
}

View File

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