summaryrefslogtreecommitdiff
path: root/views/components
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-11-29 09:35:27 +0100
committerDaniel Weipert <code@drogueronin.de>2023-11-29 09:35:27 +0100
commit3afcaef927391db23fe23c6c8c26b8960e8dae32 (patch)
tree143b9f6df9e8c795c8c6ed901bffdc7119f40df1 /views/components
parentc4ce3e884a6aa527bcc138771617215cf03265a4 (diff)
intermediate commit
Diffstat (limited to 'views/components')
-rw-r--r--views/components/timer.twig3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/components/timer.twig b/views/components/timer.twig
index 97977da..ccb31a7 100644
--- a/views/components/timer.twig
+++ b/views/components/timer.twig
@@ -9,8 +9,9 @@ document.addEventListener('DOMContentLoaded', function (ev) {
const interval = setInterval(setTime, 1000);
function setTime() {
let diff = time - new Date();
- if (diff <= -1) {
+ if (diff <= 0) {
clearInterval(interval);
+ window.location.reload();
}
const hh = Math.floor(diff/1000/60/60);