Friendiiverse/App/Elems.js

12 lines
252 B
JavaScript
Raw Normal View History

2023-04-23 19:46:01 +02:00
function MakeWindow(Attrs) {
var Window = document.createElement('div');
if (Attrs) {
Object.keys(Attrs).forEach(function(Attr){
Window[Attr] = Attrs[Attr];
});
};
Window.className += ' Window';
Root.appendChild(Window);
return Window;
};