From dcf610a43268838027fae008b4aa790d8c76169a Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Fri, 12 Apr 2024 23:35:09 -0500 Subject: [PATCH] Its javascript time!!! --- static/index.html | 2 ++ static/main.js | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 static/main.js diff --git a/static/index.html b/static/index.html index 1a388a6..c3531c8 100644 --- a/static/index.html +++ b/static/index.html @@ -5,6 +5,8 @@ + + diff --git a/static/main.js b/static/main.js new file mode 100644 index 0000000..05f6948 --- /dev/null +++ b/static/main.js @@ -0,0 +1,3 @@ +window.onbeforeunload = function() { + window.scrollTo(0, 0) +} \ No newline at end of file