From be8c3c52dd6351cd5be0572901a8b6f3fe4c4a63 Mon Sep 17 00:00:00 2001 From: Didictateur Date: Mon, 24 Nov 2025 14:08:34 +0100 Subject: [PATCH] image pour folie --- public/game.html | 1 + public/index.html | 1 + 2 files changed, 2 insertions(+) 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);