forked from 37tt/tang-love
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetmusic.html
More file actions
349 lines (303 loc) · 10.2 KB
/
setmusic.html
File metadata and controls
349 lines (303 loc) · 10.2 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
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>如何获取网易云音乐ID - 教程</title>
<link href="https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&display=swap" rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
line-height: 1.6;
color: #333;
background: linear-gradient(135deg, #ffd1d1 0%, #fff1f1 50%, #ffd1d1 100%);
min-height: 100vh;
padding: 20px;
animation: gradientBG 10s ease infinite;
}
@keyframes gradientBG {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 30px;
background: rgba(255, 255, 255, 0.95);
border-radius: 20px;
box-shadow:
0 10px 30px rgba(255, 107, 139, 0.1),
0 0 0 1px rgba(255, 107, 139, 0.05);
backdrop-filter: blur(10px);
}
h1 {
font-family: 'Ma Shan Zheng', cursive;
color: #ff6b8b;
text-align: center;
margin-bottom: 30px;
font-size: 2.2em;
text-shadow: 2px 2px 4px rgba(255, 107, 139, 0.2);
}
.platform-selector {
display: flex;
justify-content: center;
gap: 20px;
margin-bottom: 40px;
}
.platform-btn {
padding: 10px 25px;
background: white;
border: 2px solid #ff6b8b;
color: #ff6b8b;
border-radius: 25px;
cursor: pointer;
font-weight: bold;
transition: all 0.3s ease;
}
.platform-btn.active {
background: #ff6b8b;
color: white;
}
.platform-content {
display: none;
opacity: 0;
transform: translateY(10px);
transition: all 0.3s ease;
}
.platform-content.active {
display: block;
opacity: 1;
transform: translateY(0);
}
.step {
margin-bottom: 40px;
padding: 20px;
background: rgba(255, 255, 255, 0.8);
border-radius: 15px;
border: 1px solid rgba(255, 107, 139, 0.1);
transition: transform 0.3s ease;
}
.step:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(255, 107, 139, 0.1);
}
.step h2 {
color: #ff6b8b;
margin-bottom: 15px;
font-size: 1.4em;
display: flex;
align-items: center;
gap: 10px;
}
.step-number {
background: #ff6b8b;
color: white;
width: 30px;
height: 30px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.9em;
flex-shrink: 0;
}
.step p {
margin-bottom: 15px;
color: #666;
}
.step img {
max-width: 100%;
border-radius: 10px;
margin: 15px 0;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.example {
background: #f8f9fa;
padding: 15px;
border-radius: 10px;
margin: 15px 0;
border: 1px dashed #ff6b8b;
}
.example pre {
background: white;
padding: 10px;
border-radius: 5px;
overflow-x: auto;
}
.tip {
background: rgba(255, 107, 139, 0.1);
padding: 20px;
border-radius: 15px;
margin-bottom: 30px;
border: 1px solid rgba(255, 107, 139, 0.2);
}
.tip-box h3 {
color: #ff6b8b;
margin-bottom: 15px;
font-size: 1.3em;
display: flex;
align-items: center;
gap: 10px;
}
.tip-box ul {
list-style-type: none;
}
.tip-box li {
margin-bottom: 10px;
padding-left: 20px;
position: relative;
color: #666;
}
.tip-box li:before {
content: "•";
color: #ff6b8b;
position: absolute;
left: 0;
}
.tip ul {
list-style-position: inside;
margin-top: 10px;
}
.tip li {
margin-bottom: 5px;
}
.back-btn {
display: inline-block;
padding: 10px 20px;
background: linear-gradient(45deg, #ff6b8b, #ff8da1);
color: white;
text-decoration: none;
border-radius: 25px;
margin-top: 20px;
transition: all 0.3s ease;
text-align: center;
box-shadow: 0 4px 15px rgba(255, 107, 139, 0.2);
}
.back-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(255, 107, 139, 0.3);
}
@media (max-width: 768px) {
.container {
padding: 20px;
margin: 10px;
}
h1 {
font-size: 1.8em;
margin-bottom: 20px;
}
.platform-selector {
flex-direction: column;
align-items: center;
gap: 10px;
}
.platform-btn {
width: 100%;
max-width: 200px;
text-align: center;
}
.step {
padding: 15px;
margin-bottom: 25px;
}
.step h2 {
font-size: 1.2em;
}
.step-number {
width: 25px;
height: 25px;
font-size: 0.8em;
}
}
</style>
<script>
function switchPlatform(platform) {
document.querySelectorAll('.platform-btn').forEach(btn => {
btn.classList.remove('active');
});
document.querySelectorAll('.platform-content').forEach(content => {
content.classList.remove('active');
});
document.querySelector(`button[onclick="switchPlatform('${platform}')"]`).classList.add('active');
document.getElementById(`${platform}-content`).classList.add('active');
}
</script>
</head>
<body>
<div class="container">
<h1>🎵 如何获取网易云音乐ID</h1>
<div class="tip-box">
<h3>温馨提示</h3>
<ul>
<li>复制的音乐ID仅包含数字部分</li>
<li>如遇到无法访问的情况,请检查网络连接</li>
</ul>
</div>
<div class="platform-selector">
<button class="platform-btn active" onclick="switchPlatform('pc')">电脑端教程</button>
<button class="platform-btn" onclick="switchPlatform('mobile')">手机端教程</button>
</div>
<div id="pc-content" class="platform-content active">
<div class="step">
<h2><span class="step-number">1</span>获取音乐链接</h2>
<p>找到想要的歌曲,点击歌曲标题进入歌曲详情页。</p>
<p>在分享选项中选择"复制链接"。</p>
<div class="example">
<p>链接格式示例:</p>
<pre>https://music.163.com/song?id=<strong>1234567</strong>&userid=...</pre>
</div>
</div>
<div class="step">
<h2><span class="step-number">2</span>提取音乐ID</h2>
<p>在链接中找到"id="后面的数字,这串数字就是音乐ID。</p>
<div class="example">
<p>示例中的音乐ID为:</p>
<pre><strong>1234567</strong></pre>
</div>
</div>
</div>
<div id="mobile-content" class="platform-content">
<div class="step">
<h2><span class="step-number">1</span>获取音乐链接</h2>
<p>找到想要的歌曲,点击歌曲标题进入歌曲详情页。</p>
<p>在分享选项中选择"复制链接"。</p>
<div class="example">
<p>链接格式示例:</p>
<pre>分享Blanke/Luma的单曲《Survive (with Luma)》: <strong>http://163cn.tv/Cy3LHDc</strong> (来自@网易云音乐)</pre>
</div>
</div>
<div class="step">
<h2><span class="step-number">2</span>提取音乐ID</h2>
<p>将分享的链接粘贴到手机浏览器中并访问。</p>
<p>等待页面加载完成后,从浏览器地址栏复制完整的音乐链接。</p>
<div class="example">
<p>完整链接格式示例:</p>
<pre>https://music.163.com/#/song?id=<strong>1855644989</strong></pre>
</div>
</div>
<div class="step">
<h2><span class="step-number">3</span>提取音乐ID</h2>
<p>点击分享的链接中的网址到浏览器打开,进入后,网址将变成网易云完整音乐地址</p>
<p>在完整链接中找到"id="后面的数字,这串数字就是音乐ID。</p>
<div class="example">
<p>示例中的音乐ID为:</p>
<pre><strong>1855644989</strong></pre>
</div>
</div>
</div>
<a href="index.html" class="back-btn">返回首页</a>
</div>
</body>
</html>