Re: How to post chess games
Posted: Mon Mar 11, 2013 12:06 pm
I trying to get familiar with pgn4web for off-line showing search results in a PGN file. So far I got the mini-template to work, example at: http://www.top-5000.nl/pgn4web/output.htm
But I am much more in love with the London template.
As I noticed the author of pgn4web posts here (thanks for cool sofware BTW) it seems to me the most logical place to post my question how to make the needed script changes to get the London outlook (or something even better) to work.
A second question is how to use the initial halfmove number actual halfmove number when the setting above is custom number as described on the Board Generator in order that a game can start from that position.
Currently I am using:
But I am much more in love with the London template.
As I noticed the author of pgn4web posts here (thanks for cool sofware BTW) it seems to me the most logical place to post my question how to make the needed script changes to get the London outlook (or something even better) to work.
A second question is how to use the initial halfmove number actual halfmove number when the setting above is custom number as described on the Board Generator in order that a game can start from that position.
Currently I am using:
Code: Select all
<link href="mini.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">
SetImagePath ("alpha/24");
SetImageType("png");
SetGameSelectorOptions("Select a game...", false, 0, 8, 0, 0, 0, 0, 10); // (head, num, chEvent, chSite, chRound, chWhite, chBlack, chResult, chDate);
SetCommentsOnSeparateLines(true);
SetAutoplayDelay(2500); // milliseconds
SetAutostartAutoplay(true);
SetAutoplayNextGame(true);
SetInitialGame("first");
SetShortcutKeysEnabled(false);
</script>
Code: Select all
<form style="display: none;"><textarea style="display: none;" id="pgnText">
[Event "PCA/Intel-GP"]
[Site "New York"]
[Date "1995.??.??"]
[Round "3"]
[White "Kramnik, Vladimir"]
[Black "Kasparov, Gary"]
[Result "1/2-1/2"]
[WhiteElo "2715"]
[BlackElo "2805"]
[ECO "C42"]
1.e4 e5 2.Nf3 Nf6 3.Nxe5 d6 4.Nf3 Nxe4 5.Nc3 Nxc3 6.dxc3 Be7 7.Be3 O-O 8.Qd2 Nc6
9.O-O-O Ne5 10.Nd4 c5 11.Nb5 Qa5 12.a3 Be6 13.Nxd6 Qb6 14.f4 Ng4 15.f5 Qxd6
16.Qxd6 Bx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IA Rapid Match"]
[Site "Batumi GEO"]
[Date "2001.09.17"]
[Round "3"]
[White "Kasparov,G"]
[Black "Dao Thien Hai"]
[Result "1-0"]
[WhiteElo "2838"]
[BlackElo "2572"]
[ECO "C42"]
1.e4 e5 2.Nf3 Nf6 3.Nxe5 d6 4.Nf3 Nxe4 5.d4 d5 6.Bd3 Nc6 7.O-O Be7 8.c4 Nb4
9.Be2 O-O 10.a3 Nc6 11.cxd5 Qxd5 12.Nc3 Nxc3 13.bxc3 Bf6 14.Bf4 Bf5 15.Re1 Rac8
16.Nd2 Na5 17.Bf3 Qd7 18.Ne4 Be7 19.Ng3 Bg6 20.Bg4 f5 21.Bf3 Bd6 22.Be5 Kh8
23.h4 Bf7 24.h5 Kg8 25.Qc2 Bc4 26.Rab1 b6 27.Qc1 Rce8 28.Qf4 Bxe5 29.Rxe5 Rxe5
30.dxe5 Be6 31.h6 g6 32.Ne2 c5 33.Qg3 Nc4 34.Nf4 Nxe5 35.Rd1 Nxf3+ 36.Qxf3 Qf7
37.Qc6 Bc8 38.Re1 g5 39.Nh3 Bb7 40.Qd6 Qf6 41.Re6 Qxc3 42.Re7 Bc8 43.Rg7+ Qxg7
44.hxg7 Kxg7 45.Nxg5 1-0
[Event "Wch U16"]
[Site "Wattignies"]
[Date "1976.??.??"]
[Round "?"]
[White "Kasparov, Gary"]
[Black "Cramling, Pia"]
[Result "1/2-1/2"]
[WhiteElo ""]
[BlackElo ""]
[ECO "C42"]
1.e4 e5 2.Nf3 Nf6 3.Nxe5 d6 4.Nf3 Nxe4 5.Qe2 Qe7 6.d3 Nf6 7.Bg5 Nbd7 8.Nc3 Qxe2+
9.Bxe2 h6 10.Bh4 g6 11.d4 a6 12.O-O-O Bg7 13.Rhe1 O-O 14.Bc4 b5 15.Bd5 Rb8
16.Bc6 Nb6 17.a3 Bb7 18.Bxb7 Rxb7 19.Bxf6 1/2-1/2
</textarea></form>
<center>
<b><span id="GameWhite"></span> - <span id="GameBlack"></span> <span id="GameResult"></span></b>
<p></p>
<div id="GameNextMove"></div>
<div id="GameEvent"></div> <div id="GameSite"></div> <div id="GameDate"></div>
<div id="GameBoard"></div><p></p>
<div id="GameButtons"></div><p></p>
<div id="GameSelector"></div>
</center>