-
Notifications
You must be signed in to change notification settings - Fork 6
/
wch08ak.html
102 lines (76 loc) · 3.31 KB
/
wch08ak.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
<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>2008 World Chess Championship: Anand - Kramnik</title>
<link href="wch08ak.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("wch08ak.pgn"); // if set, this has precedence over the inline PGN in the HTML file
SetImagePath("uscf/40"); // use "" path if images are in the same folder as this javascript file
SetImageType("png");
SetHighlightOption(true); // true or false
SetGameSelectorOptions(" select a game from the 2008 wch...", true, 0, 0, 0, 10, 10, 3, 10); // (head, num, chEvent, chSite, chRound, chWhite, chBlack, chResult, chDate);
SetCommentsIntoMoveText(true);
SetCommentsOnSeparateLines(true);
SetAutoplayDelay(5000); // milliseconds
SetAutostartAutoplay(false);
SetAutoplayNextGame(false); // if set, move to the next game at the end of the current game during autoplay
SetInitialGame(3); // 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(28,false); // halfmove number to be shown at load, 0 (default) for start position; values (keep the quotes) of "start", "end", "random" and "comment" (go to first comment) are also accepted. Second parameter if true applies the setting to every selected game instead of startup only (default)
SetShortcutKeysEnabled(true);
</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: left;">
2008 World Chess Championship<br>
Anand - Kramnik
</div>
<p></p>
<table width=100% cellspacing=10>
<tr valign=top>
<td width=442px align=center>
<table cellspacing=0 cellpadding=0 border=1 style="border-style: solid; border-color: Wheat; border-width: 10px; -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px; background-color: Wheat;"><tr><td>
<div id="GameSelector"></div>
<div id="GameBoard"></div>
<div id="GameButtons"></div>
</td></tr></table>
</td>
<td>
Event: <b><span style="white-space: nowrap;" id="GameEvent"></span></b>
<br>
Site: <b><span style="white-space: nowrap;" id="GameSite"></span></b>
<br>
Round: <b><span id="GameRound"></span></b>
<br>
Date: <b><span id="GameDate"></span></b>
<p></p>
White: <b><span style="white-space: nowrap;" id="GameWhite"></span></b>
<br>
Black: <b><span style="white-space: nowrap;" id="GameBlack"></span></b>
<br>
Result: <b><span id="GameResult"></span></b>
<p></p>
Side to move: <b><span id="GameSideToMove"></span></b>
<br>
Last move: <b><span id="GameLastMove"></span></b>
<br>
Next move: <b><span id="GameNextMove"></span></b>
<p></p>
Move comment:<br><b><span id="GameLastComment"></span></b>
</td>
</tr>
</table>
<br>
<div style="font-size: 80%; line-height: 1.3em;" id="GameText"></div>
</body>
</html>