-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
59 lines (53 loc) · 2.53 KB
/
index.html
File metadata and controls
59 lines (53 loc) · 2.53 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Multi-File Player</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<header>
<div id="waveform"></div>
</header>
<div class="main-content">
<!-- 播放列表区域 -->
<div class="playlist-section">
<div class="playlist-header">
<h2>播放列表</h2>
<div class="playlist-controls">
<button id="play-all-btn" class="btn-play">▶ 全部播放</button>
<button id="pause-all-btn" class="btn-pause">⏸ 全部暂停</button>
<button id="loop-toggle-btn" class="btn-loop loop-active">🔁 循环播放</button>
<button id="clear-list-btn" class="btn-clear">🗑 清空列表</button>
<button id="add-files-btn" class="btn-add">📁 添加文件</button>
<button id="save-playlist-btn" class="btn-save">💾 保存列表</button>
<button id="load-playlist-btn" class="btn-load">📂 加载列表</button>
</div>
</div>
<div class="master-controls">
<div class="master-progress-control">
<label for="master-progress">总体进度:</label>
<input type="range" id="master-progress" min="0" max="100" value="0" disabled>
<span id="master-progress-value">0%</span>
</div>
<div class="master-volume-control">
<label for="master-volume">总体音量:</label>
<input type="range" id="master-volume" min="0" max="100" value="100">
<span id="master-volume-value">100%</span>
</div>
</div>
<div class="playlist-container">
<ul id="playlist" class="playlist"></ul>
</div>
</div>
</div>
</div>
<!-- 文件选择对话框 (隐藏) -->
<input type="file" id="file-input" accept="audio/*,video/*" multiple style="display: none;">
<input type="file" id="load-playlist-input" accept=".json" style="display: none;">
<!-- 引入在线WaveSurfer.js库 -->
<script src="wavesurfer.min.js"></script>
<script src="renderer.js"></script>
</body>
</html>