diff options
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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)
|