Skip to content

Commit

Permalink
UI Improve, Score Buttom Bug Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Minemetero committed Jun 5, 2024
1 parent 54be814 commit 3798e0e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
28 changes: 15 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,22 @@ <h2>Players:</h2>
</div>

<div class="scoreboard" id="scoreboard" style="display: none;">
<div class="scoreboard-section" id="playerContainer">
<h2>Players' Scores</h2>
<ul id="playerScoreList"></ul>
</div>
<div class="scoreboard-section" id="matchContainer">
<h2>Current Match</h2>
<div id="currentMatch"></div>
<div class="result-group">
<p id="result"></p>
<div class="scoreboard-inner">
<div class="scoreboard-section" id="playerContainer">
<h2>Players' Scores</h2>
<ul id="playerScoreList"></ul>
</div>
<div class="scoreboard-section" id="matchContainer">
<h2>Current Match</h2>
<div id="currentMatch"></div>
<div class="result-group">
<p id="result"></p>
</div>
</div>
<div class="scoreboard-section" id="orderContainer">
<h2>Match Order</h2>
<ul id="matchOrderList"></ul>
</div>
</div>
<div class="scoreboard-section" id="orderContainer">
<h2>Match Order</h2>
<ul id="matchOrderList"></ul>
</div>
<div class="buttons">
<button class="reset-button" id="resetButton">Reset</button>
Expand Down
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function startGame() {
document.getElementById('playerInputGroup').style.display = 'none';
document.getElementById('playerListGroup').style.display = 'none';
document.getElementById('initialButtons').style.display = 'none';
document.getElementById('scoreboard').style.display = 'flex';
document.getElementById('scoreboard').style.display = 'block';
updatePlayerScoreList();
startNewMatch();
}
Expand Down
6 changes: 5 additions & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ body {
padding: 20px;
border-radius: 12px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
width: 800px;
width: 900px;
text-align: center;
transition: all 0.3s ease;
}
Expand Down Expand Up @@ -103,6 +103,10 @@ label {
}

.scoreboard {
display: none;
}

.scoreboard-inner {
display: flex;
justify-content: space-between;
align-items: flex-start;
Expand Down

0 comments on commit 3798e0e

Please sign in to comment.