forked from ornicar/pgn4web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtwic765.html
123 lines (94 loc) · 3.77 KB
/
twic765.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<html>
<!--
pgn4web javascript chessboard
copyright (C) 2009, 2010 Paolo Casaschi
see README file and http://pgn4web.casaschi.net
for credits, license and more details
-->
<head>
<title>The Week In Chess #765</title>
<link href="twic765.css" type="text/css" rel="stylesheet" />
<link rel="shortcut icon" href="pawn.ico" />
<script src="pgn4web.js" type="text/javascript"></script>
<script type="text/javascript">
SetPgnUrl("twic765.pgn"); // if set, this has precedence over the inline PGN in the HTML file
SetImagePath("merida/36"); // use "" path if images are in the same folder as this javascript file
SetImageType("png");
SetHighlightOption(true); // true or false
SetGameSelectorOptions(" Event Site Rd White Black Res Date", true, 12, 12, 2, 15, 15, 3, 10); // (head, num, chEvent, chSite, chRound, chWhite, chBlack, chResult, chDate);
SetCommentsIntoMoveText(false);
SetCommentsOnSeparateLines(true);
SetAutoplayDelay(1000); // milliseconds
SetAutostartAutoplay(false);
SetAutoplayNextGame(false); // if set, move to the next game at the end of the current game during autoplay
SetInitialGame(0); // number of game to be shown at load, from 1 (default); values (keep the quotes) of "first", "last", "random" are accepted; other string values assumed as PGN search string
SetInitialHalfmove(-1); // halfmove number to be shown at load, 0 for start position, -1 for random halfmove
SetShortcutKeysEnabled(true);
function customFunctionOnPgnTextLoad() { document.getElementById('numGm').innerHTML = numberOfGames; }
function customFunctionOnPgnGameLoad() {
document.getElementById('currGm').innerHTML = currentGame+1;
document.getElementById('numPly').innerHTML = PlyNumber;
}
function customFunctionOnMove() { document.getElementById('currPly').innerHTML = CurrentPly; }
</script>
</head>
<body>
<!-- paste your PGN below and make sure you dont specify an external source with SetPgnUrl() -->
<form style="display: none;"><textarea style="display: none;" id="pgnText">
</textarea></form>
<!-- paste your PGN above and make sure you dont specify an external source with SetPgnUrl() -->
<div style="font-weight: bold; font-size: 200%; text-align: center;">
<br>
The Week In Chess #765
</div>
<p></p>
<table cellspacing=10 cellpadding=5>
<tr valign=bottom>
<td colspan=3>
<div class="label" style="text-align: right; font-size: 85%;">
ply:<span id=currPly>0</span>/<span id=numPly>0</span>
game:<span id=currGm>0</span>/<span id=numGm>0</span>
</div>
<div id="GameSelector"></div>
<div id="GameSearch"></div>
</td>
</tr>
<tr valign=top>
<td width=30% style="text-align: left; font-size: 85%">
<span class="label">Date:</span> <span id="GameDate"></span>
<br>
<span class="label">Site:</span> <span id="GameSite"></span>
<p></p>
<span class="label">Event:</span> <span id="GameEvent"></span>
<br>
<span class="label">Round:</span> <span id="GameRound"></span>
<p></p>
<span class="label">White:</span> <span id="GameWhite"></span>
<br>
<span class="label">Black:</span> <span id="GameBlack"></span>
<p></p>
<span class="label">Result:</span> <span id="GameResult"></span>
<p></p>
<span class="label">Side to move:</span> <span id="GameSideToMove"></span>
<br>
<span class="label">Last move:</span> <span class="move"><span id="GameLastMove"></span></span>
<br>
<span class="label">Next move:</span> <span class="move"><span id="GameNextMove"></span></span>
<!--
<p></p>
<span class="label">Move comment:</span><br><span id="GameLastComment"></span>
-->
</td>
<td align="center" width=366px>
<div id="GameBoard"></div>
<p></p>
<div id="GameButtons"></div>
</td>
<td style="text-align: justify; font-size: 85%" width=30%>
<span id="GameText"></span>
</td>
</tr>
</table>
<br>
</body>
</html>