-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchoose.html
53 lines (50 loc) · 1.58 KB
/
choose.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>贪吃蛇</title>
<link href="./css/main.css" rel="stylesheet"/>
</head>
<body>
<div class="main">
<img src="./img/start/bg.png" style="width: 100%; height: 100%">
<div class="main-bg choose">
<img src="img/start/choose-bg.png" style="width: 100%; height: 100%"/>
<div class="choose-body">
<div class="choose-item" onclick="show_rule()">
<img src="./img/start/choose-green.png" />
</div>
<div class="choose-item" onclick="show_rule()">
<img src="./img/start/choose-red.png" />
</div>
</div>
</div>
<div class="main-bg rule" style="display: none">
<img src="img/start/base-bg.png" style="width: 100%; height: 100%"/>
<div class="main-bg-color" style="min-width: 100%; min-height: 100%; position: absolute; top: 0; left: 0;"></div>
<div class="rule-text">
<img src="./img/start/game-rule.png" style="max-width: 100%; max-height: 100%;"/>
</div>
<div class="rule-go" onclick="window.location.href='game.html'">
<img src="./img/index/start-game.png" style="width: 100%; height: 100%;"/>
</div>
</div>
</div>
</body>
<script src="./bower_components/zepto/zepto.min.js"></script>
<script src="./js/common.js"></script>
<script>
document.body.addEventListener('touchmove', function(evt) {
if(!evt._isScroller) {
evt.preventDefault();
}
});
$(function(){
init($(".main")[0]);
});
function show_rule() {
$(".choose").hide();
$(".rule").show();
}
</script>
</html>