diff options
| author | Jules Laplace <jules@okfoc.us> | 2013-01-24 18:13:53 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2013-01-24 18:13:53 -0500 |
| commit | f9cdad51d3af697cf5b061c21840970815b57cf0 (patch) | |
| tree | 3705babe8813cdafd93090053f386cd83f62932b | |
| parent | 5fb02fcc216abb44250b8d4a919270eea51174e8 (diff) | |
sorting
| -rw-r--r-- | app.js | 4 | ||||
| -rw-r--r-- | public/stylesheets/style.css | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -137,7 +137,7 @@ function updateTime ( user, now, connected ) { } function getHighScores (callback) { - return User.find({}).sort({ score: 'desc' }).limit(10).exec(callback); + return User.find({}).sort('-count').limit(10).exec(callback); } var io = require("socket.io").listen(server), userCount = 0, users = {}, timeout; @@ -158,7 +158,7 @@ io.sockets.on('connection', function (socket) { }); } socket.emit('scores', { - 'scores': scores.reverse(), + 'scores': scores, 'users': users, 'now': Date.now() }) diff --git a/public/stylesheets/style.css b/public/stylesheets/style.css index 20d3ba1..aa6d16e 100644 --- a/public/stylesheets/style.css +++ b/public/stylesheets/style.css @@ -426,7 +426,7 @@ top:0; } .cursor.idle div { color: transparent; - text-shadow: none; + text-shadow: 0 0 2px #000; } ol { |
