-
Notifications
You must be signed in to change notification settings - Fork 0
/
m_mission_fin.html
130 lines (130 loc) · 3.15 KB
/
m_mission_fin.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="stylesheet" type="text/css" href="lib/bootstrap.css">
<link rel="stylesheet" type="text/css" href="css/common.css">
<style>
body{
position: relative;
width: 375px !important;
height: 667px;
margin: 0 auto;
background-image: url(img/bg.png);
background-position: top;
background-repeat: no-repeat;
background-size: 375px 667px;
margin: 0 auto;
overflow: hidden;
}
#header > img {
width: 30px;
height: 30px;
margin: 10px;
}
.content {
margin-top: 80px;
text-align: center;
color: white;
font-size: 22px;
}
.content .mission > img {
margin-top: 50px;
width: 100px;
height: 115px;
}
.content .progress-area{
margin-top: 50px;
}
.content .user-level{
float: left;
font-size: 18px;
margin-left: 15px;
padding-bottom: 10px;
color: rgba(255, 255, 255, 0.8);
}
.content .progress-level{
padding-top: 5px;
}
.content .progress {
width: 80% !important;
margin: 5px auto;
height: 10px ;
background-color: rgba(255, 255, 255, 0.5);
}
footer > input {
height: 50px;
width: 70%;
border-radius: 5px;
background-color: #03C1FB !important;
position: absolute;
bottom: 30px;
left: 50%;
margin-left: -35%;
}
.content header{
font-size: 25px;
}
#fin {
transform: rotate(-25deg);
color: #73B4FF;
margin-left: 50px;
margin-top: -10px;
}
</style>
</head>
<body>
<header id="header">
<img src="img/icon_home.png">
</header>
<article class="content">
<header>
List <span id="list-num">0</span>
</header>
<aside id="fin">已完成</aside>
<section>
<div class="mission">
<img src="img/icon1.png">
</div>
<div class="progress-area">
<div class="user-level">Lv.<span id="user-rank">1</span></div>
<div class="progress-level">
<div class="progress">
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 0%">
</div>
</div>
</div>
</div>
</section>
</article>
<footer>
<input class="btn btn-info" type="button" value="OK">
</footer>
<script type="text/javascript" src="lib/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script>
var url=window.location.href;
var url_data = url.indexOf("?");
if ( url_data !== -1) {
url_data = url.substring(url_data+1);
console.log(url_data);
//id and mission number
var currunt_id = url_data.slice(url_data.indexOf("id")+3,url_data.indexOf("&")) ;
var currunt_ms = url_data.slice(url_data.indexOf("m")+2);
console.log("id = " + currunt_id );
console.log("m = " + currunt_ms );
$("#list-num").html(currunt_id);
$(".mission > img ").attr("src","img/icon"+currunt_ms+".png");
}
$(function(){
getUserData();
$("footer > input").click(function(){
window.location = "m_index.html";
});
});
</script>
</body>
</html>