forked from JERRY-SYSTEM/Glow_Team
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
694 lines (648 loc) · 29.8 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
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
<html version="4"><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=no minimal-ui">
<title>xx团队官网</title>
<meta name="keywords" content="xx团队 xx工作室">
<meta name="description" content="xx团队的官网">
<link rel="shortcut icon" href="https://">
<link rel="stylesheet" id="css-main" href="./oneui.min-5.6.css">
<script src="https://npm.elemecdn.com/[email protected]/dist/jquery.min.js"></script>
<style>
/* 滚动条整体样式 */
::-webkit-scrollbar {
width: 10px;
}
/* 滚动条轨道 */
::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.1);
}
/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
background: #888;
border-radius: 5px;
}
/* 滚动条滑块悬停效果 */
::-webkit-scrollbar-thumb:hover {
background: #555;
}
.fireworks {
position: absolute;
top: 0;
left: 0;
pointer-events: none;
}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.1/anime.min.js"></script><script src="chrome-extension://ekkkldemlhnacnfegdihallelglbnhnl/js/page_finish.js"></script><style type="text/css">
[mt_node=trans_loading]::after{
content: '';
vertical-align: middle !important;
width: 1em !important;
height: 1em !important;
display: inline-block !important;
margin: 0 4px !important;
border: 2px rgba(0, 0, 0, 0.25) solid !important;
border-top: 2px rgba(0, 0, 0, 1) solid !important;
border-radius: 50% !important;
padding: 0 !important;
-webkit-animation: immersive-translate-loading-animation 0.6s infinite linear !important;
animation: immersive-translate-loading-animation 0.6s infinite linear !important;
}
@keyframes immersive-translate-loading-animation {
from {
transform: rotate(0deg,0deg,0deg);
}
to {
transform: rotate(359deg,0deg,0deg);
}
}
</style><style type="text/css">[mt_node^=trans]{display: none !important;}</style><script src="https://speed.ilink-tk.com/spd/tongji?start=1720343123509" type="text/javascript" async="" charset="utf-8"></script></head><fatkun-drop-panel style="display: none;"></fatkun-drop-panel>
<body inmaintabuse="1">
<div id="page-container" class="page-header-fixed main-content-boxed">
<header id="page-header">
<div class="content-header">
<div class="d-flex align-items-center"><a class="fw-bold fs-lg tracking-wider text-dual me-2" id="headtitle">xx团队官网</a>
<div class="fs-xs fw-semibold py-1 px-2 rounded-pill bg-body-dark text-dark">
<i class="fab fa-unity text-primary"></i>
</div>
</div>
<div class="d-flex align-items-center">
<!--顶栏跳转按钮-->
<ul class="nav-main nav-main-horizontal nav-main-hover d-none d-lg-block me-2"><li class="nav-main-item"><a id="1topd" class="nav-main-link btn btn-alt-secondary px-3 d-none d-sm-inline-block" href="javascript:void(0)"><i class="fa fa-home"></i> <span class="nav-main-link-name"><strong>首页</strong></span></a></li><li class="nav-main-item"><a id="1work" class="nav-main-link btn btn-alt-secondary px-3 d-none d-sm-inline-block" href="javascript:void(0)"><i class="fa fa-boxes-stacked"></i> <span class="nav-main-link-name"><strong>作品</strong></span></a></li><li class="nav-main-item"><a id="1member" class="nav-main-link btn btn-alt-secondary px-3 d-none d-sm-inline-block" href="javascript:void(0)"><i class="fa fa-person-walking"></i> <span class="nav-main-link-name"><strong>成员</strong></span></a></li><li class="nav-main-item"><a id="1contact" class="nav-main-link btn btn-alt-secondary px-3 d-none d-sm-inline-block" href="javascript:void(0)"><i class="fab fa-qq"></i> <span class="nav-main-link-name"><strong>联系</strong></span></a></li></ul>
<!--顶栏亮暗模式和主题修改-->
<button type="button" class="btn btn-alt-secondary me-1" data-toggle="layout" data-action="dark_mode_toggle"><i class="far fa-moon"></i></button>
<div class="dropdown">
<button type="button" class="btn btn-alt-secondary me-2" id="themecss" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-brush"></i></button>
<div class="dropdown-menu dropdown-menu-end fs-sm smini-hide border-0" aria-labelledby="themecss">
<a class="dropdown-item fw-medium" data-toggle="layout" data-action="header_style_light" href="javascript:void(0)" data-theme="./themes/city.min-5.6.css"><span>顶栏浅色模式</span></a>
<a class="dropdown-item fw-medium" data-toggle="layout" data-action="header_style_dark" href="javascript:void(0)" data-theme="./themes/city.min-5.6.css"><span>顶栏深色模式</span></a>
</div>
</div>
</div>
</div>
<div id="page-header-loader" class="overlay-header bg-primary-lighter"><div class="content-header"><div class="w-100 text-center"><i class="fa fa-fw fa-circle-notch fa-spin text-primary"></i></div></div></div>
</header>
<main id="main-container">
<!--第一板块-->
<div id="topd" class="bg-body-extra-light bg-image" style="background-image: url("https://npm.elemecdn.com/[email protected]/images/background/day02.png");">
<div class="content content-full"><div class="row g-0 justify-content-center text-center"><div class="col-md-10 pt-7 pb-5">
<!--一言-->
<div class="d-inline-flex align-items-center space-x-1 fs-sm badge bg-success-light text-success mb-2 p-2">
<span>「 <span id="jinrishici-sentence">江天一色无纤尘,皎皎空中孤月轮。</span>」</span>
</div>
<!--主标题-->
<h1 class="fs-2 fw-bold mb-3">xx团队</h1>
<p class="fs-5 fw-medium text-muted mb-4 mx-xl-8">
<!--子标题-->
<span class="text-body-color fw-semibold">Nothing</span>
</p>
<a class="btn btn-alt-primary py-2 px-3 m-1 js-click-ripple-enabled" data-toggle="click-ripple" href="javascript:void(0)" id="gst" style="overflow: hidden; position: relative; z-index: 1;">
<i class="fa fa-fw fa-arrow-down opacity-50 me-1"></i> 现在开始
</a>
</div></div></div>
</div>
<!--About模块-->
<div id="feature" class="bg-body-light">
<div class="content"><div class="row py-4 text-center">
<div class="col-6 col-md-4 col-xl-3">
<div class="item item-rounded my-3 item-1x mx-auto text-amethyst bg-amethyst-lighter push"><i class="fa-fw fa-2x fa fa-boxes"></i></div>
<h4 class="mb-2">标题一</h4><p class="text-muted">内容一</p>
</div>
<div class="col-6 col-md-4 col-xl-3 ">
<div class="item item-rounded my-3 item-1x mx-auto text-flat bg-flat-lighter push"><i class="fa-fw fa-2x fa fa-laptop-code"></i></div>
<h4 class="mb-2">标题二</h4><p class="text-muted">内容二</p>
</div>
<div class="col-6 col-md-4 col-xl-3 ">
<div class="item item-rounded my-3 item-1x mx-auto text-smooth bg-smooth-lighter push"><i class="fa-fw fa-2x fa fa-cloud"></i></div>
<h4 class="mb-2">标题三</h4><p class="text-muted">内容三</p>
</div>
<div class="col-6 col-md-4 col-xl-3 ">
<div class="item item-rounded my-3 item-1x mx-auto text-city bg-city-lighter push"><i class="fa-fw fa-2x fa fa-user-lock"></i></div>
<h4 class="mb-2">标题四</h4><p class="text-muted">内容四</p>
</div>
</div></div>
</div>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
.carousel {
position: relative;
width: 100%;
max-width: 600px;
margin: auto;
}
.carousel img {
width: 100%;
display: none;
}
.carousel img.active {
display: block;
}
.indicator {
position: absolute;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
display: flex;
}
.dot {
height: 10px;
width: 10px;
margin: 0 5px;
background-color: #bbb;
border-radius: 50%;
display: inline-block;
}
.progress {
height: 10px;
background-color: #4CAF50;
border-radius: 5px;
transition: width 5s ease-in-out;
}
.dot::after {
content: '';
position: absolute;
top: 50%;
left: 100%;
height: 2px;
background-color: #4CAF50;
transition: all 5s ease-in-out;
}
.dot.active::after {
width: calc(100% + 10px); /* 假设圆点间距为10px */
left: calc(100% + 10px);
}
</style>
</head>
<body>
<div class="carousel">
<img class="active" src="114514.jpg" alt="Image 1">
<img src="114514.jpg" alt="Image 2">
<img src="114514.jpg" alt="Image 3">
<!-- ...之前的.dot元素 -->
<div class="dot"><div class="progress"></div></div>
<div class="dot"><div class="progress"></div></div>
<div class="dot"><div class="progress"></div></div>
<div class="dot"><div class="progress"></div></div>
<div class="dot"><div class="progress"></div></div>
</div>
</div>
<script>
let currentIndex = 0;
const slides = document.querySelectorAll('.carousel img');
const indicators = document.querySelectorAll('.dot .progress');
const numSlides = slides.length;
function goToSlide(index) {
slides[currentIndex].classList.remove('active');
indicators[currentIndex].style.width = '0%';
currentIndex = (index + numSlides) % numSlides;
slides[currentIndex].classList.add('active');
indicators[currentIndex].style.width = '100%';
}
function nextSlide() {
goToSlide(currentIndex + 1);
}
slides[currentIndex].classList.add('active');
indicators[currentIndex].style.width = '100%';
setInterval(() => {
nextSlide();
resetProgress();
}, 5000);
function updateProgress() {
indicators[currentIndex].style.width = '100%';
// 增加延迟来同步伪元素的动画
setTimeout(() => {
indicators[currentIndex].classList.add('active');
}, 50); // 稍微延迟以确保顺序
}
function resetProgress() {
indicators.forEach(indicator => {
indicator.style.width = '0%';
indicator.classList.remove('active');
});
}
</script>
<div id="hito" class="bg-body-extra-light">
<div class="content content-full"><div class="row py-5"><div class="order-md-0 col-md-0 text-center align-items-center"><div>
<h2 class="h1 fw-bold mb-2">Hitokoto</h2>
<p class="fs-lg fw-medium text-muted mb-4" id="hitokoto_text">求你,保护那孩子,消除灾厄,抹除祸事。哪怕⋯⋯那是我自己……</p>
<h3 class="h4 fw-bold mb-2" id="hitokoto_from">—— 「食灵」</h3>
</div></div></div></div>
</div>
<!--作品模块-->
<div id="work" class="bg-body-light">
<div class="content content-full">
<div class="py-5">
<div class="row mb-5">
<div class="col-md-0 text-center">
<h2 class="h1 fw-bold mb-2">
作 <span class="fw-normal">品</span>
</h2>
<p class="fs-lg fw-medium text-muted mb-0">
保持心脏震动 有人与你共鸣
</p>
<div class="col-lg-4">
<a class="block block-rounded block-link-pop overflow-hidden" href="./works.html?id=0">
<img class="img-fluid" src="https://npm.elemecdn.com/[email protected]/images/background/day02.png" alt="标题">
<div class="block-content">
<h4 class="mb-1">标题</h4>
<p class="fs-sm fw-medium mb-2">• <strong>2023-12-13 14:15:16</strong> •</p>
<p class="fs-sm text-muted">简介</p>
</div>
</a>
</div>
</div>
</div>
<div class="content content-boxed text-center"><div class="row"></div></div>
</div>
</div>
</div>
<!-- 文章 -->
<div id="zone" class="bg-body-extra-light">
<div class="content content-full"><div class="py-5">
<div class="row mb-5">
<div class="col-md-0 text-center">
<h2 class="h1 fw-bold mb-2">
<span class="fw-normal">动 态</span>
</h2>
<p class="fs-lg fw-medium text-muted mb-0">团队发展历史</p>
</div>
</div>
<div class="content content-boxed text-center"><div class="row" id="zoneslick">
<div class="col-lg-4"><a class="block block-rounded block-link-pop overflow-hidden">
<img class="img-fluid" src="https://npm.elemecdn.com/[email protected]/images/background/day02.png" alt="事件1">
<div class="block-content">
<h4 class="mb-1">事件1</h4>
<p class="fs-sm fw-medium mb-2">• <strong>2022-12-13</strong> •</p>
</div>
</a></div>
<div class="col-lg-4"><a class="block block-rounded block-link-pop overflow-hidden">
<img class="img-fluid" src="https://npm.elemecdn.com/[email protected]/images/background/day02.png" alt="事件2">
<div class="block-content">
<h4 class="mb-1">事件2</h4>
<p class="fs-sm fw-medium mb-2">• <strong>2022-12-13</strong> •</p>
</div>
</a></div>
<div class="col-lg-4"><a class="block block-rounded block-link-pop overflow-hidden">
<img class="img-fluid" src="https://npm.elemecdn.com/[email protected]/images/background/day02.png" alt="事件3">
<div class="block-content">
<h4 class="mb-1">事件3</h4>
<p class="fs-sm fw-medium mb-2">• <strong>2022-12-13</strong> •</p>
</div>
</a></div>
<div class="col-lg-4"><a class="block block-rounded block-link-pop overflow-hidden">
<img class="img-fluid" src="https://npm.elemecdn.com/[email protected]/images/background/day02.png" alt="事件4">
<div class="block-content">
<h4 class="mb-1">事件4</h4>
<p class="fs-sm fw-medium mb-2">• <strong>2022-12-13</strong> •</p>
</div>
</a></div>
<div class="col-lg-4"><a class="block block-rounded block-link-pop overflow-hidden">
<img class="img-fluid" src="https://npm.elemecdn.com/[email protected]/images/background/day02.png" alt="事件5">
<div class="block-content">
<h4 class="mb-1">事件5</h4>
<p class="fs-sm fw-medium mb-2">• <strong>2022-12-13</strong> •</p>
</div>
</a></div>
</div></div>
</div></div>
</div>
<!-- 成员 -->
<div id="member" class="bg-body-light">
<div class="content content-full">
<div class="py-5">
<div class="row mb-5 text-center"><div class="col-md-0">
<h2 class="h1 fw-bold mb-2"><span class="fw-normal">成 员</span></h2>
<p class="fs-lg fw-medium text-muted mb-0">一群充满活力的の开发者.</p>
</div></div>
<div class="row items-push">
<div class="col-md-6 col-xl-3" style="margin-top: 20px;">
<div class="block block-rounded text-center bg-image" style="background-image: url('https://npm.elemecdn.com/[email protected]/images/background/day02.png');" href="javascript:void(0)">
<div class="block-content block-content-full">
<img class="img-avatar img-avatar-thumb" src="https://q.qlogo.cn/headimg_dl?dst_uin=1814669296&spec=640" alt="XXX">
</div>
<div class="block-content block-content-full bg-primary-dark-op">
<p class="fw-semibold text-white mb-0">XXX</p>
<p class="fs-sm text-white-75 mb-2">成员1</p><a class="btn btn-sm btn-alt-primary me-1 js-bs-tooltip-enabled" href="https://wpa.qq.com/msgrd?v=3&uin=88888888&site=qq&menu=yes&jumpflag=1"><i class="fab fa-fw fa-qq"></i></a><a class="btn btn-sm btn-alt-primary me-1 js-bs-tooltip-enabled" href="https://baidu.com"><i class="fa fa-fw fa-link"></i></a><a class="btn btn-sm btn-alt-primary me-1 js-bs-tooltip-enabled" href="mailto:[email protected]"><i class="fab fa-fw fa-google"></i></a>
</div>
</div>
</div>
<div class="col-md-6 col-xl-3" style="margin-top: 20px;">
<div class="block block-rounded text-center bg-image" style="background-image: url('https://npm.elemecdn.com/[email protected]/images/background/day02.png');" href="javascript:void(0)">
<div class="block-content block-content-full">
<img class="img-avatar img-avatar-thumb" src="https://q.qlogo.cn/headimg_dl?dst_uin=1814669296&spec=640" alt="XXX">
</div>
<div class="block-content block-content-full bg-primary-dark-op">
<p class="fw-semibold text-white mb-0">XXX</p>
<p class="fs-sm text-white-75 mb-2">成员2</p><a class="btn btn-sm btn-alt-primary me-1 js-bs-tooltip-enabled" href="https://wpa.qq.com/msgrd?v=3&uin=https://wpa.qq.com/msgrd?v=3&uin=888888&site=qq&menu=yes&jumpflag=1&site=qq&menu=yes&jumpflag=1"><i class="fab fa-fw fa-qq"></i></a><a class="btn btn-sm btn-alt-primary me-1 js-bs-tooltip-enabled" href="https://baidu.com"><i class="fa fa-fw fa-link"></i></a><a class="btn btn-sm btn-alt-primary me-1 js-bs-tooltip-enabled" href="mailto:[email protected]"><i class="fab fa-fw fa-google"></i></a>
</div>
</div>
</div></div>
</div>
</div>
</div>
<!-- 联系方式 -->
<div id="contact" class="bg-body-extra-light">
<div class="content content-full">
<div class="py-5 py-md-4 text-center">
<h2 class="fw-bold mb-2">联系 <i class="fa fa-fw fa-heart text-city"></i> 方式</h2>
<p class="fs-lg fw-medium text-muted mb-4">
有问题欢迎联系我们
</p>
<a class="btn btn-warning py-2 px-3 m-1 js-click-ripple-enabled" data-toggle="click-ripple" href="https://im.qq.com" style="overflow: hidden; position: relative; z-index: 1;"><i class="nav-main-link-icon fab fa-qq"></i> QQ群</a>
<a class="btn btn-primary py-2 px-3 m-1 js-click-ripple-enabled" data-toggle="click-ripple" href="mailto:[email protected]" style="overflow: hidden; position: relative; z-index: 1;"><i class="nav-main-link-icon fab fa-google"></i> 邮箱</a>
</div>
</div>
</div>
<!-- 友链 -->
<div id="flinks" class="bg-body-light">
<div class="content content-full">
<div class="py-5">
<div class="row mb-5 text-center"><div class="col-md-0">
<h2 class="h1 fw-bold mb-2">友情 <span class="fw-normal">链接</span></h2>
<p class="fs-lg fw-medium text-muted mb-0">快来和我交朋友吧</p>
</div></div>
<div class="row items-push">
<div class="col-md-6 col-xl-4">
<a class="block block-rounded block-link-pop" target="_blank" href="https://baidu.com">
<div class="block-content block-content-full d-flex align-items-center justify-content-between">
<img class="img-avatar img-avatar48" src="https://www.baidu.com/favicon.ico" alt="Web Favicon">
<div class="ms-3 text-end">
<p class="fw-semibold mb-0">示例(百度1)</p>
<p class="fs-sm fw-medium text-muted mb-0">懂得都懂</p>
</div>
</div>
</a>
</div>
<div class="col-md-6 col-xl-4">
<a class="block block-rounded block-link-pop" target="_blank" href="https://baidu.com">
<div class="block-content block-content-full d-flex align-items-center justify-content-between">
<img class="img-avatar img-avatar48" src="https://www.baidu.com/favicon.ico" alt="Web Favicon">
<div class="ms-3 text-end">
<p class="fw-semibold mb-0">示例(百度2)</p>
<p class="fs-sm fw-medium text-muted mb-0">懂得都懂</p>
</div>
</div>
</a>
</div></div>
</div>
</div>
</div>
<footer class="bg-body-extra-light block-rounded" id="page-footer">
<div class="content content-full">
<div class="text-center">
<script id="LA-DATA-WIDGET" crossorigin="anonymous" charset="UTF-8" src=""></script>
</div>
<div class="row g-0 fs-sm border-top pt-3">
<div class="col-sm-6 order-sm-2 py-1 text-center text-sm-end" id="teamday">© 2022 - <span data-toggle="year-copy"></span><a class="fw-semibold text" href="https://zhanghanzhe666.github.io"> xx团队 </a></div>
<div class="col-sm-6 order-sm-1 py-1 text-center text-sm-start">
<a href="https://beian.miit.gov.cn" target="_blank" class="text fw-semibold"><span class="badge bg-success">
<i class="fa fa-location-arrow me-1"></i>无备案</span>
</a>
</div>
</div>
</div>
</footer>
</main></div>
<!--访问时提示框-->
<button type="button" data-bs-toggle="modal" data-bs-target="#welmodal" style="display: none;"></button>
<div class="modal fade" id="welmodal" tabindex="-1" aria-labelledby="welmodal" style="display: none;" aria-hidden="true">
<div class="modal-dialog modal-dialog-popout" role="document"><div class="modal-content"><div class="block block-rounded block-transparent mb-0"><div class="block-header block-header-default">
<h3 class="block-title"></h3>
<div class="block-options"><button type="button" class="btn-block-option" data-bs-dismiss="modal" aria-label="Close"><i class="fa fa-fw fa-times"></i></button></div>
</div>
<div class="block-content fs-sm"></div>
<div class="block-content block-content-full text-end bg-body"><button type="button" class="btn btn-sm btn-primary" data-bs-dismiss="modal">OK</button></div>
</div></div></div></div>
<!--Slick插件--><link rel="stylesheet" href="https://jprorwxhnlrnlj5q-static.micyjz.com/develop/YGKfApUWNUSO-brpKfUsDEhyO-GvUApKfKKUAU-jjBqrKjjnrorriklilr-jiBqrKjjiijroiqijjr/slick.css"><link rel="stylesheet" href="https://iqrorwxhnlrnlj5q-static.micyjz.com/develop/YGKfApUWNUSO-bgKfUANsZWTt-GvUApKfKKUAU-jnBqrKjjnroriioiqrr-jiBqrKjjiijroiqijjr/slick-theme.css"><script src="https://imrorwxhlnqqln5p-static.micyjz.com/develop/evUKpAfMaYJE-rdUKApDISRZO-GvUApKfKKUAU-jpBorKkjjrkiiilnjrm-joBqrKkjnrpiniojpii/slick.min.js"></script>
<script src="./index.js"></script>
<script>
fetch('https://v1.hitokoto.cn')
.then(response => response.json())
.then(data => {
const text = document.getElementById('hitokoto_text')
text.innerText = data.hitokoto
const from = document.getElementById('hitokoto_from')
var author = !!data.from ? data.from : "无名氏";
from.innerText = "—— " + (data.from_who || '') + "「" + author + "」"
})
.catch(console.error)
function createFireworks({ config, anime }) {
// 创建这个Canvas元素 <canvas id='fireworks' className='fireworks'></canvas> 给我代码
const canvasElement = document.createElement('canvas')
canvasElement.id = 'fireworks'
canvasElement.className = 'fireworks'
document.body.appendChild(canvasElement)
const defaultConfig = {
colors: config?.colors,
numberOfParticules: 20,
orbitRadius: {
min: 50,
max: 100
},
circleRadius: {
min: 10,
max: 20
},
diffuseRadius: {
min: 50,
max: 100
},
animeDuration: {
min: 900,
max: 1500
}
}
config = Object.assign(defaultConfig, config)
let pointerX = 0
let pointerY = 0
// sky blue
const colors = config.colors
const canvasEl = document.querySelector('.fireworks')
const ctx = canvasEl.getContext('2d')
/**
* 设置画布尺寸
*/
function setCanvasSize(canvasEl) {
canvasEl.width = window.innerWidth
canvasEl.height = window.innerHeight
canvasEl.style.width = `${window.innerWidth}px`
canvasEl.style.height = `${window.innerHeight}px`
}
/**
* update pointer
* @param {TouchEvent} e
*/
function updateCoords(e) {
pointerX =
e.clientX ||
(e?.touches[0] ? e.touches[0].clientX : e.changedTouches[0].clientX)
pointerY =
e.clientY ||
(e?.touches[0] ? e.touches[0].clientY : e.changedTouches[0].clientY)
}
function setParticuleDirection(p) {
const angle = (anime.random(0, 360) * Math.PI) / 180
const value = anime.random(
config.diffuseRadius.min,
config.diffuseRadius.max
)
const radius = [-1, 1][anime.random(0, 1)] * value
return {
x: p.x + radius * Math.cos(angle),
y: p.y + radius * Math.sin(angle)
}
}
/**
* 在指定位置创建粒子
* @param {number} x
* @param {number} y
* @returns
*/
function createParticule(x, y) {
const p = {
x,
y,
color: `rgba(${colors[anime.random(0, colors.length - 1)]},${anime.random(
0.2,
0.8
)})`,
radius: anime.random(config.circleRadius.min, config.circleRadius.max),
endPos: null,
draw() {}
}
p.endPos = setParticuleDirection(p)
p.draw = function () {
ctx.beginPath()
ctx.arc(p.x, p.y, p.radius, 0, 2 * Math.PI, true)
ctx.fillStyle = p.color
ctx.fill()
}
return p
}
function createCircle(x, y) {
const p = {
x,
y,
color: '#000',
radius: 0.1,
alpha: 0.5,
lineWidth: 6,
draw() {}
}
p.draw = function () {
ctx.globalAlpha = p.alpha
ctx.beginPath()
ctx.arc(p.x, p.y, p.radius, 0, 2 * Math.PI, true)
ctx.lineWidth = p.lineWidth
ctx.strokeStyle = p.color
ctx.stroke()
ctx.globalAlpha = 1
}
return p
}
function renderParticule(anim) {
for (let i = 0; i < anim.animatables.length; i++) {
anim.animatables[i].target.draw()
}
}
function animateParticules(x, y) {
const circle = createCircle(x, y)
const particules = []
for (let i = 0; i < config.numberOfParticules; i++) {
particules.push(createParticule(x, y))
}
anime
.timeline()
.add({
targets: particules,
x(p) {
return p.endPos.x
},
y(p) {
return p.endPos.y
},
radius: 0.1,
duration: anime.random(
config.animeDuration.min,
config.animeDuration.max
),
easing: 'easeOutExpo',
update: renderParticule
})
.add(
{
targets: circle,
radius: anime.random(config.orbitRadius.min, config.orbitRadius.max),
lineWidth: 0,
alpha: {
value: 0,
easing: 'linear',
duration: anime.random(600, 800)
},
duration: anime.random(1200, 1800),
easing: 'easeOutExpo',
update: renderParticule
},
0
)
}
const render = anime({
duration: Infinity,
update: () => {
ctx.clearRect(0, 0, canvasEl.width, canvasEl.height)
}
})
document.addEventListener(
'mousedown',
e => {
render.play()
updateCoords(e)
animateParticules(pointerX, pointerY)
},
false
)
setCanvasSize(canvasEl)
window.addEventListener(
'resize',
() => {
setCanvasSize(canvasEl)
},
false
)
}
window.createFireworks = createFireworks
</script>
<script>
const Fireworks = () => {
const fireworksColor = siteConfig('FIREWORKS_COLOR')
useEffect(() => {
// 异步加载
async function loadFireworks() {
loadExternalResource(
'https://cdn.bootcdn.net/ajax/libs/animejs/3.2.1/anime.min.js',
'js'
).then(() => {
loadExternalResource('/js/fireworks.js', 'js').then(() => {
if (window.anime && window.createFireworks) {
window.createFireworks({
config: { colors: fireworksColor },
anime: window.anime
})
}
})
})
}
loadFireworks()
return () => {
// 在组件卸载时清理资源
const fireworksElements = document.getElementsByClassName('fireworks')
while (fireworksElements.length > 0) {
fireworksElements[0].parentNode.removeChild(fireworksElements[0])
}
}
}, [])
return <></>
}
export default Fireworks
</script>
<script src="./oneui.app.min-5.6.js"></script><script src="chrome-extension://jjbepicnlfpbahnggmkpcaekidheionj/sm.bundle.js" data-pname="fatkun-mv3-new" data-asset-path="https://fkm3n.s3.ap-northeast-2.amazonaws.com"></script></body><volc-translate style="position: fixed; top: 0px; left: 0px; width: 0px; height: 0px; z-index: 2147483647;"></volc-translate></html>