-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
80 lines (69 loc) · 2.76 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
<!DOCTYPE html>
<head>
<title>中国象棋</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/layout.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="game_title">中国象棋</div>
<div id="game_zone">
<!-- 棋盘 -->
<div id="game_board">
<div id="container"></div>
</div>
<!-- 菜单 -->
<div id="game_menu">
<div class="label">谁先走</div>
<div><select id="selMoveMode" size="3">
<option selected value="0">我先走</option>
<option value="1">电脑先走</option>
<option value="2">不用电脑</option>
</select>
</div>
</br>
<div class="label">先走让子</div>
<div><select id="selHandicap">
<option selected value="0">不让子</option>
<option value="1">让左马</option>
<option value="2">让双马</option>
<option value="3">让九子</option>
</select></div>
<div class="top_space">
<input type="button" class="button" value="重新开始" onclick="game.onClickRestart()">
</div>
<div class="top_space">
<input type="button" class="button" value="悔棋" onclick="game.onClickRetract()">
</div>
<div class="game_space"></div>
<div class="label">电脑水平</div>
<div><select id="selLevel" size="3" onchange="game.onClickLevelChange()">
<option selected value="0">入门</option>
<option value="1">业余</option>
<option value="2">专业</option>
</select></div>
<div class="game_space"></div>
<div>
<input type="checkbox" class="checkbox" id="chkAnimated" checked onclick="game.setAnimated(checked)" />
<label for="chkAnimated">动画</label>
</div>
<div>
<input type="checkbox" class="checkbox" checked onclick="game.setSound(checked)" />
<label for="chkSound">音效</label>
</div>
<div class="game_space"></div>
<div class="label">步骤</div>
<div>
<select id="selMoveList" size="7" onchange="game.onRecordListChange()">
<option selected value="0">=== 开始 ===</option>
</select>
</div>
</div>
</div>
<script type="module">
import { Game } from "./js/game.js";
(async () => {
window.game = Game.getInstance();
})()
</script>
</body>
</html>