public
Description: web-based go app
Homepage: http://eidogo.com/
Clone URL: git://github.com/jkk/eidogo.git
eidogo / example2.html
100644 55 lines (46 sloc) 2.23 kb
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <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> -->
    
</head>
<body>
 
    <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
    });
    </script>
 
</body>
</html>