Show "Loading..." while waiting for account login page to show up
This commit is contained in:
parent
9a86653fda
commit
bf0a4ad716
31
www/assets/iframeloading.html
Normal file
31
www/assets/iframeloading.html
Normal file
@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
This Source Code Form is subject to the terms of the Mozilla Public
|
||||
License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Loading</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<style>
|
||||
*,html,body {
|
||||
background-color: #fff;
|
||||
font-family: Roboto, Ubuntu, sans-serif;
|
||||
text-align: center;
|
||||
}
|
||||
div {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div>Loading...</div>
|
||||
|
||||
<script src="../settings.js"></script>
|
||||
<script>
|
||||
window.location.href = SETTINGS.loginurl;
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
@ -17,8 +17,8 @@
|
||||
</div>
|
||||
|
||||
<div class="page-content" style="overflow-y: hidden;"> <!-- overflow-y:hidden removes an annoying pointless scrollbar that wiggles a few pixels up and down -->
|
||||
<iframe src="{{loginurl}}" id="loginframe" style="border: 0; width: 100%; height: calc(100vh - var(--f7-navbar-height));"></iframe>
|
||||
<iframe src="assets/iframeloading.html" id="loginframe" style="border: 0; width: 100%; height: calc(100vh - var(--f7-navbar-height));"></iframe>
|
||||
</div>
|
||||
|
||||
|
||||
<script src="assets/js/login.js"></script>
|
||||
</div>
|
@ -214,12 +214,7 @@ var routes = [
|
||||
{
|
||||
path: '/login',
|
||||
templateUrl: './pages/login.html',
|
||||
name: 'login',
|
||||
options: {
|
||||
context: {
|
||||
loginurl: SETTINGS.loginurl
|
||||
}
|
||||
}
|
||||
name: 'login'
|
||||
},
|
||||
{
|
||||
path: '/toolbox',
|
||||
|
Loading…
x
Reference in New Issue
Block a user