-
Notifications
You must be signed in to change notification settings - Fork 6
/
paolo-chess-games.html
85 lines (62 loc) · 3.13 KB
/
paolo-chess-games.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
<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>Paolo's chess games</title>
<link href="paolo-chess-games.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("paolo-chess-games.pgn"); // if set, this has precedence over the inline PGN in the HTML file
SetImagePath("alpha/32"); // use "" path if images are in the same folder as this javascript file
SetImageType("png");
SetHighlightOption(true); // true or false
SetGameSelectorOptions("Select from Paolo's games...", false, 0, 0, 0, 15, 15, 0, 10); // (head, num, chEvent, chSite, chRound, chWhite, chBlack, chResult, chDate);
SetCommentsIntoMoveText(false);
SetCommentsOnSeparateLines(false);
SetAutoplayDelay(2000); // milliseconds
// SetAutostartAutoplay(false);
// SetAutoplayNextGame(false); // if set, move to the next game at the end of the current game during autoplay
// SetInitialGame(1); // 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("comment",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(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 cellpadding=15 border=0>
<tr>
<td align=center valign=top>
<div id="GameSelector"></div>
</td>
<td valign=top>
<a href="javascript:MoveToPrevComment();" onfocus="this.blur()"><div id="GameDate" style="font-size: 120%; font-weight: bold; text-align: right;"></div></a>
</td>
</tr>
<tr>
<td align=center valign=top>
<div id="GameBoard"></div>
<div style="margin-top: 30px;" id="GameButtons"></div>
</td>
<td valign=top>
<div style="margin-left: 10px;">
<div style="font-size: 150%; font-weight: bold; text-align: left; margin-bottom: 30px;">
<a href="javascript:searchPgnGame(gameWhite[currentGame]);" onfocus="this.blur()"><span style="white-space: nowrap;" id="GameWhite"></span></a>
<span style="white-space: nowrap;"> - </span>
<a href="javascript:searchPgnGame(gameBlack[currentGame]);" onfocus="this.blur()"><span style="white-space: nowrap;" id="GameBlack"></span></a>
</div>
<div style="text-align: justify" id="GameText"></div>
<a href="javascript:MoveToNextComment();" onfocus="this.blur()"><div id="GameResult" style="font-size: 120%; font-weight: bold; text-align: right; margin-top: 30px;"></div></a>
</div>
</td>
</tr>
</table>
</body>
</html>