From afd1567d20f4f17f271d0c9d3a7cd6f1188eba3f Mon Sep 17 00:00:00 2001 From: iainp5 Date: Mon, 17 Jun 2024 14:50:15 +0100 Subject: Update play.js Another tweak to deal with new cards folders --- play.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3