summaryrefslogtreecommitdiff
path: root/public/main.js
diff options
context:
space:
mode:
authorAlexis Hovorka <[email protected]>2022-02-02 00:06:53 -0700
committerAlexis Hovorka <[email protected]>2022-02-02 00:06:53 -0700
commit8a943500d97598a0b49ef655dc1b5484fe5e83d8 (patch)
tree339daf640084d724524c3cfcf92e51f48f7037b0 /public/main.js
Initial commit
Diffstat (limited to 'public/main.js')
-rw-r--r--public/main.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/public/main.js b/public/main.js
new file mode 100644
index 0000000..dce51b8
--- /dev/null
+++ b/public/main.js
@@ -0,0 +1,12 @@
+document.addEventListener("DOMContentLoaded", async () => { "use strict";
+
+const $ = (s,c) => (c||document).querySelector(s);
+function $$(x,y,z,a){a=(z||document).querySelectorAll(x);if(typeof y=="function")[].forEach.call(a,y);return a}
+function m(a,b,c){c=document;b=c.createElement(b||"p");b.innerHTML=a.trim();for(a=c.createDocumentFragment();c=b.firstChild;)a.appendChild(c);return a.firstChild}
+
+//if ("serviceWorker" in navigator) {
+// navigator.serviceWorker.register("sw.js")
+// .then(() => console.log("Service worker registered"));
+//}
+
+});