-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
482 lines (401 loc) · 15 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
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
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content: ="width=device-width, initial-scale=1.0, maximum-scale =1.0, user-scalable=no">
<title>个人主页</title>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<link rel="icon" href="./MYlogo/logo_icon001.png" sizes="32x64" type="image/png">
<link rel="stylesheet" type="text/css" href="./css/cover.css">
<!-- <script src="https://cdn.jsdelivr.net/npm/hls.js"></script> -->
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?47373fe2689ee18d99e2c20e6c932157";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<style type="text/css">
</style>
</head>
<body>
<audio id="bgm1" onended="randplay()">
<source src="./MYmusic/Afterglow-Ed Sheeran.mp3">
<!-- <source src="./MYmusic/You all over me-Tylor Swift.flac"> -->
<!-- <source src="./MYmusic/Back to December-Tylor Swift.flac"> -->
<!-- <source src="./MYmusic/Crow-Xu Song.flac"> -->
<!-- <source src="./MYmusic/Empires-Ruelle.flac"> -->
<!-- <source src="./MYmusic/Everything I Need-Skylar Grey.flac"> -->
<!-- <source src="./MYmusic/Skinny Love-Birdy.mp3"> -->
<!-- <source src="./MYmusic/Iron-Woodkid.flac"> -->
<!-- <source src="./MYmusic/Everglow-Coldplay.flac"> -->
<!-- <source src="./MYmusic/Loving Strangers-Russian Red.mp3"> -->
<!-- <source src="./MYmusic/One Summer's Day-Joe Hisaishi.flac"> -->
<!-- <source src="./MYmusic/If I weren't me-Qian Jiangtao.flac"> -->
<!-- <source src="./MYmusic/That's Us-Anson Seabra.mp3"> -->
<!-- <source src="./MYmusic/You all over me-Tylor Swift.flac"> -->
<!-- <source src="./MYmusic/Lone braver-Eason.mp3"> -->
<!-- <source src="./MYmusic/Zero Eclipse.mp3"> -->
</audio>
<audio id="bgm2" onended="nextMusic2()">
<!-- <source src="./MYmusic/Next To Me-Imagine Dragons.flac"> -->
<source src="./MYmusic/Natural-Imagine Dragons.flac">
</audio>
<div class="div1" id="background1">
<video id="covervid-video" autoplay loop muted poster="./MYimg/background13.jpg" style="z-index: -9999;height: 100%;position: absolute;width: 100%;object-fit: cover;">
<!-- <source src="./MYvideo/dynamic_cover3/Legend-Of-Zelda.mp4" type="video/mp4"> -->
</video>
<!-- <video id="m_covervid-video" autoplay loop muted poster="./MYimg/wallhaven-6k7jxw.jpg" style="z-index: -9999;height: 2250px;position: absolute;width: 100%;object-fit: cover;">
<source src="./MYvideo/dynamic_cover3/m_Legend-Of-Zelda.mp4" type="video/mp4">
</video> -->
<img src="./MYicon/apple-music.png" id="playaudio" onclick="play()" alt="play audio">
<div id="music_name_column">
<p id="music_p" align="right"></p>
</div>
<img src="./MYlogo/logo_test004.png" id="logo" alt="mylogo">
<header id="navigation">
<div>
<nav>
<a class="nav-link" href="aboutme.html" target="_blank"> 个人介绍 </a>
<a class="nav-link" href="https://panmingyan.github.io/" target="_blank"> 动态 </a>
<a class="nav-link" href="test1.html" target="_blank"> 『敬请期待』 </a>
<a class="nav-link" href="photogallery.html" target="_blank"> 摄影展廊 </a>
<a class="nav-link" href="test2.html" target="_blank"> 『敬请期待』 </a>
<a class="nav-link" href="contactme.html" target="_blank"> 留言板 </a>
</nav>
</div>
</header>
<header id="m_navigation">
<input type="checkbox" id="toggler">
<label for="toggler">
<div class="hamburger-container">
<span></span>
<span></span>
</div>
</label>
<div class="nav-items">
<ul>
<a class="m_nav-link" href="aboutme.html" target="_blank"><li>个人介绍</li></a>
<a class="m_nav-link" href="https://panmingyan.github.io/" target="_blank"><li>动态</li></a>
<a class="m_nav-link" href="test1.html" target="_blank"><li style="font-size: 40px">『敬请期待』</li></a>
<a class="m_nav-link" href="photogallery.html" target="_blank"><li>摄影展廊</li></a>
<a class="m_nav-link" href="test2.html" target="_blank"><li style="font-size: 40px">『敬请期待』</li></a>
<a class="m_nav-link" href="contactme.html" target="_blank"><li>留言板</li></a>
</ul>
</div>
</header>
<div id="textshow">
<p id="textshow_p">
 M.Y.<br>多元世界
