This repository has been archived by the owner on Jul 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
80 lines (77 loc) · 3.38 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<link rel="stylesheet" type="text/css" href="css/lib/reset.css" />
<link rel="stylesheet" type="text/css" href="css/lib/bbui-min.css" />
<link rel="stylesheet" type="text/css" href="css/index.css" />
<link rel="stylesheet" type="text/css" href="css/audio-player.css" />
<title></title>
<style>
input[type="button"] {
display: block;
width: 20rem;
height: 5rem;
margin: 1rem auto;
font-size: 2.5rem;
}
</style>
</head>
<body>
<div class="d1"></div>
<input type="button" value="show" id="btn1">
<input type="button" value="hide" id="btn2">
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="js/lib/bbui-min.js"></script>
<script type="text/javascript" src="js/lib/zepto.min.js"></script>
<script type="text/javascript" src="js/lib/touch.js"></script>
<script type="text/javascript" src="js/app.js"></script>
<script src="js/audio-player.js"></script>
<script type="text/javascript">
$(window).on('load', function(e) {
$(document).on('deviceready', function(e) {
bb.init({
actionBarDark : true,
controlsDark : true,
listsDark : true,
highlightColor : '#00BFFF',
coloredTitleBar : true,
onscreenready : function(element, id, params) {
$(document).trigger('bb_onscreenready', {"element": element, "id": id, "params": params});
},
ondomready : function(element, id, params) {
$(document).trigger('bb_ondomready', {"element": element, "id": id, "params": params});
}
});
});
});
</script>
<script>
BB10AudioPlayer.init({
list: [{
url: 'http://fdfs.xmcdn.com/group22/M05/67/78/wKgJM1h0sJWgLZxMAFBfGylPtn4949.mp3',
title: '摸金天师'
},{
url: 'http://fdfs.xmcdn.com/group21/M09/61/01/wKgJKFhzwJfBANisAJiidsGEu8s250.mp3',
title: 'wKgJKFhzwJfBANisAJiidsGEu8s250'
},{
url: 'http://fdfs.xmcdn.com/group21/M0B/60/31/wKgJKFhzpOnhuSZiAUNBpQ1Mt88003.mp3',
title: 'wKgJKFhzpOnhuSZiAUNBpQ1Mt88003'
}],
cover: ''
});
BB10AudioPlayer.initUI($('.d1'));
$('#btn1, #btn2').on('click', function(e) {
var id = $(e.currentTarget).attr('id');
if(id === 'btn1') {
BB10AudioPlayer.initUI($('.d1'));
}else {
$('.d1').empty();
}
});
</script>
</body>
</html>