test popup 1
This commit is contained in:
parent
1dcf0b8080
commit
86582ceb65
@ -51,7 +51,7 @@ document.querySelectorAll(".building").forEach((building) => {
|
|||||||
if (!res.ok) throw new Error("API Fehler");
|
if (!res.ok) throw new Error("API Fehler");
|
||||||
|
|
||||||
const data = await res.json();
|
const data = await res.json();
|
||||||
|
console.log("Gebäude API Antwort:", data);
|
||||||
document.getElementById("tab-info").innerHTML = `
|
document.getElementById("tab-info").innerHTML = `
|
||||||
<h3>${data.name}</h3>
|
<h3>${data.name}</h3>
|
||||||
<p>Level: ${data.level}</p>
|
<p>Level: ${data.level}</p>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user