Refactor HTML structure in app.js for better readability and organization
This commit is contained in:
@@ -538,13 +538,15 @@ function showSpiritOverlay(spirit) {
|
||||
onmouseover="this.style.background='rgba(255,255,255,0.10)'"
|
||||
onmouseout="this.style.background='none'"
|
||||
>×</button>
|
||||
${spirit['Image URL'] ? `<img src="${spirit['Image URL']}" alt="Spirit Image" style="display:block; margin:0 auto 18px auto; max-width:240px; max-height:180px; border-radius:9px; background:#222;">` : ''}
|
||||
<h2 style='padding:0; margin:0 0 8px 0; font-weight:700; letter-spacing:0.04em;'>${spirit.Name || 'Spirit'}</h2>
|
||||
<b>${spirit.Kategorie || ''}</b><br><br>
|
||||
<b>Mythos:</b> ${spirit["Mythos/Legende"] || ''}<br><br>
|
||||
<b>Rolle:</b> ${spirit["Funktion/Rolle"] || ''}<br>
|
||||
<b>Charakter:</b> ${spirit.Charakter || ''}<br><br>
|
||||
${spirit.Herkunft ? '<i>' + spirit.Herkunft + '</i>' : ''}
|
||||
${spirit['Image URL'] ? `<img src="${spirit['Image URL']}" alt="Spirit Image">` : ''}
|
||||
<div class="spirit-info-content">
|
||||
<h2 style='padding:0; margin:0 0 8px 0; font-weight:700; letter-spacing:0.04em;'>${spirit.Name || 'Spirit'}</h2>
|
||||
<b>${spirit.Kategorie || ''}</b><br><br>
|
||||
<b>Mythos:</b> ${spirit["Mythos/Legende"] || ''}<br><br>
|
||||
<b>Rolle:</b> ${spirit["Funktion/Rolle"] || ''}<br>
|
||||
<b>Charakter:</b> ${spirit.Charakter || ''}<br><br>
|
||||
${spirit.Herkunft ? '<i>' + spirit.Herkunft + '</i>' : ''}
|
||||
</div>
|
||||
`;
|
||||
el.style.display = "block";
|
||||
lastOverlaySpiritData = spirit;
|
||||
|
||||
Reference in New Issue
Block a user