-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
46 lines (45 loc) · 1.81 KB
/
index.html
File metadata and controls
46 lines (45 loc) · 1.81 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
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<!-- <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no"> -->
<title>Puzzle</title>
<link rel="stylesheet" type="text/css" href="puzzle.css">
<script type="text/javascript" src="puzzle1.js"></script>
</head>
<body>
<div id="container">
<!--最外面的DIV,用来包含里面的结构-->
<div id="game">
<!--游戏区,也就是大DIV方块-->
<div id="d1" onclick="move(1)"></div>
<!--小DIV,也就是8个小方块。当点击的时候执行move()函数,参数是显示的编号,这样我们就知道点击了那个方块-->
<div id="d2" onclick="move(2)"></div>
<div id="d3" onclick="move(3)"></div>
<div id="d4" onclick="move(4)"></div>
<div id="d5" onclick="move(5)"></div>
<div id="d6" onclick="move(6)"></div>
<div id="d7" onclick="move(7)"></div>
<div id="d8" onclick="move(8)"></div>
<div id="author" onclick="show_ACMQQ()">Author:uucloud</div>
</div>
<div id="control">
<!--游戏控制区-->
<p>
<rowspan id="timeText">总用时</rowspan>
<rowspan id="timer"></rowspan>
</p>
<!--显示游戏时间区域-->
<p>
<rowspan id="start" onclick="start()">开始</rowspan>
<rowspan id="reset" onclick="reset()">重来</rowspan>
</p>
<p>
<rowspan id="letmeseesee" onclick="main()">欢迎加入A协</rowspan>
<rowspan id="win">未完成</rowspan>
</p>
<!--显示控制按钮区域-->
</div>
</div>
</body>
</html>