Skip to content

Commit

Permalink
Merge branch 'master' of github.com:willyxiao/cs109-hcs
Browse files Browse the repository at this point in the history
  • Loading branch information
willyxiao committed Dec 12, 2014
2 parents e759c6c + cefc0eb commit 5256b5d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion webpage/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@
url: 'predict.php',
data: {email: $("#email").val()},
complete: function (response){
$("#out").html(response.responseText);
r = $.parseJSON(response)
bow = r["bow"]
if bow[1] == 0:
answer = "Unfortuantely you are not likely to get a response :(";
else:
answer = "Nice - you'll likely be getting a response";
$("#out").html(answer);
},
error: function(){
$("#out").html("Whoops! There seems to be an error, try again!")
Expand Down

0 comments on commit 5256b5d

Please sign in to comment.