-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprize.html
65 lines (61 loc) · 1.48 KB
/
prize.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
<!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">
<img src="img/start/base-bg.png" style="width: 100%; height: 100%"/>
<div class="share-text" style="top: 20%">
<img src=""/>
</div>
<div class="share-btn" style="top: 70%">
<img src="./img/prize/get-prize-btn.png"/>
</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]);
var i = getUrlParam("i");
var img = "img/prize/prize1-text.png";
switch (i){
case "1":{
img = "img/prize/prize1-text.png";
break;
}
case "2":{
img = "img/prize/prize2-text.png";
break;
}
case "3":{
img = "img/prize/no-prize.png";
$(".share-btn").hide();
break;
}
default:{
img = "img/prize/no-prize.png";
$(".share-btn").hide();
break;
}
}
$(".share-text img").attr("src", img);
$(".share-btn").on("click", go_info);
});
function go_info() {
window.location.href="./info.html";
}
</script>
</html>