From 9891b125449f6d19b96ceefb9611d1b92cd6f704 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 28 May 2025 05:23:21 +0200 Subject: [PATCH] Add image display for spirits in app.js --- node/server/public/app.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/node/server/public/app.js b/node/server/public/app.js index 5cbf01d..770d567 100644 --- a/node/server/public/app.js +++ b/node/server/public/app.js @@ -447,11 +447,19 @@ function showSpiritOverlay(spirit) { `; document.body.appendChild(el); } + // Bild-URL (falls vorhanden) + let img = ""; + if (spirit["Image URL"]) { + img = `Spirit Image`; + } el.innerHTML = ` + ${img}

${spirit.Name || 'Spirit'}

${spirit.Kategorie || ''}

Mythos: ${spirit["Mythos/Legende"] || ''}