diff options
| author | Abdellah El Morabit <nsrddyn@gmail.com> | 2024-11-29 13:24:16 +0100 |
|---|---|---|
| committer | Abdellah El Morabit <nsrddyn@gmail.com> | 2024-11-29 13:24:16 +0100 |
| commit | fdd3b103bb209045123693cd60149b951c7b2be8 (patch) | |
| tree | 1019543e2db0ec535f9a76c9f8527fa0ef299caa /public/templates/static/main.mjs | |
| parent | 446f3d4742f88b09c85e83e96f6505cd3f6302c5 (diff) | |
rewritten the source of the application
Diffstat (limited to 'public/templates/static/main.mjs')
| -rw-r--r-- | public/templates/static/main.mjs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/public/templates/static/main.mjs b/public/templates/static/main.mjs new file mode 100644 index 0000000..7e48f65 --- /dev/null +++ b/public/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)"; + }); + }); +}); |
