From 6fa785668c046ee03ee9ea90d00ca3b99dc1e7e3 Mon Sep 17 00:00:00 2001 From: Nick Stokoe Date: Sat, 31 Dec 2022 13:16:19 +0000 Subject: [PATCH] www/{index.html,countdown.js} - add a ten-minute phase --- www/countdown.js | 3 ++- www/index.html | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/www/countdown.js b/www/countdown.js index 4234377..371d040 100644 --- a/www/countdown.js +++ b/www/countdown.js @@ -235,7 +235,8 @@ function pad(num) { function counterClass(millisecsRemaining) { if (millisecsRemaining > 3600000) return "hours"; - if (millisecsRemaining > 60000) return "minutes"; + if (millisecsRemaining > 600000) return "minutes"; + if (millisecsRemaining > 60000) return "ten-minutes"; if (millisecsRemaining > 10000) return "seconds"; return "countdown"; } diff --git a/www/index.html b/www/index.html index e1b47e6..111c138 100644 --- a/www/index.html +++ b/www/index.html @@ -16,6 +16,7 @@ } div.hours { color: black; } div.minutes { color: green; } + div.ten-minutes { color: orange; } div.seconds { color: orange; animation: blinker 1s linear infinite; } div.countdown { color: red; animation: blinker 1s linear infinite; } @keyframes blinker {