Skip to content

Commit

Permalink
style(countdown): remove unnecessary brackets
Browse files Browse the repository at this point in the history
Co-authored-by: Gaëtan Muller <[email protected]>
  • Loading branch information
amtins and MGaetan89 committed Dec 9, 2024
1 parent fc8a09d commit 98289c5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions static/showcases/countdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,14 @@ <h2>Display Countdown</h2>

let diff = totalInMilliseconds;
// Calculate days, hours, minutes, and seconds
let days = Math.floor(diff / (DAYS));
diff -= days * (DAYS);
let days = Math.floor(diff / DAYS);
diff -= days * DAYS;

let hours = Math.floor(diff / (HOURS));
diff -= hours * (HOURS);
let hours = Math.floor(diff / HOURS);
diff -= hours * HOURS;

let minutes = Math.floor(diff / (MINUTES));
diff -= minutes * (MINUTES);
let minutes = Math.floor(diff / MINUTES);
diff -= minutes * MINUTES;

let seconds = Math.floor(diff / SECONDS_IN_MS);

Expand Down

0 comments on commit 98289c5

Please sign in to comment.