implemented scores

This commit is contained in:
sm
2013-05-09 00:37:35 -07:00
parent 6aaa72475a
commit 8458c38468
2 changed files with 36 additions and 5 deletions
+1
View File
@@ -20,6 +20,7 @@ function deal_with_answer(e) {
"answer": $("#answer").val(),
};
$.post("/api/v0/attempt/", data, function(d) {
$("#score").text(d["Score"]);
if(d["Status"]) {
$("body").removeClass("wrong");
new_problem();