</p>
</div>
</div>
<!-- <div id="creator">
<div id="textshow002">
<img src="./MYimg/creator.jpg" id="creatorimg" alt="creatorimg">
<p id="textshow_p002">
一人 · 一伍
</p>
</div>
</div> -->
<!-- <div class="video_background">
<img src="./MYlogo/logo_test004.png" id="logo" alt="mylogo">
<div>
<p id="textshow_p003">
DJI航拍
</p>
</div>
<video class="covervid-video" autoplay loop muted poster="./MYimg/wallhaven-6k7jxw.jpg">
<source src="./MYvideo/DJI001.mp4" type="video/mp4">
</video>
</div>
-->
<!-- <div class="test" style="height: 50px;background-color: #111111">
</div> -->
<!-- <div id="test" style="height: 100px;background-color:white;">
</div> -->
<!-- <a href="https://www.zhihu.com/people/yiren-zhu-yiwu" style="text-decoration:none;">
知乎主页
</a>
-->
</body>
<script>
//var video = document.getElementById('covervid-video');
//var videoSrc = './MYvideo/dynamic/playlist.m3u8';
//if (Hls.isSupported()) {
//var hls = new Hls();
//hls.loadSource(videoSrc);
//hls.attachMedia(video);
// hls.on(Hls.Events.MANIFEST_PARSED, function() {
// video.play()
// });
//}
var playmusic = 0;
var pause_flag = 0;
var num_music = 1;
var solve = new Array();
var num = 0
var myMusic=document.getElementById("bgm1");
var myMusicImg = document.getElementById("playaudio");
// myMusic.pause();
var music_list = [
"./MYmusic/Afterglow-Ed Sheeran.mp3",
"./MYmusic/You all over me-Tylor Swift.flac",
"./MYmusic/If I weren't me-Qian Jiangtao.flac",
"./MYmusic/When You Say Nothing At All-Ronan Keating.mp3",
"./MYmusic/Back To December-Taylor Swift.mp3",
"./MYmusic/Rainbow-Kacey Musgraves.flac",
"./MYmusic/伟大的渺小-林俊杰.mp3",
"./MYmusic/No Turning Back-JJ Lin.mp3",
"./MYmusic/Easy On Me-Adele.mp3",
"./MYmusic/Shivers-Ed Sheeran.mp3",
// 10
"./MYmusic/u hurt me hurts u-Anson Seabra.mp3",
"./MYmusic/Photograph-Ed Sheeran.mp3",
"./MYmusic/Shape Of My Heart-Sting.mp3",
"./MYmusic/逝去的歌-旅行团.mp3",
"./MYmusic/孤勇者-陈奕迅.mp3",
"./MYmusic/Feels Like Home-Mike Waters.mp3",
"./MYmusic/That's When—Taylor Swift.flac",
"./MYmusic/Fearless—Taylor Swift.mp3",
"./MYmusic/Push & Pull—Georgia Webster.mp3",
"./MYmusic/发如雪—周杰伦.mp3",
//20
"./MYmusic/不为谁而作的歌—林俊杰.mp3",
"./MYmusic/Shots—Imagine Dragons.mp3",
"./MYmusic/Natural—Imagine Dragons.flac",
"./MYmusic/Lock Me Up—The Cab.mp3",
"./MYmusic/All Falls Down—Alan Walker.mp3",
"./MYmusic/Fire—Gavin DeGraw.mp3",
"./MYmusic/for him—Troye Sivan.flac",
"./MYmusic/You Don't Know Me—Ofenbach.flac",
"./MYmusic/所念皆星河—房东的猫.flac",
"./MYmusic/21 Guns—Green Day.mp3",
//30
"./MYmusic/Hold On—Justin Bieber.mp3",
"./MYmusic/Zero Eclipse—泽野弘之.mp3",
"./MYmusic/Shotgun—George Ezra.flac",
"./MYmusic/Call your name—泽野弘之.mp3",
"./MYmusic/Spoiler—Hyper.mp3",
"./MYmusic/Loving Strangers—Russian Red.flac",
"./MYmusic/Skinny Love—Birdy.mp3",
"./MYmusic/Homesick—Dua Lipa.flac",
"./MYmusic/きみと恋のままで—倉木麻衣.mp3",
"./MYmusic/Time After Time—倉木麻衣.mp3",
//40
"./MYmusic/If We Have Each Other—Alec Benjamin.flac",
"./MYmusic/The Flood—Joshua Hyslop.mp3",
"./MYmusic/弹唱—林俊杰.flac",
"./MYmusic/Everything I Need—Skylar Grey.flac",
"./MYmusic/Crawl Outta Love—ILLENIUM.mp3",
"./MYmusic/Reverie—ILLENIUM.mp3",
"./MYmusic/Next To Me—Imagine Dragons.mp3",
"./MYmusic/I Need You—M83.flac",
"./MYmusic/I Like Me Better—Lauv.mp3",
"./MYmusic/Oceans—Coasts.mp3",
//50
"./MYmusic/Everglow—Coldplay.mp3",
"./MYmusic/Off My Face—Justin Bieber.flac",
"./MYmusic/working—Tate McRae、Khalid.mp3",
"./MYmusic/It's Raining, It's Pouring—Anson Seabra.mp3",
"./MYmusic/Shadow Of Mine—Alec Benjamin.mp3",
"./MYmusic/The Joker And The Queen—Ed Sheeran&Taylor Swift.flac",
"./MYmusic/Letter—SHE'S.mp3",
"./MYmusic/I Won't Give Up—Jason Mraz.mp3",
"./MYmusic/邮差—王菲.mp3",
"./MYmusic/Rich Boy—Sara Kays.mp3",
//60
"./MYmusic/LOSER—米津玄師.mp3",
"./MYmusic/房间—刘瑞琦.mp3",
"./MYmusic/鲸鱼电台—房东的猫.mp3",
"./MYmusic/All of the Stars—Ed Sheeran.flac",
"./MYmusic/Lego House—Ed Sheeran.flac",
"./MYmusic/Running Up That Hill—Kate Bush.mp3",
"./MYmusic/Phoenix—Netrum、Halvorsen.mp3",
"./MYmusic/The A Team—Ed Sheeran.flac",
"./MYmusic/You Are The Reason—Calum Scott.flac",
"./MYmusic/Late Night Talking—Harry Styles.flac",
//70
"./MYmusic/Stay—Lowkeylina.flac",
"./MYmusic/Complete Mess—5 Seconds of Summer.mp3"
]
var music_p_list = [
"Afterglow—Ed Sheeran",
"You all over me—Taylor Swift",
"如果我不是我—钱江涛",
"When You Say Nothing At All—Ronan Keating",
"Back to December—Taylor Swift",
"Rainbow—Kacey Musgraves",
"伟大的渺小—林俊杰",
"交换余生—林俊杰",
"Easy On Me—Adele",
"Shivers—Ed Sheeran",
"u hurt me hurts u—Anson Seabra",
"Photograph—Ed Sheeran",
"Shape Of My Heart—Sting",
"逝去的歌—旅行团",
"孤勇者—陈奕迅",
"Feels Like Home—Mike Waters",
"That's When—Taylor Swift",
"Fearless—Taylor Swift",
"Push & Pull—Georgia Webster",
"发如雪—周杰伦",
"不为谁而作的歌—林俊杰",
"Shots—Imagine Dragons",
"Natural—Imagine Dragons",
"Lock Me Up—The Cab",
"All Falls Down—Alan Walker",
"Fire—Gavin DeGraw",
"for him—Troye Sivan",
"You Don't Know Me—Ofenbach",
"所念皆星河—房东的猫",
"21 Guns—Green Day",
"Hold On—Justin Bieber",
"Zero Eclipse—泽野弘之",
"Shotgun—George Ezra",
"Call your name—泽野弘之",
"Spoiler—Hyper",
"Loving Strangers—Russian Red",
"Skinny Love—Birdy",
"Homesick—Dua Lipa",
"きみと恋のままで—倉木麻衣",
"Time After Time—倉木麻衣",
"If We Have Each Other—Alec Benjamin",
"The Flood—Joshua Hyslop",
"弹唱—林俊杰",
"Everything I Need—Skylar Grey",
"Crawl Outta Love—ILLENIUM",
"Reverie—ILLENIUM",
"Next To Me—Imagine Dragons",
"I Need You—M83",
"I Like Me Better—Lauv",
"Oceans—Coasts",
"Everglow—Coldplay",
"Off My Face—Justin Bieber",
"working—Tate McRae、Khalid",
"It's Raining, It's Pouring—Anson Seabra",
"Shadow Of Mine—Alec Benjamin",
"The Joker And The Queen—Ed&Taylor",
"Letter—SHE'S",
"I Won't Give Up—Jason Mraz",
"邮差—王菲",
"Rich Boy—Sara Kays",
"LOSER—米津玄師",
"房间—刘瑞琦",
"鲸鱼电台—房东的猫",
"All of the Stars—Ed Sheeran",
"Lego House—Ed Sheeran",
"Running Up That Hill—Kate Bush",
"Phoenix—Netrum、Halvorsen",
"The A Team—Ed Sheeran",
"You Are The Reason—Calum Scott",
"Late Night Talking—Harry Styles",
"Stay—Lowkeylina",
"Complete Mess—5 Seconds of Summer"
]
var MUSIC_NUM = 72
function sleep(time){
var timeStamp = new Date().getTime();
var endTime = timeStamp + time;
while(true){
if (new Date().getTime() > endTime){
return;
}
}
}
function playMusic()
{
if (pause_flag != 1){
x = Math.floor(Math.random()*MUSIC_NUM);
while(1){
if(solve.includes(x)){
x = Math.floor(Math.random()*MUSIC_NUM);
}else{
solve[num] = x;
num += 1
break;
}
}
myMusic.src = music_list[x]
}
y = document.getElementById("music_p");
y.innerHTML = music_p_list[x];
myMusic.play();
}
function pauseMusic()
{
myMusic.pause();
}
function play()
{
// $('#playaudio').attr('src','./MYicon/pause.png');
if (playmusic == 0){
myMusicImg.src = "./MYicon/pause.png";
playMusic();
playmusic = 1;
}else{
myMusicImg.src = "./MYicon/apple-music.png";
pause_flag = 1;
pauseMusic();
playmusic = 0;
}
}
function nextMusic1()
{
// myMusic_src.src = "./MYmusic/Afterglow-Ed Sheeran.mp3";
myMusicImg.src = "./MYicon/apple-music.png";
myMusic=document.getElementById("bgm1");
myMusic.pause();
playmusic = 0;
}
function nextMusic2()
{
// myMusic_src.src = "./MYmusic/Afterglow-Ed Sheeran.mp3";
if(num_music == 1){
myMusic=document.getElementById("bgm2");
myMusic.play();
num_music = 2;
}else{
myMusicImg.src = "./MYicon/apple-music.png";
myMusic=document.getElementById("bgm1");
myMusic.pause();
playmusic = 0;
num_music = 1;
}
}
function randplay()
{
//playmusic = 0;
pause_flag = 0;
// playMusic();
// playmusic = 1;
// myMusic=document.getElementById("bgm1");
// play();
myMusic=document.getElementById("bgm1");
if (pause_flag != 1){
x = Math.floor(Math.random()*MUSIC_NUM);
while(1){
if(solve.includes(x)){
x = Math.floor(Math.random()*MUSIC_NUM);
}else{
solve[num] = x;
num += 1
break;
}
}
myMusic.src = music_list[x]
}
y = document.getElementById("music_p");
y.innerHTML = music_p_list[x];
myMusic.play();
myMusic.pause();
sleep(100);
myMusic.play();
// play();
// playMusic();
// playmusic = 1;
}
</script>
</html>