From 6c6b8c5fbdb6a2027388a2184ef46428d720dd1e Mon Sep 17 00:00:00 2001 From: Elizabeth Date: Fri, 19 Jan 2024 17:30:57 -0500 Subject: style --- submit.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 submit.js (limited to 'submit.js') diff --git a/submit.js b/submit.js new file mode 100644 index 0000000..c917435 --- /dev/null +++ b/submit.js @@ -0,0 +1,10 @@ +window.addEventListener("DOMContentLoaded", () => { + const dialog = document.querySelector("dialog"); + const openDialog = document.getElementById("working-button"); + if (openDialog) { + openDialog.addEventListener("click", () => { + console.log("hi"); + dialog.showModal(); + }); + } +}); -- cgit v1.2.3-70-g09d2