html, body height 100%. version=5.1

This commit is contained in:
2022-03-22 14:27:01 +03:00
parent 0289174c94
commit 174f7b91ce
32 changed files with 2014 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
function Физика(события)
{
this.создать = function()
{
this.задано = {};
};
this.обработатьКлюч = function(ключ, путь, значение)
{
if (путь[0] != "физика")
{
return;
}
let имя = путь[1];
let свойство = путь.slice(2).join(".");
if (!this.задано[имя])
{
this.задано[имя] = {};
}
this.задано[имя][свойство] = значение;
события.уведомить(`физика/${имя}`);
};
// Конструктор.
this.создать();
};