aboutsummaryrefslogtreecommitdiff
path: root/static/scripts/index.js
diff options
context:
space:
mode:
authorJJ <nicetry@noemail.com>2025-03-30 20:56:01 +0100
committerJJ <nicetry@noemail.com>2025-03-30 20:56:01 +0100
commitd518beb637e7c2776d84e87c63cc201c101ca89c (patch)
treeabbfc7933285f829a23afeae09655e5d2106849b /static/scripts/index.js
parentaa931dddf30700b6458a269389291b632a848ccb (diff)
styling, sub instructions
Diffstat (limited to 'static/scripts/index.js')
-rw-r--r--static/scripts/index.js11
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();
+});