added multiplication

This commit is contained in:
sm
2014-12-07 21:23:31 -08:00
parent 6349277217
commit 467cda77bf
7 changed files with 70 additions and 25 deletions
+2 -1
View File
@@ -6,7 +6,8 @@ function update_board(f, o, s, score) {
}
function new_problem() {
$.get("/api/v0/problem/", function(d) {
var type = document.URL.split('/')[3];
$.get("/api/v0/"+type+"/problem/", function(d) {
update_board(d["First"], d["Operation"], d["Second"], d["Score"]);
$("#answer").val("");
})