summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/play.js b/play.js
index fe2bee4..c2d11ed 100644
--- a/play.js
+++ b/play.js
@@ -286,7 +286,11 @@ function playCard(event) {
const eventPanel = document.getElementById('events');
const activeCard = document.createElement('img')
- activeCard.src = `images/e${playedCard}.gif`
+ if (playedCard < 100) {
+ activeCard.src = `cards/e${playedCard}.gif`
+ } else {
+ activeCard.src = `cards2/e${playedCard}.gif`
+ }
activeCard.className='playedCard'
activeCard.alt = `Card ${playedCard}`
eventPanel.appendChild(activeCard)