diff options
| author | Jules Laplace <jules@okfoc.us> | 2013-03-05 03:30:21 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2013-03-05 03:30:21 -0500 |
| commit | 44f85b846574bdf7f7e21a3e925889548221c17c (patch) | |
| tree | 2365bdafe5e0d47f8da1eb67c125edfd3c388f85 /public | |
| parent | 890bc8ded144a0555d3c947ef377295bcdbdc724 (diff) | |
+=
Diffstat (limited to 'public')
| -rw-r--r-- | public/js/draw.js | 1 | ||||
| -rw-r--r-- | public/js/game.js | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/public/js/draw.js b/public/js/draw.js index b969c1e..9116f78 100644 --- a/public/js/draw.js +++ b/public/js/draw.js @@ -50,6 +50,7 @@ $(function(){ console.log("saved"); }); clearWorkspace(); + $("#drawing").hide(); }); function draw(start, end){ diff --git a/public/js/game.js b/public/js/game.js index 0b90328..598e3c6 100644 --- a/public/js/game.js +++ b/public/js/game.js @@ -162,7 +162,8 @@ UI[ State.WINNING ] = new function(){ for (var i in data.scores) { scores.push( [data.scores[i], i] ); } - var topthree = scores.sort(function(){ a[0] - b[0] }).splice(0, 3); + var topthree = scores.sort(function(a,b){ a[0] - b[0] }).splice(0, 3); + console.log(data); for (var i in topthree) { var score = topthree[i][0] var nick = topthree[i][1] |
