diff options
| author | Abdellah El Morabit <nsrddyn@gmail.com> | 2024-11-24 12:41:38 +0100 |
|---|---|---|
| committer | Abdellah El Morabit <nsrddyn@gmail.com> | 2024-11-24 12:41:38 +0100 |
| commit | 3a6928a0189bfe8d481c7eeac7a3d3df5dd9cdc0 (patch) | |
| tree | 86a00bcd10dae82ac566e68c2c525fa71a44607a /templates/static/main.mjs | |
| parent | 567787eabe414592d005c727868091bcba2bf6fe (diff) | |
updates to the web gui
Diffstat (limited to 'templates/static/main.mjs')
| -rw-r--r-- | templates/static/main.mjs | 13 |
1 files changed, 13 insertions, 0 deletions
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)"; + }); + }); +}); |
