-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
86 lines (80 loc) · 3.18 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>churlish: a chess viewer</title>
<link rel="stylesheet" href="chessboardjs/chessboard.css">
<link rel="stylesheet" href="viewer/style.css">
</head>
<body>
<div id="pgn-wrapper">
<div id="pgn-actions">
<div id="action-choices">
<button id="about">About</button> |
<button id="url-save">Save</button> |
<button id="pgn-paste">Paste PGN</button> |
<button id="credits">Credits</button>
</div>
<div id="action-display">
<div id="action-about">
<p>This is a simple chess viewer for web browsers.</p>
<p>It stores all game state in the URL, for easy sharing.</p>
<p>For more information, please visit the project's <a href="https://github.com/dwyde/churlish">GitHub page</a>.</p>
</div>
<div id="action-url-save">
<p>Store game data in the URL.</p>
<form id="save-pgn">
<p><label for="player-white">White player:</label>
<input id="player-white"></p>
<p><label for="player-black">Black player:</label>
<input id="player-black"></p>
<p><label for="player-event">Event:</label>
<input id="player-event"></p>
<p><label for="pgn-clear-headers">Remove all other headers
</label><input type="checkbox" id="pgn-clear-headers"></p>
<p><button>Save to URL</button></p>
</form>
</div>
<div id="action-pgn-paste">
<p>Load a PGN game.</p>
<form id="paste-game">
<p><textarea id="pgn-input"></textarea></p>
<button id="pgn-submit">Paste PGN</button>
</form>
</div>
<div id="action-credits">
<p> Glued together by <a href="http://davidwyde.com">David Wyde</a>.</p>
<p>Building blocks:
<a href="https://github.com/jhlywa/chess.js">chess.js</a>,
<a href="https://github.com/oakmac/chessboardjs">chessboardjs</a>,
and
<a href="https://github.com/nodeca/pako">pako</a>.
</p>
<p>Inspired by a
<a href="https://github.com/jbt/markdown-editor">text editor</a>.</p>
</div>
</div>
</div>
</div>
<div id="board-wrapper">
<div id="board"></div>
<p id="play-buttons">
<button id="play-rewind"><<</button>
<button id="play-back"><</button>
<button id="play-auto">*</button>
<button id="play-forward">></button>
<button id="play-fast-forward">>></button>
</p>
<p id="game-status"></p>
<hr>
<div id="game-pgn"></div>
</div>
<!-- end HTML -->
<script src="chess.js/chess.js"></script>
<script src="chessboardjs/json3.min.js"></script>
<script src="chessboardjs/jquery-1.10.1.min.js"></script>
<script src="chessboardjs/chessboard.js"></script>
<script src="pako/pako.min.js"></script>
<script src="viewer/viewer.js"></script>
</body>
</html