-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
76 lines (64 loc) · 3.01 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Music Player</title>
<link rel="icon" href="./favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="./css/style.css">
</head>
<body>
<div id="blur-background" class="blur-background"></div>
<div class="player-container">
<!-- 左侧容器 -->
<div class="left-container">
<!-- Canvas和封面 -->
<div class="spectrum-cover-container">
<canvas id="spectrum-canvas" class="spectrum-canvas" width="1000" height="700"></canvas>
<div id="cover-container" class="cover-container">
<img id="cover-image" class="cover-image" alt="" />
</div>
</div>
</div>
<!-- 右侧容器 -->
<div class="right-container">
<!-- 歌曲信息 -->
<div class="song-info">
<span id="song-title" class="song-title">Song: Unknown</span>
<span id="artist-name" class="artist-name">Artist: Unknown</span>
</div>
<!-- 进度条顶部频谱 -->
<canvas id="top-spectrum-canvas" class="top-spectrum-canvas" width="1024" height="256"></canvas>
<!-- 播放控件 -->
<div class="controls-container">
<button id="playPause" class="play-pause-btn"></button>
<div class="time-progress-container">
<div id="time-container" class="time-container">
<span id="time-elapsed" class="time-elapsed">00:00</span>
<span id="total-duration" class="total-duration">00:00</span>
</div>
<input type="range" id="song-progress" class="song-progress" min="0" max="100" value="0">
</div>
<div class="volume-container">
<button id="volume-btn" class="volume-btn"></button>
<div id="volume-control-container" class="volume-control-container">
<input type="range" id="volume-control" class="volume-control" min="0" max="100" value="100">
</div>
</div>
<button id="lyrics-show" class="lyrics-show-btn"></button>
<button id="like-this" class="like-this-btn"></button>
</div>
<!-- 进度条底部频谱 -->
<canvas id="bottom-spectrum-canvas" class="bottom-spectrum-canvas" width="800" height="100"></canvas>
</div>
</div>
<!-- 歌词 -->
<div id="lyrics-container-container" class="lyrics-container-container">
<div id="lyrics-container" class="lyrics-container">
<p id="lyrics" class="lyrics lyrics-active">播放器正在努力连线歌词中</p>
</div>
</div>
<script async src="./scripts/attach.js"></script>
<script defer type="module" src="./scripts/main.js"></script>
</body>
</html>