forked from miiiku/music-radio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
127 lines (127 loc) · 4.37 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./css/reset.css">
<link rel="stylesheet" href="./css/index.css">
<link rel="stylesheet" href="./css/widget.css">
<link rel="stylesheet" href="./css/setting.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link href="https://fonts.googleapis.com/css2?family=Rajdhani:wght@600&display=swap" rel="stylesheet">
<title>Cloud Music</title>
</head>
<body>
<div id="setting-wrap">
<section>
<div class="input-row">
<label for="centerX">centerX:</label>
<input type="range" min="0" max="1" step="0.1" id="centerX">
</div>
<div class="input-row">
<label for="centerY">centerY:</label>
<input type="range" min="0" max="1" step="0.1" id="centerY">
</div>
<div class="input-row">
<label for="lineWidth">lineWidth:</label>
<input type="range" min="1" max="8" id="lineWidth">
</div>
<div class="input-row">
<label for="lineSpacing">lineSpacing:</label>
<input type="range" min="0" max="8" id="lineSpacing">
</div>
</section>
<section>
<div class="input-row">
<label for="lineColor">lineColor:</label>
<input type="color" id="lineColor">
</div>
<div class="input-row">
<label for="shadowColor">shadowColor:</label>
<input type="color" id="shadowColor">
</div>
<div class="input-row">
<label for="shadowBlur">shadowBlur:</label>
<input type="range" min="1" max="10" id="shadowBlur">
</div>
</section>
<section>
<div class="input-row">
<label for="lineColorO">lineColorO:</label>
<input type="range" min="0" max="1" step="0.1" id="lineColorO">
</div>
<div class="input-row">
<label for="shadowColorO">shadowColorO:</label>
<input type="range" min="0" max="1" step="0.1" id="shadowColorO">
</div>
<div class="input-row">
<label for="isRoundY">isRoundY:</label>
<input type="radio" name="isRound" value="1" id="isRoundY">
</div>
<div class="input-row">
<label for="isRoundN">isRoundN:</label>
<input type="radio" name="isRound" value="0" id="isRoundN">
</div>
</section>
<i id="setting-close" class="iconfont icon-close1"></i>
</div>
<div class="container-wrap">
<div id="bg" class="bg"></div>
<div class="card-wrap">
<header class="card-header">
<div class="card-header--title">
<i class="iconfont icon-music"></i>
<span id="song-title">Travel diary</span>
</div>
<div class="card-header--options">
<i id="setting-menu" class="iconfont icon-menu--fill"></i>
</div>
</header>
<main class="card-body">
<canvas id="music-canvas"></canvas>
<div class="lrc-box">
<section id="music-lrc"></section>
</div>
</main>
<aside class="info-widget">
<div class="info-list">
<dl>
<dt>state:</dt>
<dd id="info-state">undefined</dd>
</dl>
<dl>
<dt>duration:</dt>
<dd id="info-duration">00</dd>
</dl>
<dl>
<dt>currentTime:</dt>
<dd id="info-current-time">00</dd>
</dl>
</div>
<div id="info-cover"></div>
</aside>
<aside class="time-widget">
<span id="time-minute">00</span>
<span>:</span>
<span id="time-second">00</span>
</aside>
<aside class="control-widget">
<div class="control-btn" id="prevBtn">
<i class="iconfont icon-play-previous"></i>
</div>
<div class="control-btn animation" id="playBtn">
<i class="iconfont icon-play1"></i>
</div>
<div class="control-btn" id="nextBtn">
<i class="iconfont icon-play-next"></i>
</div>
</aside>
</div>
</div>
<script src="./js/DomVisual.js"></script>
<script src="./js/AudioVisual.js"></script>
<script src="./js/index.js"></script>
</body>
</html>