-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresource.html
326 lines (311 loc) · 17.5 KB
/
resource.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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>教学资源</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">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<!--标准mui.css-->
<link rel="stylesheet" href="css/mui.css">
<!--App自定义的css-->
<link rel="stylesheet" type="text/css" href="css/app.css" />
</head>
<body>
<style>
.mui-control-content {
background-color: white;
min-height: 500px;
}
.mui-control-content .mui-loading {
margin-top: 50px;
}
#menu {
margin-top: 1px;
}
#menu li {
padding: 5px 15px;
}
#reccontent li a img {
border-radius: 5px;
}
#reccontent li a div {
font-size: 12px;
}
.mui-grid-view.mui-grid-9 .mui-media .iconfont {
font-size: 1.2em;
}
</style>
<header class="mui-bar mui-bar-nav">
<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
<h1 class="mui-title">教学资源</h1>
</header>
<nav id="bottomnav" class="mui-bar mui-bar-tab">
<a id="home" class="mui-tab-item ">
<span class="mui-icon mui-icon-home"></span>
<span class="mui-tab-label">首页</span>
</a>
<a id='resource' class="mui-tab-item mui-active">
<span class="mui-icon mui-icon-image"></span>
<span class="mui-tab-label">教学资源</span>
</a>
<a id="center" class="mui-tab-item" href="#tabbar-with-contact">
<span class="mui-icon mui-icon-contact"></span>
<span class="mui-tab-label">个人中心</span>
</a>
</nav>
<div class="mui-content">
<div id="slider" class="mui-slider">
<div id="sliderSegmentedControl" class="mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
<a class="mui-control-item" href="#item1mobile">
校本资源
</a>
<a class="mui-control-item" href="#item2mobile">
平台资源
</a>
</div>
<div id="sliderProgressBar" class="mui-slider-progress-bar mui-col-xs-6"></div>
<div class="mui-slider-group">
<div id="item1mobile" class="mui-slider-item mui-control-content mui-active">
<div id="scroll1" class="mui-scroll-wrapper">
<div class="mui-scroll">
<ul id="menu" class="mui-table-view mui-grid-view mui-grid-9" style="background:#fff;">
<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
<a href="#">
<span class="iconfont icon-wallet" style="color:#24be82;"></span>
<div class="mui-media-body" style="color:#24be82;">绘本</div>
</a>
</li>
<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
<a href="#">
<span class="iconfont icon-music" style="color:#CF2D28;"></span>
<div class="mui-media-body" style="color:#CF2D28;">儿歌</div>
</a>
</li>
<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
<a href="#">
<span class="iconfont icon-pencil2" style="color:#99d91d;"></span>
<div class="mui-media-body" style="color:#99d91d;">故事</div>
</a>
</li>
<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
<a href="#">
<span class="iconfont icon-map" style="color:#dc4e16;"></span>
<div class="mui-media-body" style="color:#dc4e16;">古诗</div>
</a>
</li>
</ul>
<div style="height:10px;background:#EFEFF4;"></div>
<div style=" height:38px;line-height:38px;font-size:16px;font-weight:500;padding-left:6px;color:#4d4d4d;border-bottom:1px solid #EFEFF4">
<span style="border-left:6px solid #41b9f5;padding-left:6px;">推荐资源</span>
</div>
<div class="mui-content" style="background-color:#fff">
<ul id="reccontent" class="mui-table-view mui-grid-view">
<li class="mui-table-view-cell mui-media mui-col-xs-4">
<a href="#">
<img class="mui-media-object" src="images/shuijiao.jpg">
<div class="mui-media-body">幸福就是可以一起睡觉</div>
</a>
</li>
<li class="mui-table-view-cell mui-media mui-col-xs-4">
<a href="#">
<img class="mui-media-object" src="images/muwu.jpg">
<div class="mui-media-body">想要一间这样的木屋,静静的喝咖啡</div>
</a>
</li>
<li class="mui-table-view-cell mui-media mui-col-xs-4">
<a href="#"><img class="mui-media-object" src="images/cbd.jpg">
<div class="mui-media-body">Color of SIP CBD</div>
</a>
</li>
<li class="mui-table-view-cell mui-media mui-col-xs-4">
<a href="#">
<img class="mui-media-object" src="images/yuantiao.jpg">
<div class="mui-media-body">静静看这世界</div>
</a>
</li>
<li class="mui-table-view-cell mui-media mui-col-xs-4">
<a href="#"><img class="mui-media-object" src="images/cbd.jpg">
<div class="mui-media-body">Color of SIP CBD</div>
</a>
</li>
<li class="mui-table-view-cell mui-media mui-col-xs-4">
<a href="#">
<img class="mui-media-object" src="images/yuantiao.jpg">
<div class="mui-media-body">静静看这世界</div>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div id="item2mobile" class="mui-slider-item mui-control-content">
<div id="scroll1" class="mui-scroll-wrapper">
<div class="mui-scroll">
<ul id="menu" class="mui-table-view mui-grid-view mui-grid-9" style="background:#fff;">
<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
<a href="#">
<span class="iconfont icon-happy" style="color:#EC971F;"></span>
<div class="mui-media-body" style="color:#EC971F;">益智</div>
</a>
</li>
<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
<a href="#">
<span class="iconfont icon-music" style="color:#DD524D;"></span>
<div class="mui-media-body" style="color:#DD524D;">歌舞</div>
</a>
</li>
<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
<a href="#">
<span class="iconfont icon-wallet" style="color:#24be82;"></span>
<div class="mui-media-body" style="color:#24be82;">绘本</div>
</a>
</li>
<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
<a href="#">
<span class="iconfont icon-pencil2" style="color:#99d91d;"></span>
<div class="mui-media-body" style="color:#99d91d;">学习</div>
</a>
</li>
<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
<a href="#">
<span class="iconfont icon-joomla" style="color:#c8dc23;"></span>
<div class="mui-media-body" style="color:#c8dc23;">艺术</div>
</a>
</li>
<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
<a href="#">
<span class="iconfont icon-hammer" style="color:#8b16dc;"></span>
<div class="mui-media-body" style="color:#8b16dc;">制作</div>
</a>
</li>
<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
<a href="#">
<span class="iconfont icon-key3" style="color:#dc16b9;"></span>
<div class="mui-media-body" style="color:#dc16b9;">谜语</div>
</a>
</li>
<li class="mui-table-view-cell mui-media mui-col-xs-3 mui-col-sm-3">
<a href="#">
<span class="iconfont icon-heart2" style="color:#dc4e16;"></span>
<div class="mui-media-body" style="color:#dc4e16;">健康</div>
</a>
</li>
</ul>
<div style="height:10px;background:#EFEFF4;"></div>
<div style=" height:38px;line-height:38px;font-size:16px;font-weight:500;padding-left:6px;color:#4d4d4d;border-bottom:1px solid #EFEFF4">
<span style="border-left:6px solid #41b9f5;padding-left:6px;">推荐资源</span>
</div>
<div class="mui-content" style="background-color:#fff">
<ul id="reccontent" class="mui-table-view mui-grid-view">
<li class="mui-table-view-cell mui-media mui-col-xs-4">
<a href="#">
<img class="mui-media-object" src="images/shuijiao.jpg">
<div class="mui-media-body">幸福就是可以一起睡觉</div>
</a>
</li>
<li class="mui-table-view-cell mui-media mui-col-xs-4">
<a href="#">
<img class="mui-media-object" src="images/muwu.jpg">
<div class="mui-media-body">想要一间这样的木屋,静静的喝咖啡</div>
</a>
</li>
<li class="mui-table-view-cell mui-media mui-col-xs-4">
<a href="#"><img class="mui-media-object" src="images/cbd.jpg">
<div class="mui-media-body">Color of SIP CBD</div>
</a>
</li>
<li class="mui-table-view-cell mui-media mui-col-xs-4">
<a href="#">
<img class="mui-media-object" src="images/yuantiao.jpg">
<div class="mui-media-body">静静看这世界</div>
</a>
</li>
<li class="mui-table-view-cell mui-media mui-col-xs-4">
<a href="#"><img class="mui-media-object" src="images/cbd.jpg">
<div class="mui-media-body">Color of SIP CBD</div>
</a>
</li>
<li class="mui-table-view-cell mui-media mui-col-xs-4">
<a href="#">
<img class="mui-media-object" src="images/yuantiao.jpg">
<div class="mui-media-body">静静看这世界</div>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<script src="js/mui.min.js"></script>
<script>
document.getElementById('home').addEventListener('tap', function() {
mui.openWindow({
url: "index.html",
id: "index",
show: {
aniShow: 'zoom-fade-out',
duration: 300
}
});
});
document.getElementById('resource').addEventListener('tap', function() {
mui.openWindow({
url: "resource.html",
id: "resource",
show: {
aniShow: 'zoom-fade-out',
duration: 300
}
});
});
document.getElementById('center').addEventListener('tap', function() {
mui.openWindow({
url: "center.html",
id: "center",
show: {
aniShow: 'zoom-fade-out',
duration: 300
}
});
});
mui.init({
swipeBack: false
});
(function($) {
$('.mui-scroll-wrapper').scroll({
indicators: false //是否显示滚动条
});
var html2 = '<ul class="mui-table-view"><li class="mui-table-view-cell">第二个选项卡子项-1</li><li class="mui-table-view-cell">第二个选项卡子项-2</li><li class="mui-table-view-cell">第二个选项卡子项-3</li><li class="mui-table-view-cell">第二个选项卡子项-4</li><li class="mui-table-view-cell">第二个选项卡子项-5</li></ul>';
var html3 = '<ul class="mui-table-view"><li class="mui-table-view-cell">第三个选项卡子项-1</li><li class="mui-table-view-cell">第三个选项卡子项-2</li><li class="mui-table-view-cell">第三个选项卡子项-3</li><li class="mui-table-view-cell">第三个选项卡子项-4</li><li class="mui-table-view-cell">第三个选项卡子项-5</li></ul>';
var item2 = document.getElementById('item2mobile');
var item3 = document.getElementById('item3mobile');
// document.getElementById('slider').addEventListener('slide', function(e) {
// if (e.detail.slideNumber === 1) {
// if (item2.querySelector('.mui-loading')) {
// setTimeout(function() {
// item2.querySelector('.mui-scroll').innerHTML = html2;
// }, 500);
// }
// } else if (e.detail.slideNumber === 2) {
// if (item3.querySelector('.mui-loading')) {
// setTimeout(function() {
// item3.querySelector('.mui-scroll').innerHTML = html3;
// }, 500);
// }
// }
// });
var sliderSegmentedControl = document.getElementById('sliderSegmentedControl');
$('.mui-input-group').on('change', 'input', function() {
if (this.checked) {
sliderSegmentedControl.className = 'mui-slider-indicator mui-segmented-control mui-segmented-control-inverted mui-' + this.value;
//force repaint
sliderProgressBar.setAttribute('style', sliderProgressBar.getAttribute('style'));
}
});
})(mui);
</script>
</body>
</html>