mirror of https://github.com/Lissy93/dashy.git
💫 Increase time between stages on initilization screen
This commit is contained in:
parent
21eb2a604d
commit
a327bf2349
|
@ -60,7 +60,7 @@
|
|||
}
|
||||
|
||||
body {
|
||||
background: #141b33;
|
||||
background: #0d1220;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
|
@ -197,12 +197,12 @@
|
|||
</style>
|
||||
|
||||
<script>
|
||||
const refreshRate = 8000;
|
||||
// Refresh at interval
|
||||
// Refresh the page every 10 seconds
|
||||
const refreshRate = 10000;
|
||||
setTimeout(() => { location.reload(); }, refreshRate);
|
||||
|
||||
// Get current stage
|
||||
let initStage = parseInt(sessionStorage.getItem('initStage') || 0);
|
||||
// Get current stage
|
||||
let initStage = parseInt(sessionStorage.getItem('initStage') || 0);
|
||||
|
||||
// Check if stage in session storage is old, and if so, reset it
|
||||
const now = Math.round(Date.now()/1000);
|
||||
|
@ -262,4 +262,4 @@
|
|||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue