summaryrefslogtreecommitdiff
path: root/html/quotes.jsp
diff options
context:
space:
mode:
Diffstat (limited to 'html/quotes.jsp')
-rw-r--r--html/quotes.jsp15
1 files changed, 1 insertions, 14 deletions
diff --git a/html/quotes.jsp b/html/quotes.jsp
index 0602276..bd2f1f7 100644
--- a/html/quotes.jsp
+++ b/html/quotes.jsp
@@ -31,20 +31,7 @@ hr {
</pre>
<hr>
-<script>
-
-function vote(id, value) {
- var http = new XMLHttpRequest();
- http.open("GET","/vote?id="+id+"&vote="+value);
- http.onreadystatechange=function() {
- if(http.readyState==4) {
- document.getElementById("v"+id).innerHTML = http.responseText;
- }
- }
- http.send(null);
-}
-</script>
-
+<script src="/vote.js"></script>
<%