ztuo
This commit is contained in:
parent
143803a604
commit
1f16b2472c
@ -13,8 +13,8 @@ document.querySelectorAll(".building").forEach((b) => {
|
||||
// Position des Gebäudes
|
||||
const rect = b.getBoundingClientRect();
|
||||
|
||||
popup.style.left = rect.left + rect.width / 2 + "px";
|
||||
popup.style.top = rect.top + rect.height / 2 + "px";
|
||||
popup.style.left = "50%";
|
||||
popup.style.top = "50%";
|
||||
|
||||
//popup.style.display = "block";
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user