hook no clock style

This commit is contained in:
Thibault Duplessis 2013-06-07 12:48:25 +02:00
parent 1e72d42efe
commit 5250a53685
3 changed files with 7 additions and 4 deletions

View file

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

View file

@ -2114,7 +2114,6 @@ var lichess_sri = Math.random().toString(36).substring(5); // 8 chars
hook.action = hook.uid == lichess_sri ? "cancel" : "join";
if (hook.emin && hook.action == "join" && (myElo < parseInt(hook.emin) || myElo > parseInt(hook.emax))) return "";
var html = '<div id="' + hook.id + '" class="hook ' + hook.action + '">';
// html += '<td class="color"><span class="' + hook.color + '"></span></td>';
var isEngine = hook.engine && hook.action == 'join';
var userClass = isEngine ? "engine" : "";
if (hook.elo) {
@ -2129,11 +2128,11 @@ var lichess_sri = Math.random().toString(36).substring(5); // 8 chars
} else {
var mode = "";
}
if (hook.clock && hook.clock != "Unlimited") {
if (hook.clock) {
var clock = hook.clock.replace(/\s/g, '').replace(/\+/, '<span>+</span>');
html += '<span class="clock">' + clock + '</span>';
} else {
html += '<span class="clock">∞</span>';
html += '<span class="clock nope">∞</span>';
}
html += '<span class="mode">' + mode + '</span>';
if (hook.action == "cancel") {

View file

@ -1425,6 +1425,10 @@ div.game_config div.color_submits button.random span {
#hooks .clock > span {
color: #909090;
}
#hooks .clock.nope {
font-size: 2.3em;
line-height: 20px;
}
#hooks .mode {
margin-top: 40px;
}