1<!DOCTYPE HTML> 2<html> 3 4<!-- 5 pgn4web javascript chessboard 6 copyright (C) 2009-2014 Paolo Casaschi 7 see README file and http://pgn4web.casaschi.net 8 for credits, license and more details 9--> 10 11<head> 12 13<title>London Chess Classic 2009 round 5</title> 14 15<link href="lon09r5.css" type="text/css" rel="stylesheet" /> 16 17<link rel="icon" sizes="16x16" href="pawn.ico" /> 18 19<script src="pgn4web.js" type="text/javascript"></script> 20 21<script type="text/javascript"> 22 "use strict"; 23 24 SetPgnUrl("lon09r5.pgn"); 25 SetImagePath("images/uscf/34"); 26 SetImageType("png"); 27 SetGameSelectorOptions(null, false, 0, 8, 0, 0, 0, 0, 10); // (head, num, chEvent, chSite, chRound, chWhite, chBlack, chResult, chDate); 28 SetCommentsIntoMoveText(false); 29 SetAutoplayDelay(2500); // milliseconds 30 SetAutostartAutoplay(true); 31 SetAutoplayNextGame(true); 32 SetInitialGame(2); 33 SetInitialHalfmove(1, true); 34 SetShortcutKeysEnabled(true); 35 36// Example below of customization of the shortcut squares 37 38clearShortcutSquares("BG", "3"); 39clearShortcutSquares("BCDEFGH", "4567"); 40clearShortcutSquares("A", "456"); 41 42var warnedFlipBoard = false; 43function FlipBoard() { if (!warnedFlipBoard) { myAlert("warning: flip board functionality disabled", false, true); warnedFlipBoard = true; } } 44 45var oldCurrentGame; 46function customFunctionOnPgnGameLoad() { 47 if (typeof(oldCurrentGame) != "undefined") { 48 document.getElementById("game" + oldCurrentGame).className = "gamelist"; 49 } 50 oldCurrentGame = currentGame; 51 document.getElementById("game" + currentGame).className = "gamelistselected"; 52 SetAutoPlay(true); 53} 54 55</script> 56 57</head> 58 59<body> 60 61 62<!-- paste your PGN below and make sure you dont specify an external source with SetPgnUrl() --> 63<form style="display: none;"><textarea style="display: none;" id="pgnText"> 64 65</textarea></form> 66<!-- paste your PGN above and make sure you dont specify an external source with SetPgnUrl() --> 67 68<table width="100%" cellpadding="10" cellspacing="20" border="0"> 69 70 <tr> 71 <td valign="top" rowspan="2" width="398"> 72 <div id="GameBoard"></div> 73 <div style="height: 40px;"> </div> 74 <div id="GameButtons"></div> 75 </td> 76 <td align="left" valign="top"> 77 <div style="width: 230px;"> 78 <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> 79 <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> 80 <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> 81 <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> 82 </div> 83 </td> 84 </tr> 85 86 <tr> 87 <td align="left" valign="bottom"> 88 <div style="text-align:justify;"><span id="GameText"></span> <span id="GameResult"></span></div> 89 <div> </div> 90 <div style="text-align: right; white-space: nowrap;">London Chess Classic 2009 - round 5</div> 91 </td> 92 </tr> 93 94</table> 95 96</body> 97 98</html> 99