initial commit

This commit is contained in:
KingOfDog
2019-06-11 18:46:14 +02:00
committed by KingOfDog
commit 35bc54eaac
13 changed files with 875 additions and 0 deletions

10
DOM.js Normal file
View File

@@ -0,0 +1,10 @@
Node.prototype.createChild = function(name, className) {
const el = document.createElement(name);
if(typeof className === 'string') {
el.classList.add(className);
}
this.appendChild(el);
return el;
};