';
var isEngine = hook.engine && hook.action == 'join';
var userClass = isEngine ? "engine" : "";
if (hook.elo) {
- html += '
' + hook.username.substr(0, 14) + '';
+ html += '
' + hook.username.substr(0, 14) + '';
html += '
' + hook.elo + '';
html += isEngine ? '
' : '';
} else {
@@ -2185,6 +2212,11 @@ var lichess_sri = Math.random().toString(36).substring(5); // 8 chars
return $hook;
}
+ $wrap.on('mouseenter', '.plot, div.hook', function() {
+ $wrap.find('.' + $(this).data('id')).addClass('hover');
+ }).on('mouseleave', '.plot, div.hook', function(e) {
+ $wrap.find('.' + $(this).data('id')).removeClass('hover');
+ });
$hooks.on('click', 'div.hook a.opponent', function(e) {
e.stopPropagation();
return true;
diff --git a/public/stylesheets/board.css b/public/stylesheets/board.css
index a696c4b86b..af908ba9d1 100644
--- a/public/stylesheets/board.css
+++ b/public/stylesheets/board.css
@@ -445,10 +445,6 @@ div.lichess_table a.lichess_button.active {
box-shadow: 0 0 9px #d85000;
border: 1px solid #d85000;
}
-#hooks div.hook:hover,
-#hooks_wrap > a.no_hook:hover {
- box-shadow: 0 0 9px #d85000;
-}
div.lichess_current_player {
height: 64px;
diff --git a/public/stylesheets/common.css b/public/stylesheets/common.css
index 110eb51635..cf32714461 100644
--- a/public/stylesheets/common.css
+++ b/public/stylesheets/common.css
@@ -1343,6 +1343,29 @@ div.game_config div.color_submits button.random span {
height: 512px;
position: relative;
}
+#hooks_chart {
+ position: absolute;
+ top: 128px;
+ left: 128px;
+ width: 256px;
+ height: 256px;
+ background: rgba(255, 255, 255, 0.4);
+}
+#hooks_chart .canvas {
+ position: relative;
+ width: 240px;
+ height: 240px;
+ margin: 8px;
+}
+#hooks_chart .plot {
+ position: absolute;
+ width: 13px;
+ height: 13px;
+ background: #d0d0d0;
+ border-radius: 16px;
+ border: 3px solid #666;
+ cursor: pointer;
+}
#hooks_wrap > a.no_hook {
position: absolute;
top: 192px;
@@ -1358,7 +1381,6 @@ div.game_config div.color_submits button.random span {
text-align: center;
box-shadow:0 0 5px #333;
text-decoration: none;
- opacity: 0;
}
#hooks > div {
position: absolute;
@@ -1383,8 +1405,14 @@ div.game_config div.color_submits button.random span {
#hooks div.hook.cancel {
background-position: -4px -132px;
}
-#hooks div.hook:hover {
- background-color: #f0f0f0;
+#hooks_chart .plot.hover,
+#hooks div.hook.hover {
+ background-color: #f6f6f6;
+}
+#hooks_chart .plot.hover,
+#hooks div.hook.hover,
+#hooks_wrap > a.no_hook:hover {
+ box-shadow: 0 0 9px #d85000;
}
#hooks div.hook a {
color: #444;
diff --git a/todo b/todo
index 867287de36..2b5b98e3c6 100644
--- a/todo
+++ b/todo
@@ -60,6 +60,8 @@ players world map
account closed accounts in team counts
IE10 no sound toggle http://en.lichess.org/forum/lichess-feedback/notification-of-game-creation#3
filter current games for watching http://en.lichess.org/forum/lichess-feedback/viewing-current-games-suggestion#2
+declined challenge still appears
+no time data http://en.lichess.org/x9tls3mh/stats
---