aboutsummaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
authorMark Powers <mark@marks.kitchen>2021-12-23 16:50:42 -0600
committerMark Powers <mark@marks.kitchen>2021-12-23 16:50:42 -0600
commit1d3574d38909bc9aae2792d839023e296fb25791 (patch)
treec409fbff38083b85356498f636714e6ec74f95e4 /src/js
parent85a103d6a02a50ce28cbb44c2e693000d9b7388d (diff)
Add email unsubcribe link, update about me, add hello.js
Diffstat (limited to 'src/js')
-rw-r--r--src/js/hello.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/js/hello.js b/src/js/hello.js
new file mode 100644
index 0000000..ab67810
--- /dev/null
+++ b/src/js/hello.js
@@ -0,0 +1,6 @@
+// Just says hello to the server. No personal information is stored, this
+// just tells me when someone real (or a bot running JS) visits my site.
+function hello(){
+ fetch(`/hello/${encodeURIComponent(location.pathname)}`)
+}
+window.onload = hello