корень

This commit is contained in:
2021-06-25 17:53:27 +03:00
parent 0eca32f3c1
commit 43fa2e1f93
3 changed files with 6 additions and 2 deletions

View File

@@ -105,7 +105,7 @@ function обновитьЭлемент(имя, свойство, значени
элемент.style.position = "absolute";
элемент.style.display = "block";
элемент.style.transformOrigin = "center";
document.body.appendChild(элемент);
document.getElementById("корень").appendChild(элемент);
мир.объекты.элементы[имя] = элемент;
// Свойства по умолчанию.
элемент.style.width = `${ум.ширина}px`;