From 5213a75d1d4692bb7244f0116289ef17e15320f3 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 5 Mar 2013 03:37:25 -0500 Subject: add underscore.js --- public/index.html | 2 ++ public/js/game.js | 1 + server.js | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index 2cd95d4..7e4a7ac 100644 --- a/public/index.html +++ b/public/index.html @@ -6,6 +6,8 @@ + + diff --git a/public/js/game.js b/public/js/game.js index 598e3c6..cd88014 100644 --- a/public/js/game.js +++ b/public/js/game.js @@ -162,6 +162,7 @@ UI[ State.WINNING ] = new function(){ for (var i in data.scores) { scores.push( [data.scores[i], i] ); } + console.log(scores); var topthree = scores.sort(function(a,b){ a[0] - b[0] }).splice(0, 3); console.log(data); for (var i in topthree) { diff --git a/server.js b/server.js index 9d26aa8..78bff7f 100644 --- a/server.js +++ b/server.js @@ -72,7 +72,7 @@ var State = { var Delay = { DRAWING: 60 * 1000, VOTING: 30 * 1000, - WINNING: 30 * 1000, + WINNING: 120 * 1000, } function Channel() { this.state = State.WAITING; -- cgit v1.2.3-70-g09d2