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");
|
||||
|
||||
const data = await res.json();
|
||||
|
||||
console.log("Gebäude API Antwort:", data);
|
||||
document.getElementById("tab-info").innerHTML = `
|
||||
<h3>${data.name}</h3>
|
||||
<p>Level: ${data.level}</p>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user