forked from bmarini/jchess
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
143 lines (132 loc) · 5.4 KB
/
index.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>jChess Examples</title>
<link rel="stylesheet" href="stylesheets/main.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="stylesheets/chess.css" type="text/css" media="screen" title="no title" charset="utf-8">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js"></script>
<script src="javascripts/jchess-0.1.0.js"></script>
<script src="javascripts/app.js"></script>
</head>
<body>
<div id="wrapper">
<h1>Chess Board Demo</h1>
<div id="board1"></div>
<h1>Chess Board Demo 2: FEN</h1>
<div id="board2"></div>
<h1>Chess Board Demo 3: PGN</h1>
<div>
<a id="board3-back" href="#">Back</a>
<a id="board3-next" href="#">Next</a>
<a id="board3-flip" href="#">Flip</a>
</div>
<div id="board3"></div>
<p id="board3-annot"></p>
<p id="pgn-fischer-spassky">
[Event "F/S Return Match"]
[Site "Belgrade, Serbia JUG"]
[Date "1992.11.04"]
[Round "29"]
[White "Fischer, Robert J."]
[Black "Spassky, Boris V."]
[Result "1/2-1/2"]
1.e4 e5 2.Nf3 Nc6 3.Bb5 {This opening is called the Ruy Lopez.} 3...a6
4.Ba4 Nf6 5.O-O Be7 6.Re1 b5 7.Bb3 d6 8.c3 O-O 9.h3 Nb8 10.d4 Nbd7
11.c4 c6 12.cxb5 axb5 13.Nc3 Bb7 14.Bg5 b4 15.Nb1 h6 16.Bh4 c5 17.dxe5
Nxe4 18.Bxe7 Qxe7 19.exd6 Qf6 20.Nbd2 Nxd6 21.Nc4 Nxc4 22.Bxc4 Nb6
23.Ne5 Rae8 24.Bxf7+ Rxf7 25.Nxf7 Rxe1+ 26.Qxe1 Kxf7 27.Qe3 Qg5 28.Qxg5
hxg5 29.b3 Ke6 30.a3 Kd6 31.axb4 cxb4 32.Ra5 Nd5 33.f3 Bc8 34.Kf2 Bf5
35.Ra7 g6 36.Ra6+ Kc5 37.Ke1 Nf4 38.g3 Nxh3 39.Kd2 Kb5 40.Rd6 Kc5 41.Ra6
Nf2 42.g4 Bd3 43.Re6 1/2-1/2
</p>
<h1>Chess Board Demo 4: More PGN</h1>
<div>
<a id="board4-back" href="#">Back</a>
<a id="board4-next" href="#">Next</a>
<a id="board4-flip" href="#">Flip</a>
</div>
<div id="board4"></div>
<p id="justdoeet">
[Event "rated standard game"]
[Site "Free Internet Chess Server"]
[Date "2008.02.20"]
[Round "-"]
[White "justdoeet"]
[Black "Zornhau"]
[WhiteElo "1598"]
[BlackElo "1482"]
[Result "1-0"]
[Time "18:51:25"]
[TimeControl "1200+0"]
[Mode "ICS"]
1. d4 d5 2. c4 c6 3. Nc3 e6 4. Nf3 Bb4 5. e3 Nf6 6. a3 Bxc3+ 7. bxc3 Ne4 8. Qc2
O-O 9. Bd3 Nf6 10. O-O Nbd7 11. cxd5 cxd5 12. c4 dxc4 13. Qxc4 a6 14. Bd2 b5
15. Qb3 Bb7 16. Bb4 Re8 17. Be2 Rc8 18. Rac1 Rxc1 19. Rxc1 Ne4 20. Nd2 Nxd2
21. Bxd2 Qg5 22. f3 Nf6 23. Qd3 g6 24. e4 Qh5 25. Rc5 Nd5 26. exd5 exd5 27. Bf4
g5 28. Bg3 Qh6 29. Bd1 Qf8 30. Bc2 Qg7 31. Bb3 Rd8 32. Bc2 Rf8 33. Rc7 Bc8
34. Be5 f6 35. Rxg7+ Kxg7 36. Qxh7# 1-0
</p>
<h1>Chess Board Demo 5: Loong Game</h1>
<div>
<a id="board5-back" href="#">Back</a>
<a id="board5-next" href="#">Next</a>
<a id="board5-flip" href="#">Flip</a>
</div>
<div id="board5"></div>
<p id="with-queening">
[Event "34th Olympiad"]
[Site "Istanbul TUR"]
[Date "2000.11.08"]
[EventDate "2000.10.28"]
[Round "11"]
[Result "1/2-1/2"]
[White "Tomasz Markowski"]
[Black "Jeroen Piket"]
[ECO "A07"]
[WhiteElo "2568"]
[BlackElo "2649"]
[PlyCount "253"]
1. g3 d5 2. Nf3 c6 3. Bg2 Bg4 4. d3 Nd7 5. c4 e6 6. O-O Ngf6
7. cxd5 exd5 8. Nc3 Bc5 9. Qb3 Bb6 10. Na4 O-O 11. Nxb6 axb6
12. Qc2 Re8 13. b3 Qe7 14. Re1 Qb4 15. Bd2 Qc5 16. Qb2 Qa3
17. Bc1 Qxb2 18. Bxb2 Bxf3 19. Bxf3 b5 20. b4 h6 21. a3 Nb6
22. Bg2 Nfd7 23. h4 Nf8 24. Rab1 Ra6 25. h5 Rd8 26. e3 Na4
27. Ba1 d4 28. e4 c5 29. Rec1 Ne6 30. Bh3 Rc6 31. bxc5 Rxc5
32. Rxc5 Nexc5 33. Rxb5 Nxd3 34. Rd5 Rxd5 35. exd5 Nc3 36. Kf1
Kf8 37. Bf5 Ne5 38. Bxc3 dxc3 39. Ke2 Ke7 40. Bc2 Kd6 41. Bb3
Ng4 42. f3 Nf6 43. g4 Nxd5 44. Kd3 f5 45. a4 fxg4 46. fxg4 Kc5
47. Bxd5 Kxd5 48. Kxc3 Ke4 49. Kc4 Kf4 50. Kb5 Kxg4 51. Kb6
Kxh5 52. Kxb7 g5 53. a5 g4 54. a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-flip" href="#">Flip</a>
</div>
<div id="board6"></div>
<p id="unambiguous-knight-move">
1.Nc3 Nf6 2.d4 Nc6 3.Bg5 e5 4.e3 Bb4 5.Ne2 O-O 6.d5 Na5 7.Qd2 d6 8.Ng3 Bg4 9.f3 Qd7 10.h3 Bf5 11.Bxf6 gxf6 12.a3 *
</p>
</div>
</body>
</html>