From 6514c418ec5befc1cee02a9cbd44295133a4c5b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Bene=C5=A1?= Date: Fri, 1 Dec 2023 20:45:47 +0100 Subject: [PATCH] ... --- views/index.ejs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/views/index.ejs b/views/index.ejs index b52c7f8..88e372e 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -532,9 +532,9 @@ timestamp.setHours(timestamp.getHours() + 1); var currentTimestamp = new Date(); var timeDifferenceInSeconds = (currentTimestamp - timestamp) / 1000; - if (timeDifferenceInSeconds < 60) { + if (timeDifferenceInSeconds < 260) { timestampBackgroundColor = 'rgba(0, 128, 0, 0.7)'; - } else if (timeDifferenceInSeconds >= 60 && timeDifferenceInSeconds <= 300) { + } else if (timeDifferenceInSeconds >= 260 && timeDifferenceInSeconds <= 1300) { timestampBackgroundColor = 'rgba(255, 165, 0, 0.7)'; } else { timestampBackgroundColor = 'rgba(255, 0, 0, 0.7)'; @@ -564,9 +564,9 @@ timestamp.setHours(timestamp.getHours() + 1); var currentTimestamp = new Date(); var timeDifferenceInSeconds = (currentTimestamp - timestamp) / 1000; - if (timeDifferenceInSeconds < 60) { + if (timeDifferenceInSeconds < 260) { timestampBackgroundColor = 'rgba(0, 128, 0, 0.7)'; - } else if (timeDifferenceInSeconds >= 60 && timeDifferenceInSeconds <= 300) { + } else if (timeDifferenceInSeconds >= 260 && timeDifferenceInSeconds <= 1300) { timestampBackgroundColor = 'rgba(255, 165, 0, 0.7)'; } else { timestampBackgroundColor = 'rgba(255, 0, 0, 0.7)';