-
Notifications
You must be signed in to change notification settings - Fork 6
/
lon09r5.html
119 lines (93 loc) · 5.07 KB
/
lon09r5.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
<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>London Chess Classic 2009 round 5</title>
<link href="lon09r5.css" type="text/css" rel="stylesheet" />
<style type="text/css">
a.gamelist:link, a.gamelist:visited, a.gamelist:hover, a.gamelist:active,
a.gamelistselected:link, a.gamelistselected:visited, a.gamelistselected:hover, a.gamelistselected:active
{ color: black; font-weight: bold; font-size: 90%; line-height: 120%; text-decoration: none; outline: none; white-space:pre;}
a.gamelist:link, a.gamelist:visited, a.gamelist:hover, a.gamelist:active
{ }
</style>
<link rel="shortcut icon" href="pawn.ico" />
<script src="pgn4web.js" type="text/javascript"></script>
<script type="text/javascript">
SetPgnUrl("lon09r5.pgn"); // if set, this has precedence over the inline PGN below
SetImagePath("alpha/36"); // use "" path if images are in the same folder as this javascript file
SetImageType("png");
// SetHighlightOption(true); // true or false
SetGameSelectorOptions("Select a KK game...", false, 0, 8, 0, 0, 0, 0, 10); // (head, num, chEvent, chSite, chRound, chWhite, chBlack, chResult, chDate);
SetCommentsIntoMoveText(false);
// SetCommentsOnSeparateLines(false);
SetAutoplayDelay(2500); // milliseconds
SetAutostartAutoplay(true);
// SetAutoplayNextGame(false); // if set, move to the next game at the end of the current game during autoplay
SetInitialGame(2); // 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,true); // 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(false);
// Example below of customization of the shortcut squares, in this case
// disabling switching games with the usual third/fourth/sixth/seventh row shortcut
// squares (that would break the game highlighting feature of the page)
cols2clear="ABCDEFGH";
rows2clear="34567";
for (c=0; c<cols2clear.length; c++) {
for (r=0; r<rows2clear.length; r++) {
boardShortcut(cols2clear.charAt(c)+rows2clear.charAt(r), "", function(){});
}
}
</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() -->
<table width=100% cellpadding=10 cellspacing=20 border=0>
<tr>
<td colspan=2 align=right valign=top>
<div style="text-align:right; font-size: 140%; font-weight: bold">London Chess Classic 2009 round 5</div>
</td>
</tr>
<tr>
<td rowspan=2 valign=top>
<div id="GameBoard"></div>
</td>
<td align=left valign=top>
<div style="text-align:left;">
<div style="height: 10px;"></div>
<a id="game1" href="javascript:document.getElementById('game'+currentGame).className='gamelist';document.getElementById('game1').className='gamelistselected moveOn';Init(1);SetAutoPlay(true);" onfocus="this.blur()" class="gamelistselected moveOn"> David Howell - Vladimir Kramnik 1/2-1/2 </a>
<div style="height: 10px;"></div>
<a id="game2" href="javascript:document.getElementById('game'+currentGame).className='gamelist';document.getElementById('game2').className='gamelistselected moveOn';Init(2);SetAutoPlay(true);" onfocus="this.blur()" class="gamelist"> Hikaru Nakamura - Luke McShane 0-1 </a>
<div style="height: 10px;"></div>
<a id="game3" href="javascript:document.getElementById('game'+currentGame).className='gamelist';document.getElementById('game3').className='gamelistselected moveOn';Init(3);SetAutoPlay(true);" onfocus="this.blur()" class="gamelist"> Michael Adams - Nigel Short 1/2-1/2 </a>
<div style="height: 10px;"></div>
<a id="game0" href="javascript:document.getElementById('game'+currentGame).className='gamelist';document.getElementById('game0').className='gamelistselected moveOn';Init(0);SetAutoPlay(true);" onfocus="this.blur()" class="gamelist"> Hua Ni - Magnus Carlsen 0-1 </a>
<div style="height: 10px;"></div>
</div>
</td>
</tr>
<tr>
<td valign=bottom>
<div style="text-align:justify; font-size: 75%;">
<div style="height: 10px;"></div>
<span id="GameText"></span>
<div style="height: 10px;"></div>
<span id="GameResult"></span>
<div style="height: 10px;"></div>
</div>
</td>
</tr>
<tr>
<td colspan=2 align=left valign=top>
<div id="GameButtons"></div>
</td>
</tr>
</table>
</body>
</html>