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