diff options
author | Elizabeth <elizabeth_c_wu@brown.edu> | 2024-01-19 17:30:57 -0500 |
---|---|---|
committer | Elizabeth <elizabeth_c_wu@brown.edu> | 2024-01-19 17:30:57 -0500 |
commit | 6c6b8c5fbdb6a2027388a2184ef46428d720dd1e (patch) | |
tree | e3216664f10d022dd5f863795b640f24433597c6 /submit.js | |
parent | c4371f61a68dcc25c42fa9fc78c624d75b9964dc (diff) |
style
Diffstat (limited to 'submit.js')
-rw-r--r-- | submit.js | 10 |
1 files changed, 10 insertions, 0 deletions
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(); + }); + } +}); |