-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (48 loc) · 1.11 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
<title>WS Audio Player</title>
<style media="screen">
html, body {
height: 100%;
}
body {
background-color: #f4f4f4;
margin: 0;
padding: 0;
font-family: Open Sans,Helvetica Neue,Helvetica,arial,sans-serif;
font-size: 14px;
color: #070707;
}
.container {
max-width: 540px;
margin: 200px auto;
height: 2000px;
}
</style>
<script type="text/javascript">
window.onload = function() {
var container = document.querySelector('#audio-player')
new WSAudioPlayer(container, {
src: 'http://ok0lm7lph.bkt.clouddn.com/3%E6%9C%8814%E6%97%A5%E4%BB%98%E9%B9%8F%E8%AF%B4.mp3',
title: '华尔街也爱小户型',
autoPlay: false,
loop: false,
isTpl: false
})
}
</script>
</head>
<body>
<div class="main">
<div class="content">
<div class="container">
<div id="audio-player"></div>
</div>
</div>
</div>
</body>
</html>