diff options
author | JJ <nicetry@noemail.com> | 2025-03-30 20:56:01 +0100 |
---|---|---|
committer | JJ <nicetry@noemail.com> | 2025-03-30 20:56:01 +0100 |
commit | d518beb637e7c2776d84e87c63cc201c101ca89c (patch) | |
tree | abbfc7933285f829a23afeae09655e5d2106849b /static/scripts/index.js | |
parent | aa931dddf30700b6458a269389291b632a848ccb (diff) |
styling, sub instructions
Diffstat (limited to 'static/scripts/index.js')
-rw-r--r-- | static/scripts/index.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/static/scripts/index.js b/static/scripts/index.js new file mode 100644 index 0000000..65c3c12 --- /dev/null +++ b/static/scripts/index.js @@ -0,0 +1,11 @@ +const modal = document.querySelector("dialog"); +const showModalBtn = document.querySelector("#show-modal"); +const closeModalBtn = document.querySelector("#close-modal"); + +showModalBtn.addEventListener("click", () => { + modal.showModal(); +}); + +closeModalBtn.addEventListener("click", () => { + modal.close(); +}); |