hook no clock style
This commit is contained in:
parent
1e72d42efe
commit
5250a53685
|
@ -7,7 +7,7 @@ import controllers.routes
|
||||||
|
|
||||||
trait AssetHelper {
|
trait AssetHelper {
|
||||||
|
|
||||||
val assetVersion = 43
|
val assetVersion = 44
|
||||||
|
|
||||||
def cssTag(name: String) = css("stylesheets/" + name)
|
def cssTag(name: String) = css("stylesheets/" + name)
|
||||||
|
|
||||||
|
|
|
@ -2114,7 +2114,6 @@ var lichess_sri = Math.random().toString(36).substring(5); // 8 chars
|
||||||
hook.action = hook.uid == lichess_sri ? "cancel" : "join";
|
hook.action = hook.uid == lichess_sri ? "cancel" : "join";
|
||||||
if (hook.emin && hook.action == "join" && (myElo < parseInt(hook.emin) || myElo > parseInt(hook.emax))) return "";
|
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 + '">';
|
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 isEngine = hook.engine && hook.action == 'join';
|
||||||
var userClass = isEngine ? "engine" : "";
|
var userClass = isEngine ? "engine" : "";
|
||||||
if (hook.elo) {
|
if (hook.elo) {
|
||||||
|
@ -2129,11 +2128,11 @@ var lichess_sri = Math.random().toString(36).substring(5); // 8 chars
|
||||||
} else {
|
} else {
|
||||||
var mode = "";
|
var mode = "";
|
||||||
}
|
}
|
||||||
if (hook.clock && hook.clock != "Unlimited") {
|
if (hook.clock) {
|
||||||
var clock = hook.clock.replace(/\s/g, '').replace(/\+/, '<span>+</span>');
|
var clock = hook.clock.replace(/\s/g, '').replace(/\+/, '<span>+</span>');
|
||||||
html += '<span class="clock">' + clock + '</span>';
|
html += '<span class="clock">' + clock + '</span>';
|
||||||
} else {
|
} else {
|
||||||
html += '<span class="clock">∞</span>';
|
html += '<span class="clock nope">∞</span>';
|
||||||
}
|
}
|
||||||
html += '<span class="mode">' + mode + '</span>';
|
html += '<span class="mode">' + mode + '</span>';
|
||||||
if (hook.action == "cancel") {
|
if (hook.action == "cancel") {
|
||||||
|
|
|
@ -1425,6 +1425,10 @@ div.game_config div.color_submits button.random span {
|
||||||
#hooks .clock > span {
|
#hooks .clock > span {
|
||||||
color: #909090;
|
color: #909090;
|
||||||
}
|
}
|
||||||
|
#hooks .clock.nope {
|
||||||
|
font-size: 2.3em;
|
||||||
|
line-height: 20px;
|
||||||
|
}
|
||||||
#hooks .mode {
|
#hooks .mode {
|
||||||
margin-top: 40px;
|
margin-top: 40px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue