added a json handler
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ function update_board(f, o, s, score) {
|
||||
|
||||
function new_problem() {
|
||||
$.get("/api/v0/problem/", function(d) {
|
||||
update_board(d["first"], d["operation"], d["second"], d["score"]);
|
||||
update_board(d["First"], d["Operation"], d["Second"], d["Score"]);
|
||||
$("#answer").val("");
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user