Skip to content

Commit 661258f

Browse files
committed
Can keep track of number of cards chosen and to be chosen
1 parent 41a72a9 commit 661258f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/res/js/match/match.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@
6565
allowPick = data.allowPick
6666
isSpectator = data.isSpectator
6767

68+
$("#cardcount").html(numSelected + "/" + numGaps);
69+
6870
if (isSpectator) {
6971
$(".match-hand").addClass("invisible")
7072
}

src/res/tpl/match.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@
5050
<div class="chat-messages" id="chatlist"></div>
5151
</div>
5252
</div>
53+
<div id="cardcount">
54+
(No cards to select)
55+
</div>
5356
<div class="match-hand">
5457
<div class="match-hand-container">
5558
<div class="match-hand-tabs">

0 commit comments

Comments
 (0)