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