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 @@ | |||
| 1 | document.addEventListener("DOMContentLoaded", () => { | ||
| 2 | const buttons = document.querySelectorAll(".controls a"); | ||
| 3 | |||
| 4 | buttons.forEach((button) => { | ||
| 5 | button.addEventListener("mouseover", () => { | ||
| 6 | button.style.boxShadow = "0px 6px 12px rgba(255, 255, 255, 0.5)"; | ||
| 7 | }); | ||
| 8 | |||
| 9 | button.addEventListener("mouseout", () => { | ||
| 10 | button.style.boxShadow = "0px 4px 8px rgba(0, 0, 0, 0.4)"; | ||
| 11 | }); | ||
| 12 | }); | ||
| 13 | }); | ||
