Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
55 lines (46 sloc) 2.18 KB
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<title>EidoGo Advanced Example</title>
<!-- International support -->
<!-- <script type="text/javascript" src="player/i18n/XXX.js"></script> -->
<script type="text/javascript" src="player/js/all.compressed.js"></script>
<!-- Uncomment the following to work with the original source. -->
<!-- <script type="text/javascript" src="player/js/lang.js"></script>
<script type="text/javascript" src="player/js/eidogo.js"></script>
<script type="text/javascript" src="player/js/util.js"></script>
<script type="text/javascript" src="player/i18n/en.js"></script>
<script type="text/javascript" src="player/js/gametree.js"></script>
<script type="text/javascript" src="player/js/sgf.js"></script>
<script type="text/javascript" src="player/js/board.js"></script>
<script type="text/javascript" src="player/js/rules.js"></script>
<script type="text/javascript" src="player/js/player.js"></script>
<script type="text/javascript" src="player/js/init.js"></script> -->
<h1>EidoGo Player Advanced Example</h1>
<p>This is an advanced example. <a href="javascript:player.goTo(4)">Click here to go to move 4 on the main line</a>.</p>
<div id="player-container"></div>
<script type="text/javascript">
var player = new eidogo.Player({
container: "player-container", // HTML element id indicating where to put the player
theme: "standard", // "standard" or "compact"
sgfUrl: "sgf/example.sgf", // relative URL (within same domain) to SGF file to load
loadPath: [0, 0], // The location within the game tree to start at
mode: "play", // "play" or "view"
showComments: true,
showPlayerInfo: true,
showGameInfo: true,
showTools: true,
showOptions: true,
showNavTree: false,
markCurrent: true,
markVariations: true,
markNext: false,
enableShortcuts: false,
problemMode: false