image pour folie
This commit is contained in:
parent
2652a28c43
commit
be8c3c52dd
2 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue