-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
70 lines (61 loc) · 1.64 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
<!doctype html>
<head>
<meta charset="UTF-8">
<script src="//cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/0.7.21/webcomponents.min.js"></script>
<link rel="import" href="lib/chess-board.html">
<link rel="import" href="node_modules/sg-example/lib/sg-example.html">
<style>
chess-board {
font-size: 250%;
}
body {
max-width: 700px;
margin: auto;
}
</style>
</head>
<body>
<h1><chess-board></h1>
<h2>Starting Position</h2>
<sg-example>
<chess-board>
rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
</chess-board>
</sg-example>
<h2>Scholars Mate</h2>
<sg-example>
<chess-board>
r1bqk1nr/pppp1Qpp/2n2n2/4p3/2B1P3/8/PPPP1PPP/RNB1K1NR
</chess-board>
</sg-example>
<h2>Show frame</h2>
<sg-example>
<chess-board frame>
rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
</chess-board>
</sg-example>
<h2>Starting Position (black on bottom)</h2>
<sg-example>
<chess-board reverse frame>
rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
</chess-board>
</sg-example>
<h2>Unicode Pieces</h2>
<sg-example>
<chess-board unicode>
rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
</chess-board>
</sg-example>
<h2>Unicode Pieces (reverse)</h2>
<sg-example>
<chess-board unicode reverse>
rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
</chess-board>
</sg-example>
<h2>Unicode Pieces (reverse and framed)</h2>
<sg-example>
<chess-board unicode reverse frame>
rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
</chess-board>
</sg-example>
</body>