aboutsummaryrefslogtreecommitdiffstats
path: root/util.js
diff options
context:
space:
mode:
authoralyx <>2022-02-04 14:02:20 +0000
committeralyxisdysphoric <alyx@aleteoryx.me>2022-02-04 14:02:20 +0000
commit40c8a4cb97f185f2b18c0e78f96a895b1b3fe06d (patch)
tree2135a25ef2890331935e5be2728ef34a3d7bd834 /util.js
downloadRRCUtils-40c8a4cb97f185f2b18c0e78f96a895b1b3fe06d.tar.gz
RRCUtils-40c8a4cb97f185f2b18c0e78f96a895b1b3fe06d.tar.bz2
RRCUtils-40c8a4cb97f185f2b18c0e78f96a895b1b3fe06d.zip
Initial commit
Diffstat (limited to 'util.js')
-rw-r--r--util.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/util.js b/util.js
new file mode 100644
index 0000000..fe9e5b7
--- /dev/null
+++ b/util.js
@@ -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