-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (58 loc) · 2.07 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="stylesheet" href="acplayer.css" media="screen" title="no title">
<body>
<section class="cover">
<div class="content">
<img id="img-rotate" class="rotate-img" src="http://p.d1xz.net/2016/09/21/14744414257933989.jpg" alt="" />
<a id="playpause" href="#" class="center acplayer-paused">
<span></span>
</a>
</div>
</section>
<div class="audioplayer">
<audio preload="auto" controls>
<source src="./BlueDucks_FourFlossFiveSix.mp3">
<source src="./BlueDucks_FourFlossFiveSix.ogg">
<source src="./BlueDucks_FourFlossFiveSix.wav">
</audio>
<div class="audioplayer-time audioplayer-time-current"></div>
<div class="audioplayer-bar">
<div class="audioplayer-bar-content">
<div class="audioplayer-bar-loaded" style="width: 100%;"></div>
<div class="audioplayer-bar-played"></div>
</div>
</div>
<div class="audioplayer-time audioplayer-time-duration"></div>
</div>
<script src="https://cdn.bootcss.com/jquery/2.1.4/jquery.min.js"></script>
<script type="text/javascript" src="acplayer.js"></script>
<script type="text/javascript">
$(function(){
try {
var acplayer = $( 'audio' ).acPlayer();
$('#playpause').click(function(e){
if (acplayer.audioState == "paused") {
acplayer.play();
}
else{
acplayer.pause();
}
})
} catch (e) {
alert(e.message)
} finally {
}
});
</script>
</body>
</html>