-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathindex.html
More file actions
74 lines (70 loc) · 2.33 KB
/
index.html
File metadata and controls
74 lines (70 loc) · 2.33 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- 设置referrer策略,确保动态import请求包含referer头 -->
<meta name="referrer" content="strict-origin-when-cross-origin">
<title>网易云音乐无损解析</title>
<link rel="stylesheet" href="https://unpkg.com/aplayer@1.10.1/dist/APlayer.min.css">
<!-- 本地打包模式,无需CDN链接 -->
</head>
<body>
<div id="app">
<!-- 加载动画 -->
<div id="initial-loader" style="
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #f5f7fa;
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
">
<div style="text-align: center;">
<div style="
width: 40px;
height: 40px;
border: 3px solid #e4e7ed;
border-top: 3px solid #409eff;
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 0 auto 16px;
"></div>
<p style="color: #606266; margin: 0;">正在加载网易云音乐解析器...</p>
</div>
</div>
<style>
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
</div>
<script type="module" src="/src/main.js"></script>
<!-- 性能优化:延迟加载非关键JS -->
<script>
// 延迟加载APlayer
window.addEventListener('load', function() {
const script = document.createElement('script');
script.src = 'https://unpkg.com/aplayer@1.10.1/dist/APlayer.min.js';
script.async = true;
document.head.appendChild(script);
// 移除初始加载动画
setTimeout(() => {
const loader = document.getElementById('initial-loader');
if (loader) {
loader.style.opacity = '0';
loader.style.transition = 'opacity 0.3s ease';
setTimeout(() => loader.remove(), 300);
}
}, 1000);
});
</script>
</body>
</html>