From a909aee7a1a93d50c2896795ede1e0b543423c3a Mon Sep 17 00:00:00 2001 From: Maximilian Giller Date: Sun, 21 Jan 2024 22:39:43 +0100 Subject: [PATCH] Adjusted wording and fixed for midnight goal --- index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 72b9589..7f5c8b5 100644 --- a/index.html +++ b/index.html @@ -145,7 +145,7 @@
- Going to bed before 10pm + Going to bed before midnight
@@ -210,18 +210,18 @@ const hours = Math.floor(totalSeconds / 3600); if (hours > 24) { - return "over a day"; + return "Over a day"; } else if (hours > 0) { - return hours + " hours remaining"; + return "More than " + hours + " hours remaining"; } const minutes = Math.floor((totalSeconds - (hours * 3600)) / 60); if (minutes > 0) { - return minutes + " minutes remaining"; + return "More than " + minutes + " minutes remaining"; } const seconds = totalSeconds - (hours * 3600) - (minutes * 60); - return seconds + " seconds remaining"; + return "More than " + seconds + " seconds remaining"; } function updateStatus() {