tweak online player counter

This commit is contained in:
Thibault Duplessis 2013-06-05 22:00:44 +02:00
parent ee07d61e61
commit 6d6668ce90
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ import controllers.routes
trait AssetHelper {
val assetVersion = 36
val assetVersion = 37
def cssTag(name: String) = css("stylesheets/" + name)

View file

@ -261,7 +261,7 @@ var lichess_sri = Math.random().toString(36).substring(5); // 8 chars
n: function(e) {
var $tag = $('#nb_connected_players > strong');
if ($tag.length && e) {
var prev = parseInt($tag.text()) || Math.min(0, (e - 10));
var prev = parseInt($tag.text()) || Math.max(0, (e - 10));
var interv = lichess.socket.pingInterval() / 4;
_.each([0, 1, 2, 3], function(it) {
setTimeout(function() {