-
Notifications
You must be signed in to change notification settings - Fork 4
/
credits.html
118 lines (105 loc) · 2.47 KB
/
credits.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title></title>
<link href="css/mui.min.css" rel="stylesheet" />
<link href="css/common.css" rel="stylesheet" />
<style>
.mui-content {
font-size: 14px;
}
#course-head {
display: -webkit-flex;
display: flex;
height: 35px;
line-height: 35px;
padding: 0 10px;
box-shadow: 1px 1px 1px #dce1de;
text-align: center;
color: #03aa6c;
}
.mui-scroll-wrapper {
top: 35px;
bottom: 50px;
}
#course-lists {
padding: 10px;
font-size: 13px;
color: #8f8f94;
text-align: center;
}
#course-lists>li {
border-bottom: solid 1px #dce1de;
}
.course-list {
display: -webkit-flex;
display: flex;
padding: 15px 0;
}
.course-list li,
#course-head li {
-webkit-flex: 1;
flex: 1;
}
nav span {
display: table-cell;
overflow: hidden;
width: 1%;
height: 50px;
text-align: center;
vertical-align: middle;
white-space: nowrap;
text-overflow: ellipsis;
color: #03aa6c;
font-size: 16px;
}
.mui-bar {
-webkit-box-shadow: 0 0 1px rgba(0, 0, 0, .3);
box-shadow: 0 0 1px rgba(0, 0, 0, .3);
}
.course-list li {
position: relative;
}
.course-list li span {
position: absolute;
top: 0;
right: 15%;
}
</style>
</head>
<body>
<div class="mui-content">
<ul id="course-head">
<li>课程性质</li>
<li>已修学分</li>
</ul>
<div class="mui-scroll-wrapper">
<div class="mui-scroll" id="credits">
<script id="credits-tpl" type="text/html">
<ul id="course-lists">
{{each data as credit type}}
<li>
<ul class="course-list">
<li>{{type}}</li>
<li>{{credit}}</li>
</ul>
</li>
{{/each}}
</ul>
</script>
</div>
</div>
</div>
<nav class="mui-bar mui-bar-tab">
<span>当前所修学分总计:</span>
<span id="cur-credit"></span>
</nav>
<script src="vendor/mui.min.js"></script>
<script src="vendor/zepto.min.js"></script>
<script src="vendor/template.js"></script>
<script src="js/common.js"></script>
<script src="js/credits.js"></script>
</body>
</html>