Show all the game text, not only PGN notation.
This commit is contained in:
parent
2173eef556
commit
c2bf156e20
@ -16,18 +16,6 @@ function customFunctionOnPgnGameLoad() {
|
|||||||
}
|
}
|
||||||
function customFunctionOnMove() {
|
function customFunctionOnMove() {
|
||||||
refreshButtonset();
|
refreshButtonset();
|
||||||
|
|
||||||
/* Mark commented moves */
|
|
||||||
for (var Ply = 1; Ply <= PlyNumberVar[0]; Ply++) {
|
|
||||||
if (strippedMoveComment(Ply, 0, true))
|
|
||||||
$('#Var0Mv' + Ply).addClass('bg-info');
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Show move comment */
|
|
||||||
if (CurrentVar == 0 && (theObj = document.getElementById("GameMoveComment"))) {
|
|
||||||
theObj.innerHTML = '<span class="comment">' +
|
|
||||||
strippedMoveComment(CurrentPly, 0, true) + '</span>';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
function refreshButtonset() {
|
function refreshButtonset() {
|
||||||
$('#GameButtons input').addClass('btn btn-default');
|
$('#GameButtons input').addClass('btn btn-default');
|
||||||
|
@ -39,41 +39,19 @@ body, html { height: 100%; }
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* PGN notation of chess game */
|
/* Game text */
|
||||||
|
|
||||||
@tableBorder: 1px solid #ddd;
|
|
||||||
|
|
||||||
#GameText {
|
#GameText {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: @boardSize + 10px;
|
left: @boardSize + 10px;
|
||||||
|
right: 0;
|
||||||
|
|
||||||
display: block;
|
display: block;
|
||||||
width: 170px;
|
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
#ShowPgnText {
|
|
||||||
> * { float: left; }
|
|
||||||
> *:nth-child(-n+4) { border-top: @tableBorder; }
|
|
||||||
> *:nth-child(5n+1) { border-left: @tableBorder; }
|
|
||||||
.move {
|
|
||||||
border-bottom: @tableBorder;
|
|
||||||
border-right: @tableBorder;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
span.move { width: 40px; }
|
|
||||||
a.move { width: 50px; }
|
|
||||||
}
|
|
||||||
.moveOn, .variationOn {
|
.moveOn, .variationOn {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
.bg-variant(@brand-primary);
|
.bg-variant(@brand-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Comment of a chess-game move */
|
|
||||||
|
|
||||||
#GameMoveComment .comment:not(:first-child):before {
|
|
||||||
content: '\a';
|
|
||||||
white-space: pre;
|
|
||||||
}
|
|
||||||
|
@ -21,10 +21,6 @@ layout: default
|
|||||||
|
|
||||||
<div id="GameText"></div>
|
<div id="GameText"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p></p>
|
|
||||||
|
|
||||||
<div id="GameMoveComment"></div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- pgn4web JavaScript -->
|
<!-- pgn4web JavaScript -->
|
||||||
@ -37,6 +33,6 @@ layout: default
|
|||||||
SetImagePath("/assets/img/chesspieces/wikipedia");
|
SetImagePath("/assets/img/chesspieces/wikipedia");
|
||||||
SetImageType("png");
|
SetImageType("png");
|
||||||
SetGameSelectorOptions("Выбрать партию ...", false, 0, 0, 0, 15, 15, 0, 10); // (head, num, chEvent, chSite, chRound, chWhite, chBlack, chResult, chDate);
|
SetGameSelectorOptions("Выбрать партию ...", false, 0, 0, 0, 15, 15, 0, 10); // (head, num, chEvent, chSite, chRound, chWhite, chBlack, chResult, chDate);
|
||||||
SetCommentsIntoMoveText(false);
|
SetCommentsOnSeparateLines(true);
|
||||||
SetShortcutKeysEnabled(true);
|
SetShortcutKeysEnabled(true);
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user