From 3a6928a0189bfe8d481c7eeac7a3d3df5dd9cdc0 Mon Sep 17 00:00:00 2001 From: Abdellah El Morabit Date: Sun, 24 Nov 2024 12:41:38 +0100 Subject: updates to the web gui --- templates/static/main.mjs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 templates/static/main.mjs (limited to 'templates/static/main.mjs') diff --git a/templates/static/main.mjs b/templates/static/main.mjs new file mode 100644 index 0000000..7e48f65 --- /dev/null +++ b/templates/static/main.mjs @@ -0,0 +1,13 @@ +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