forked from tmxjiayou/Light-up-your-starry-sky
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (61 loc) · 1.92 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Light up your starry sky</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css'>
</head>
<body>
<!-- 主界面 -->
<div id="interface">
<!-- 步数 -->
<div id="step">
已用<span id="movecount">0</span>步
</div>
<!-- 游戏界面 -->
<div id="play">
<table border="5" cellpadding="10" cellspacing="2" id="table"></table>
</div>
<!-- 重新开始 -->
<a class="btn btn-lg play-again" onClick="Init(true)">重新开始</a>
<div class="interface_ribbon"></div>
<!-- 结束界面 -->
<div class="result-container" id="result_container" style="display:block;">
<div class="rcontainer">
<img src="img/over.gif">
<p class="result" id="result"></p>
<a class="btn btn-lg play-again" onClick="Init(true)">再来一盘</a>
</div>
</div>
</div>
<!-- 等级界面 -->
<div id="levels">
<div class="btn btn-lg level" id="level1" value="3">3×3</div>
<div class="btn btn-lg level" id="level2" value="4">4×4</div>
<div class="btn btn-lg level" id="level3" value="5">5×5</div>
<div class="levels_ribbon"></div>
</div>
<!-- 游戏说明 -->
<div>
<button class="btn btn-lg" id="ClickMe">游戏说明</button>
<div id="goodcover"></div>
<div id="code">
<div class="close1"><a href="javascript:void(0)" id="closebt"><img src="img/close.gif"></a></div>
<div class="goodtxt">
<p>目标:将所有灯泡点亮</p>
<p>玩法:点击一个灯泡,其自身与其上下左右的灯泡同时改变状态。</p>
</div>
<div class="code-img">
<img src="img/instruction.png" id="ewmsrc">
</div>
</div>
</div>
<script type="text/javascript" src="js/game.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script language="JavaScript">
draw();
Init(true);
</script>
</body>
</html>