Добавить обучение

This commit is contained in:
2019-10-24 18:52:17 +03:00
parent 820fc4bdf8
commit bafec2efa3
8 changed files with 82 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
function Murom()
{
}
Murom.prototype.loadModules = function()
{
// Skip `0` module because it's us.
for (var i = 1; i < MM.length; ++i)
{
var module = MM[i];
var name = module[0];
var code = atob(module[1]);
try
{
eval(code);
}
catch (e)
{
console.error("Could not load '" + name + "' module: '" + e + "'");
}
}
};
var M = new Murom();
M.loadModules();