diff options
author | HombreLaser <sebastian-440@live.com> | 2024-02-06 16:29:04 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2024-02-06 16:29:04 -0600 |
commit | 3f1d5bbdcee41a483f9a7f36b0ef56010ac24e10 (patch) | |
tree | 946e4b76e6311ea5b4b79eb32847c6b916a2fad4 /static/js/comments | |
parent | 8ff7b349bb6d9e0cd2516c6cb76a52bb4c4a991d (diff) |
Add comment form
Diffstat (limited to 'static/js/comments')
-rw-r--r-- | static/js/comments/comment_form.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/static/js/comments/comment_form.js b/static/js/comments/comment_form.js new file mode 100644 index 0000000..0d853fe --- /dev/null +++ b/static/js/comments/comment_form.js @@ -0,0 +1,12 @@ +class CommentForm { + constructor(domain) { + this.domain = domain; + this.form_element = document.getElementById("comment-form"); + this.form_element.addEventListener("submit", this.submit); + } + + submit(event) { + this.form = new FormData(event.target); + console.log(this.form); + } +} |