diff --git a/public/game.html b/public/game.html index 5ac9ac8..3d43f41 100644 --- a/public/game.html +++ b/public/game.html @@ -992,6 +992,7 @@ const title = (c.title || '').toString().toLowerCase(); let imgSrc = null; if(cid === 'adoubement' || title.indexOf('adoub') !== -1) imgSrc = '/assets/img/cards/adoubement.png'; + if(cid === 'folie' || title.indexOf('folie') !== -1 || title.indexOf('fou') !== -1) imgSrc = '/assets/img/cards/folie.png'; if(imgSrc){ const img = document.createElement('img'); img.src = imgSrc; diff --git a/public/index.html b/public/index.html index a4c132b..2178892 100644 --- a/public/index.html +++ b/public/index.html @@ -111,6 +111,7 @@ const title = (c.title || '').toString().toLowerCase(); let imgSrc = null; if(cid === 'adoubement' || title.indexOf('adoub') !== -1) imgSrc = '/assets/img/cards/adoubement.png'; + if(cid === 'folie' || title.indexOf('folie') !== -1 || title.indexOf('fou') !== -1) imgSrc = '/assets/img/cards/folie.png'; if(imgSrc){ const img = document.createElement('img'); img.src = imgSrc; img.alt = c.title || cid || 'card'; img.className = 'card-art-img'; img.style.width = '100%'; img.style.height = '100%'; img.style.objectFit = 'cover'; art.appendChild(img); } }catch(_){ } top.appendChild(art);