diff options
author | alyx <> | 2022-02-04 14:02:20 +0000 |
---|---|---|
committer | alyxisdysphoric <alyx@aleteoryx.me> | 2022-02-04 14:02:20 +0000 |
commit | 40c8a4cb97f185f2b18c0e78f96a895b1b3fe06d (patch) | |
tree | 2135a25ef2890331935e5be2728ef34a3d7bd834 /util.js | |
download | RRCUtils-40c8a4cb97f185f2b18c0e78f96a895b1b3fe06d.tar.gz RRCUtils-40c8a4cb97f185f2b18c0e78f96a895b1b3fe06d.tar.bz2 RRCUtils-40c8a4cb97f185f2b18c0e78f96a895b1b3fe06d.zip |
Initial commit
Diffstat (limited to 'util.js')
-rw-r--r-- | util.js | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -0,0 +1,5 @@ +function newEl(name, Class) { + ret = document.createElement(name); + if (Class) ret.classList.add(Class); + return ret; +}
\ No newline at end of file |