From cc8792b3150f7b7f0a5a297dedd78295d4031c68 Mon Sep 17 00:00:00 2001 From: nasrlol Date: Mon, 18 Nov 2024 23:10:14 +0100 Subject: finished the webpage, and the main code is functioning correctly --- webGUI/main.mjs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'webGUI/main.mjs') 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)"; + }); + }); +}); -- cgit v1.2.3-70-g09d2