put the current player's pieces in front to make dragging easier
This commit is contained in:
parent
a0daab9e5b
commit
6c17ea3bf7
|
|
@ -348,6 +348,14 @@ button:disabled .silhouette {
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#cb_board.cb-lt-turn .cb-lt-piece, #cb_board.cb-dk-turn .cb-dk-piece {
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
#cb_board.cb-lt-turn .cb-dk-piece, #cb_board.cb-dk-turn .cb-lt-piece {
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
#cb_peers {
|
#cb_peers {
|
||||||
color: #cccccc;
|
color: #cccccc;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -336,6 +336,12 @@ $(function (){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (game.player === PS.LIGHT) {
|
||||||
|
$('#cb_board').removeClass('cb-dk-turn').addClass('cb-lt-turn');
|
||||||
|
} else {
|
||||||
|
$('#cb_board').removeClass('cb-lt-turn').addClass('cb-dk-turn');
|
||||||
|
}
|
||||||
|
|
||||||
const liveView = !game.canRedo;
|
const liveView = !game.canRedo;
|
||||||
const playing = game.status === PS.PLAYING;
|
const playing = game.status === PS.PLAYING;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue