diff options
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/hello.js | 6 |
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 |