Skip to content

Commit

Permalink
fix duplicate leaderboard
Browse files Browse the repository at this point in the history
  • Loading branch information
JYNguyen committed Apr 25, 2024
1 parent 5211574 commit 540ba14
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ <h2>Timer: <span id="timer">30</span> seconds</h2>
</div>

<!-- Leaderboard section -->
<div id="leaderboardSection">
<h2>Leaderboard</h2>
<ol id="leaderboardList"></ol>
</div>

<div id="leaderboardContainer">
<h2>Leaderboard</h2>
<table id="leaderboardTable">
Expand Down Expand Up @@ -313,8 +308,10 @@ <h2>Leaderboard</h2>
timerElement.textContent = time;
if (time <= 30) {
timerElement.style.color = 'red'; // Change color to red when 30 seconds or less
timerElement.style.border = '4px solid red'; // Add red border when 30 seconds or less
} else {
timerElement.style.color = 'black'; // Reset color to black for other times
timerElement.style.border = '4px solid black'; // Reset border to black for other times
}
}
function resetTimer() {
Expand Down

0 comments on commit 540ba14

Please sign in to comment.