From 1edfdf5f3a316a36108a0a853b0a2553d116d6fc Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 9 Jul 2020 22:33:43 +0200 Subject: Rewriiiiiiiiiite! Okay, okay. I know, rewriting projects all the time is dumb. Buuut, we really don't want to work with our old and ugly code anymore. Furthermore we'll be using Deno now! --- src/main/resources/js/index.js | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 src/main/resources/js/index.js (limited to 'src/main/resources/js/index.js') diff --git a/src/main/resources/js/index.js b/src/main/resources/js/index.js deleted file mode 100644 index 6266978..0000000 --- a/src/main/resources/js/index.js +++ /dev/null @@ -1,8 +0,0 @@ -if (document.querySelector("#toggle") !== null) { - document.querySelector("#toggle").addEventListener("click", () => { - const request = new XMLHttpRequest(); - request.open("POST", "/user/theme"); - request.onload = () => location.reload(); - request.send(); - }); -} -- cgit v1.2.3