Countdown and register updates

This commit is contained in:
Kasper Rynning-Tønnesen
2020-01-31 10:21:29 +01:00
parent e00e8110de
commit 48fed44fb2
3 changed files with 74 additions and 8 deletions

View File

@@ -86,7 +86,9 @@ export default {
(this.distance % (1000 * 60 * 60)) / (1000 * 60)
);
this.seconds = Math.floor((this.distance % (1000 * 60)) / 1000);
if (this.days == 7) {
this.days = 0;
}
if (this.distance < 0) {
clearTimeout(this.interval);
return;