From 1d3574d38909bc9aae2792d839023e296fb25791 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Thu, 23 Dec 2021 16:50:42 -0600 Subject: Add email unsubcribe link, update about me, add hello.js --- src/js/hello.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/js/hello.js (limited to 'src/js') 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 -- cgit v1.2.3