summaryrefslogtreecommitdiff
path: root/webGUI/main.mjs
diff options
context:
space:
mode:
authornasrlol <nsrddyn@gmail.com>2024-11-18 23:10:14 +0100
committernasrlol <nsrddyn@gmail.com>2024-11-18 23:10:14 +0100
commitcc8792b3150f7b7f0a5a297dedd78295d4031c68 (patch)
tree2b8d24c3f195e3d2c71ae04a371c68defdb45c39 /webGUI/main.mjs
parentdbf4264109f52fb7d1479d1119e39fddafd952bd (diff)
finished the webpage, and the main code is functioning correctly
Diffstat (limited to 'webGUI/main.mjs')
-rw-r--r--webGUI/main.mjs14
1 files changed, 13 insertions, 1 deletions
diff --git a/webGUI/main.mjs b/webGUI/main.mjs
index c7464e5..7e48f65 100644
--- a/webGUI/main.mjs
+++ b/webGUI/main.mjs
@@ -1 +1,13 @@
-let modes = ["STATS", ""] \ No newline at end of file
+document.addEventListener("DOMContentLoaded", () => {
+ const buttons = document.querySelectorAll(".controls a");
+
+ buttons.forEach((button) => {
+ button.addEventListener("mouseover", () => {
+ button.style.boxShadow = "0px 6px 12px rgba(255, 255, 255, 0.5)";
+ });
+
+ button.addEventListener("mouseout", () => {
+ button.style.boxShadow = "0px 4px 8px rgba(0, 0, 0, 0.4)";
+ });
+ });
+});