diff --git a/assets/public/note.js b/assets/public/note.js
new file mode 100644
index 0000000..d800522
--- /dev/null
+++ b/assets/public/note.js
@@ -0,0 +1,20 @@
+"use strict";
+
+function post(url, vals, cb) {
+ var data = new FormData();
+ for (var key in vals) {
+ data.append(key, vals[key]);
+ }
+ var xhr = new XMLHttpRequest();
+ xhr.open('POST', url)
+ xhr.onreadystatechange = function() { if (xhr.readyState === XMLHttpRequest.DONE) return cb(xhr.status, xhr.responseText) };
+ xhr.send(data);
+}
+
+function report(id) {
+ var resp = prompt("Please shortly explain the problem with this note.");
+ if (resp) {
+ post('/' + id + '/report', { "report": resp })
+ alert("Thank you!")
+ }
+}
diff --git a/assets/public/style.css b/assets/public/style.css
index 8a7f455..7680cf0 100644
--- a/assets/public/style.css
+++ b/assets/public/style.css
@@ -272,3 +272,8 @@ form {
li {
margin: 0.3em 0;
}
+
+#feedback {
+ margin-left: 1em;
+ color: #f66;
+}
diff --git a/assets/templates/form.html b/assets/templates/form.html
index 69c273f..7004cc6 100644
--- a/assets/templates/form.html
+++ b/assets/templates/form.html
@@ -8,19 +8,23 @@