From d518beb637e7c2776d84e87c63cc201c101ca89c Mon Sep 17 00:00:00 2001 From: JJ Date: Sun, 30 Mar 2025 20:56:01 +0100 Subject: styling, sub instructions --- static/scripts/index.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 static/scripts/index.js (limited to 'static/scripts/index.js') 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(); +}); -- cgit v1.2.3