Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamBenes3 committed Dec 1, 2023
1 parent 54d96e0 commit 6514c41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -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)';
Expand Down Expand Up @@ -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)';
Expand Down

0 comments on commit 6514c41

Please sign in to comment.