-
Notifications
You must be signed in to change notification settings - Fork 3
/
lon09r5.html
98 lines (74 loc) · 3.52 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
<!DOCTYPE HTML>
<html>
<!--
pgn4web javascript chessboard
copyright (C) 2009-2014 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" />
<link rel="icon" sizes="16x16" href="pawn.ico" />
<script src="pgn4web.js" type="text/javascript"></script>
<script type="text/javascript">
"use strict";
SetPgnUrl("lon09r5.pgn");
SetImagePath("images/uscf/34");
SetImageType("png");
SetGameSelectorOptions(null, false, 0, 8, 0, 0, 0, 0, 10); // (head, num, chEvent, chSite, chRound, chWhite, chBlack, chResult, chDate);
SetCommentsIntoMoveText(false);
SetAutoplayDelay(2500); // milliseconds
SetAutostartAutoplay(true);
SetAutoplayNextGame(true);
SetInitialGame(2);
SetInitialHalfmove(1, true);
SetShortcutKeysEnabled(true);
// Example below of customization of the shortcut squares
clearShortcutSquares("BG", "3");
clearShortcutSquares("BCDEFGH", "4567");
clearShortcutSquares("A", "456");
var warnedFlipBoard = false;
function FlipBoard() { if (!warnedFlipBoard) { myAlert("warning: flip board functionality disabled", false, true); warnedFlipBoard = true; } }
var oldCurrentGame;
function customFunctionOnPgnGameLoad() {
if (typeof(oldCurrentGame) != "undefined") {
document.getElementById("game" + oldCurrentGame).className = "gamelist";
}
oldCurrentGame = currentGame;
document.getElementById("game" + currentGame).className = "gamelistselected";
SetAutoPlay(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() -->
<table width="100%" cellpadding="10" cellspacing="20" border="0">
<tr>
<td valign="top" rowspan="2" width="398">
<div id="GameBoard"></div>
<div style="height: 40px;"> </div>
<div id="GameButtons"></div>
</td>
<td align="left" valign="top">
<div style="width: 230px;">
<a id="game0" href="javascript:Init(0);" onfocus="this.blur()" class="gamelist"><span style="float: left; padding-left: 5px;">Ni Hua - Carlsen </span><span style="float: right; padding-right: 5px;"> 0-1</span></a>
<a id="game1" href="javascript:Init(1);" onfocus="this.blur()" class="gamelist"><span style="float: left; padding-left: 5px;">Howell - Kramnik </span><span style="float: right; padding-right: 5px;"> 1/2-1/2</span></a>
<a id="game2" href="javascript:Init(2);" onfocus="this.blur()" class="gamelist"><span style="float: left; padding-left: 5px;">Nakamura - McShane </span><span style="float: right; padding-right: 5px;"> 0-1</span></a>
<a id="game3" href="javascript:Init(3);" onfocus="this.blur()" class="gamelist" style="margin-bottom: 0px;"><span style="float: left; padding-left: 5px;">Adams - Short </span><span style="float: right; padding-right: 5px;"> 1/2-1/2</span></a>
</div>
</td>
</tr>
<tr>
<td align="left" valign="bottom">
<div style="text-align:justify;"><span id="GameText"></span> <span id="GameResult"></span></div>
<div> </div>
<div style="text-align: right; white-space: nowrap;">London Chess Classic 2009 - round 5</div>
</td>
</tr>
</table>
</body>
</html>