-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
52 lines (49 loc) · 1.94 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Melody Player Demo</title>
<script>
(function (w, d) {
function i(p) { var s = d.createElement('script'); s.src = p; s.async = false; d.head.appendChild(s); }
var sd = 'attachShadow' in Element.prototype;
var ce = 'customElements' in window;
if (!sd && !ce) i('https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce.js');
else if(!ce) i('https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs/bundles/webcomponents-ce.js');
else if(!sd) i('https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs/bundles/webcomponents-sd.js');
i('./dist/player.min.js');
})(window, document);
</script>
<style>
body {
margin: 0;
}
main {
margin: 1rem auto;
padding: 1rem;
max-width: 900px;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}
</style>
<link rel="stylesheet" href="./dist/preload.css">
</head>
<body>
<main>
<h1>MelodyPlayer Demo</h1>
<hr>
<h2>Single Track</h2>
<melody-player>
<audio src="assets/412902325.mp3" data-lrc="assets/412902325.lrc.jp.txt" data-sub-lrc="assets/412902325.lrc.zh.txt"></audio>
</melody-player>
<br><hr>
<h2>Mutli Tracks</h2>
<melody-player>
<audio src="assets/27853205.mp3" data-lrc="assets/27853205.lrc.jp.txt" data-sub-lrc="assets/27853205.lrc.zh.txt"></audio>
<audio src="assets/22760378.mp3" data-lrc="assets/22760378.lrc.jp.txt" data-sub-lrc="assets/22760378.lrc.zh.txt"></audio>
<audio src="assets/22716849.mp3" data-lrc="assets/22716849.lrc.jp.txt" data-sub-lrc="assets/22716849.lrc.zh.txt"></audio>
</melody-player>
</main>
</body>
</html>