-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
2247 lines (2016 loc) · 89.1 KB
/
Copy pathindex.html
File metadata and controls
2247 lines (2016 loc) · 89.1 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
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
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!--
* @Author: 木白广木林
* @Date: 2023-12-8 15:15:14
* @LastEditors: 木白广木林
* @LastEditTime: 2024-05-27 08:02:14
* @FilePath: \Index\index.html
-->
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- 音乐播放器样式 -->
<link rel="stylesheet" href="font/iconfont.css">
<link rel="stylesheet" href="css/style.css">
<!-- 网页标题改变 -->
<script>document.addEventListener('visibilitychange',function(){if(document.visibilityState=='hidden'){normal_title=document.title;document.title='别走嘛,我会想你的';}else{document.title='回来啦!爱你哟~'}});</script>
<title>木白广木林 </title>
<script src="./js/jquery-3.4.1.min.js"></script>
<!-- 网页标题图标 -->
<!-- 如果放在body之内是无效的要放在<body>之前 -->
<link rel="icon" type="image/x-icon" href="./img/gf.png" />
<!-- 加载页面 -->
<link rel="stylesheet" href="./css/loader.css">
<div class="fullscreen" id="fullscreenDiv" >
<div class="loader"></div>
</div>
<style>
.fullscreen {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #000000; /* 初始颜色为半透明黑色 */
/* background: linear-gradient(to top,#515c6f,#00348d); */
opacity: 0.95; /* 初始透明度为1,完全不透明 */
transition: opacity 1s ease-in-out; /* 添加渐变效果 */
/* pointer-events: none; */
/* 禁止全屏元素接受鼠标事件 */
z-index: 101; /* 确保在最上层 */
/* overflow: auto; */
/* 启用滚动条 */
}
</style>
<!-- <script src="./js/jquery-3.4.1.min.js"></script> -->
<script>
// 获取全屏元素
var fullscreenDiv = document.getElementById('fullscreenDiv');
// 禁止滚动
// fullscreenDiv.style.overflow = 'hidden';
// 3秒后触发渐变消失
setTimeout(function() {
// fullscreenDiv.style.overflow = 'hidden';
fullscreenDiv.style.opacity = '0';
// 在动画结束后,将全屏元素移除或隐藏
fullscreenDiv.addEventListener('transitionend', function() {
fullscreenDiv.style.display = 'none'; // 隐藏全屏元素
});
}, 2500);
</script>
<div>
<i id="plane" ><img alt="" class="planes" src="./img/plane.png"></i>
</div>
<style>
.planes{
width: 30px ;
height: 30px;
animation: float 4s ease-in-out infinite;
z-index: 110;
pointer-events: none;
/* 禁止图片接收鼠标事件 */
}
/* 漂浮效果 */
@keyframes float {
0% {
transform: translateY(0px);
}
50% {
transform: translateY(-20px);
}
100% {
transform: translateY(0px);
}
}
</style>
<script>
// event.stopPropagation();
let plane=document.getElementById('plane');
let deg=0,ex=0,ey=0,vx=0,vy=0,count=0;
window.addEventListener('mousemove',(e)=>{
ex= window.pageXOffset + e.x - plane.offsetLeft - plane.clientWidth - 10;
ey= window.pageYOffset + e.y - plane.offsetTop - plane.clientHeight + 16 ;
deg=360*Math.atan(ey/ex)/(2*Math.PI)+45;
if(ex<0){
deg+=180;
}
count=0;
})
function draw(){
plane.style.transform='rotate('+deg+'deg)';
if(count<75){
vx+=ex/75;
vy+=ey/75;
}
plane.style.left= window.pageXOffset + vx+'px';
plane.style.top= window.pageYOffset + vy+'px';
count++;
}
setInterval(draw, 5);
</script>
<!-- 侧边栏 -->
<!-- <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> -->
<div id="mySidebar" class="sidebar" onmouseover="toggleSidebar()" onmouseout="toggleSidebar()">
<!-- <a href="./nixie.html"><i class="material-icons">info</i><span class="icon-text">辉光管(Nixie tube) -->
<a href="./nixie/">
<span class="icon-text"><img alt="" src="./img/logo-tableau.svg" style="float: left;width: 35px;height: 35px; margin-right: 30px;vertical-align: middle;background-color: #ffffffb6;border-radius: 50px;">
辉光管-Nixie tube
<style>
#clock-surface {
position: relative;
margin-left: 50px;
top: 15px;
/* left: 45px; */
padding-bottom: 35px;
/* width: 100%; */
text-align:left;
}
.nixie-container {
display: inline-block;
width: 10px;
height: 20px;
margin: 0 10px;
}
.nixie-background {
position: absolute;
width: 10px;
height: 20px;
}
.nixie-background.active {
/* background-color: rgba(255, 189, 23, 0.1); */
-webkit-filter: blur(25px);
-ms-filter: blur(25px);
-moz-filter: blur(25px);
filter:blur(50px);
}
.nixie-container .nixie-number {
/* 单个数字 */
display: block;
position: absolute;
width: 30px;
}
.nixie-number .nixie-number-part {
fill: none;
stroke: rgba(86, 43, 43, 0.418);
/* 字体宽度 */
stroke-width: 10;
stroke-linecap: round;
stroke-miterlimit: 10;
}
.nixie-number.active .nixie-number-part {
/* stroke: #ff5900; */
stroke: #ff4d00;
}
.white-space {
/* 间隙 */
display: inline-block;
width: 10px;
}
</style>
<script>
$(document).ready(function () {
initializeNixieTube(6, 2);
update();
setInterval("update()", 1000);
});
function initializeNixieTube(number, whiteSpaceSpan) {
var template = $('#nixietube-template').html();
var targetHTML = "";
var whiteSpace = "<div class='white-space'></div>";
var CurrentTubeNumber = 0;
while (CurrentTubeNumber < number) {
if (whiteSpaceSpan > 0) {
if (CurrentTubeNumber % whiteSpaceSpan == 0 && CurrentTubeNumber > 0)
$('#clock-surface').append(whiteSpace);
}
targetHTML = template.replace("[order]", CurrentTubeNumber);
$('#clock-surface').append(targetHTML);
CurrentTubeNumber++;
}
}
function update() {
var date = new Date();
var hour = date.getHours();
var minute = date.getMinutes();
var second = date.getSeconds();
var num0 = Math.floor(hour / 10);
var num1 = hour - 10 * num0;
var num2 = Math.floor(minute / 10);
var num3 = minute - 10 * num2;
var num4 = Math.floor(second / 10);
var num5 = second - 10 * num4;
for (var i = 0; i < 6; i++) {
var temp = eval('num' + i);
var grandSelector = "#nixie-tube-" + i;
var allNumbers = grandSelector + " .nixie-number";
var childSelector = grandSelector + " .nixie-number-" + temp;
var background = grandSelector + " .nixie-background";
$(allNumbers).each(function () {
if ($(this).hasClass('active')) {
$(this).removeClass('active');
}
});
if ($(background).hasClass('active')) {
$(background).removeClass('active');
}
$(childSelector).addClass('active');
$(background).addClass('active');
}
}
</script>
<div id='nixietube-template' style='display:none;'>
<div id='nixie-tube-[order]' class='nixie-container'>
<div class='nixie-background'></div>
<svg class='nixie-number nixie-number-1' viewBox="0 0 256 512" version="1.1">
<line class="nixie-number-part" x1="128" y1="10" x2="66" y2="72"/>
<line class="nixie-number-part" x1="128" y1="492" x2="128" y2="10"/>
</svg>
<svg class='nixie-number nixie-number-2' viewBox="0 0 256 512" version="1.1">
<path class="nixie-number-part"
d="M38.3,66.4C59.3,32,91.7,10,128,10c63.5,0,115,67.5,115,150.7s-51.5,150.7-115,150.7"/>
<path class="nixie-number-part" d="M13,496c0-102,51.5-184.7,115-184.7"/>
<line class="nixie-number-part" x1="13" y1="496" x2="227.3" y2="496"/>
</svg>
<svg class='nixie-number nixie-number-0' viewBox="0 0 256 512" version="1.1">
<ellipse class="nixie-number-part" cx="128" cy="256" rx="115" ry="246"/>
</svg>
<svg class='nixie-number nixie-number-3' viewBox="0 0 256 512" version="1.1">
<path class="nixie-number-part"
d="M22,410.8c16.8,46.4,57.9,86.3,106,85.9c59.7-0.5,115-63,115-140.6c0-74.1-50.4-126.7-93.5-138.1"/>
<line class="nixie-number-part" x1="149.5" y1="218" x2="243" y2="13"/>
<line class="nixie-number-part" x1="27.3" y1="13" x2="243" y2="13"/>
</svg>
<svg class='nixie-number nixie-number-9' viewBox="0 0 256 512" version="1.1">
<circle class="nixie-number-part" cx="128" cy="128" r="115"/>
<line class="nixie-number-part" x1="237.4" y1="163.7" x2="135.8" y2="499"/>
</svg>
<svg class='nixie-number nixie-number-4' viewBox="0 0 256 512" version="1.1">
<line class="nixie-number-part" x1="196.2" y1="13" x2="196.2" y2="496.7"/>
<line class="nixie-number-part" x1="196.2" y1="356.1" x2="22" y2="356.1"/>
<line class="nixie-number-part" x1="196.2" y1="13" x2="22" y2="356.1"/>
</svg>
<svg class='nixie-number nixie-number-8' viewBox="0 0 256 512" version="1.1">
<ellipse class="nixie-number-part" cx="128" cy="129" rx="99.2" ry="116"/>
<ellipse class="nixie-number-part" cx="128" cy="370.8" rx="112.5" ry="125.8"/>
</svg>
<svg class='nixie-number nixie-number-5' viewBox="0 0 256 512" version="1.1">
<path class="nixie-number-part"
d="M38.3,442.6C59.3,477,91.7,499,128,499c63.5,0,115-67.5,115-150.7s-51.5-150.7-115-150.7"/>
<path class="nixie-number-part" d="M13,13c0,102,51.5,184.7,115,184.7"/>
<line class="nixie-number-part" x1="13" y1="13" x2="227.3" y2="13"/>
</svg>
<svg class='nixie-number nixie-number-7' viewBox="0 0 256 512" version="1.1">
<line class="nixie-number-part" x1="15.5" y1="13" x2="240.5" y2="13"/>
<line class="nixie-number-part" x1="128" y1="496.7" x2="240.5" y2="13"/>
</svg>
<svg class='nixie-number nixie-number-6' viewBox="0 0 256 512" version="1.1">
<circle class="nixie-number-part" cx="128" cy="384" r="115"/>
<line class="nixie-number-part" x1="18.6" y1="348.3" x2="120.2" y2="13"/>
</svg>
</div>
</div>
<div id='clock-surface'></div>
</span></a><br>
<a href="./kururu/">
<img alt="" src="./img/logo-electron.svg" style="float: left;width: 35px;height: 35px; margin-right: 30px;vertical-align: middle;background-color: #ffffffb6;border-radius: 50px;"><span class="icon-text" face="comic sans ms" >万恶之源-miHoYo</span></a><br>
<a rel="noopener" href="./daily/" ><img alt="" src="./img/codepen-icon.svg" style="float: left;width: 35px;height: 35px; margin-right: 30px;vertical-align: middle;background-color: #ffffffb6;border-radius: 50px;"><span class="icon-text"></span>日常</a><br>
<a rel="noopener" href="./apiao/"><img alt="" src="./img/fitness-outline.svg" style="float: left;width: 35px;height: 35px; margin-right: 30px;vertical-align: middle;background-color: #ffffffb6;border-radius: 50px;"><span class="icon-text"></span>可耐的阿飘</a><br>
<a rel="noopener" href="https://2017.makemepulse.com/" target="_blank"><img alt="" src="./img/bonfire-outline.svg" style="float: left;width: 35px;height: 35px; margin-right: 30px;vertical-align: middle;background-color: #ffffffb6;border-radius: 50px;"><span class="icon-text"></span>优秀学习案例</a>
<style>
.sidebar {
height: 100%;
width: 85px;
position: fixed;
z-index: 1;
top: 0;
left: 0;
background-color: #000000;
opacity: 0.8;
transition: 0.5s;
overflow-x: hidden;
padding-top: 200px;
white-space: nowrap;
}
.sidebar a {
padding: 8px 8px 8px 26px;
text-decoration: none;
font-size: 25px;
color: #afacac;
display: block;
}
.sidebar a:hover {
color: #ffffff;
}
main .sidebar {
position: absolute;
top: 0;
right: 35px;
font-size: 36px;
margin-left: 70px;
}
.material-icons,
.icon-text {
vertical-align: middle;
}
.material-icons {
padding-bottom: 3px;
margin-right: 70px;
}
#main {
position: absolute;
top: 80px;
padding: 16px;
margin-left: 86px;
transition: margin-left 0.5s;
}
@media screen and (max-height: 450px) {
.sidebar {
padding-top: 15px;
}
.sidebar a {
font-size: 18px;
}
}
</style>
<script>
var mini = true;
function toggleSidebar() {
if (mini) {
// console.log("opening sidebar");
// 展开宽度
document.getElementById("mySidebar").style.width = "370px";
document.getElementById("main").style.marginLeft = "370px";
this.mini = false;
} else {
// console.log("closing sidebar");
document.getElementById("mySidebar").style.width = "85px";
document.getElementById("main").style.marginLeft = "85px";
this.mini = true;
}
}
</script>
</div>
<!-- 音乐播放器样式 -->
<div id="main">
<body >
<div id="player">
<!-- 歌曲信息模块 -->
<div id="player-content1">
<!-- 歌曲名 -->
<div class="music-name"></div>
<!-- 歌手名 -->
<div class="artist-name"></div>
<!-- 歌曲时间 -->
<div class="time">
<!-- 当前播放的时间 -->
<div class="current-time"></div>
<!-- 歌曲总时长 -->
<div class="total-time"></div>
</div>
<!-- 进度条 -->
<div id="s-area">
<!-- 鼠标移动到进度条上,显示的时间信息 -->
<div id="ins-time"></div>
<!-- 鼠标移动到进度条上,进度条变暗部分-->
<div id="s-hover"></div>
<!-- 表示当前歌曲播放进度的蓝色进度条 -->
<div id="seek-bar"></div>
</div>
</div>
<!-- 控制模块 -->
<div id="player-content2">
<!-- 左侧歌曲封面旋转模块 -->
<div class="music-imgs">
<!-- 封面图 -->
<div class="img"></div>
<!-- 歌曲缓冲时的提示文字 -->
<div id="buffer-box">缓冲中…</div>
</div>
<!-- 右侧歌曲操作模块 -->
<div class="player-controls">
<!-- 上一首按钮 -->
<div class="btns prev iconfont"></div>
<!-- 暂停/播放 按钮 -->
<div class="btns play-pause icon-jiediankaishi iconfont"></div>
<!-- 下一首按钮 -->
<div class="btns next iconfont"></div>
</div>
</div>
</div>
<script src="js/jquery-3.4.1.min.js"></script>
<script src="js/index.js"></script>
</body>
<p style="font-size: large;color: white;font-family: fangsong;">/ 休对故人思故国</p>
<p style="font-size: large;color: white;font-family: fangsong;"> 且将新火试新茶</p>
<h2 style="color: white;font-family: fangsong;font-size: xx-large;"> 诗酒趁年华 /</h2>
</div>
<!-- 回到顶部按钮 -->
<style>
/*星星特效背景*/
body {
background: radial-gradient(200% 100% at bottom center, #f7f7b6, #e96f92, #75517d, #1b2947);
background: radial-gradient(220% 105% at top center, #1b2947 10%, #75517d 40%, #e96f92 65%, #f7f7b6);
background-attachment: fixed;
/* 阻止用户代理表 */
margin: 0 !important;
}
@keyframes rotate {
0% {
transform: perspective(400px) rotateZ(20deg) rotateX(-40deg) rotateY(0);
}
100% {
transform: perspective(400px) rotateZ(20deg) rotateX(-40deg) rotateY(-360deg);
}
}
#stars {
transform: perspective(500px);
transform-style: preserve-3d;
position: fixed;
perspective-origin: 50% 100%;
left: 50%;
animation: rotate 60s infinite linear;
bottom: 0;
z-index: -1;
}
.star {
width: 2px;
height: 2px;
background: #f7f7b8;
position: fixed;
top: 0px;
left: 0;
backface-visibility: hidden;
}
</style>
</head>
<table width="100%" >
<body>
<!-- <body class="cursor"> -->
<!-- 星星特效 -->
<div id="stars">
</div>
<link rel="stylesheet" href="./css/80.css">
<script>
(function () {
let starsCount = 521; //星星数量
let distance = 800;//间距
let parentStarts = document.getElementById("stars");
for (let i = 0; i < starsCount; i++) {
//封装一个函数 执行异步操作
(function(i){
setTimeout(function(){
let childStart = document.createElement("div");
childStart.setAttribute("class", 'star');
parentStarts.appendChild(childStart);
let item = parentStarts.children[i];
let speed = 0.2 + (Math.random() * 1);
let thisDistance = distance + (Math.random() * 300);
// console.log(parentStarts);
// console.log(i);
item.style.transformOrigin = "0 0 " + thisDistance + "px";
item.style.transform = "translate3d(0,0,-" + thisDistance + "px) rotateY(" + (Math.random() * 360) + "deg) rotateX(" + (Math.random() * -50) + "deg) scale(" + speed + "," + speed + ")";
},1000*i)
})(i)
}
})();
</script>
<table >
<tr height="800px">
<td>
<!-- 𝘽𝘼𝙄 ✨𝘽𝘼𝙄𝙂𝙐𝘼𝙉𝙂𝙎𝙀𝙉 𝙔𝙮 -->
<style>
.texttype{
font-family: 'fangsong';
display: inline-block;
position: absolute;
font-size: 60px;
margin-top: 100px;
margin-bottom: 200px;
left: 30%;
height: 60px;
line-height: 60px;
color: rgb(255, 255, 255);
}
.texttype::after{
content: ' ';
position: absolute;
right: -10px;
top: -10px;
height: 80px;
width: 5px;
background-color: #fff;
animation: san 1.5s steps(30) infinite;
}
@keyframes san{
0%,100%{
background-color: #ffffff ;
/* height: 80px; */
}
50%{
background-color: transparent;
/* height: 30px; */
}
}
</style>
<body>
<h1>
<span class="texttype" ></span>
</h1>
<script>
<!-- 获取.text标签 -->
const texttype = document.querySelector('.texttype');
// <!-- 定义数组,里面放上文本 -->
const txt =["亻尔女子,我是木白广木林。","欢→迎↗光↑临↓↑","⎛⎝ ︵ ⎠⎞ ✨𝘽𝙮-𝘽𝘼𝙄𝙂𝙐𝘼𝙉𝙂𝙎𝙀𝙉"];
// <!-- 定义当前要显示的字符串的第几个字符 -->
var index=0;
// <!-- 定义文本数组的下标 -->
var xiaBiao= 0;
// <!-- 定义huan,拿来判断是要实现打字还是删除字效果,初始为真 -->
var huan = true;
// <!-- 定义一个定时器,200毫秒执行一次 -->
var timer = 0;
setInterval(function(){
// <!-- huan为真 -->
if(huan){
// <!-- 给.text标签添加字符,用.slice方法 -->
texttype.innerHTML = txt[xiaBiao].slice(0,++index);
// console.log(index)
}
else if(timer<=1){
// <!-- 给.text标签删除字符,用.slice方法 -->
texttype.innerHTML = txt[xiaBiao].slice(0,index--);
// console.log(index)
}
// <!-- 判断当前index是否为当前字符串长度了+3了 ,+3是为了打完后多等会,多走3个啥也不做的轮回-->
if(index==txt[xiaBiao].length+3)
{
// <!-- huan变为假,开始执行删除文字效果 -->
huan = false;
}
// <!-- 如果删完了 -->
else if(index<0)
{
// <!-- index=0,huan为真,从头开始打字 -->
index = 0;
timer =timer + 1;
// console.log(timer); 显示计数器次数
huan = true;
// <!-- 数组下标加1 -->
xiaBiao++;
if(xiaBiao>=txt.length)
{
// <!-- 如果数组下标超过了,又回到0 -->
xiaBiao=0;
}
}
},200)
</script>
</body>
</td>
</tr>
</table>
</body>
</table>
<!-- 轮播图 -->
<body>
<style>
.container{
position: relative;
margin-top: 400px;
margin-bottom: -200px;
left:50%;
/* top:50%; */
transform: translate(-50%,-50%);
width: 1200px;
height: 630px;
/* padding: 50px; */
background-color: #000000;
border-radius: 90px;
box-shadow: 0 30px 50px #dbdbdb;
}
#slide{
width:max-content;
margin-top:50px;
z-index: 1;
}
.item{
width:200px;
height:300px;
background-position: 50% 50%;
display: inline-block;
transition: 0.5s;
background-size: cover;
position: absolute;
z-index: 1;
top:50%;
transform: translate(0,-50%);
border-radius: 20px;
box-shadow: 0 30px 50px #505050;
}
.item:nth-child(1),
.item:nth-child(2){
left:0;
top:0;
transform: translate(0,0);
border-radius: 90px;
width:100%;
height:100%;
box-shadow: none;
}
.item:nth-child(3){
left:75%;
}
.item:nth-child(4){
left:calc(75% + 220px);
}
.item:nth-child(5){
left:calc(75% + 440px);
}
.item:nth-child(n+6){
left:calc(75% + 660px);
opacity: 0;
}
.item .content{
position: absolute;
top:50%;
left:100px;
width:300px;
text-align: left;
padding:0;
color:#eee;
transform: translate(0,-50%);
display: none;
font-family: system-ui;
}
.item:nth-child(2) .content{
display: block;
z-index: 2;
}
.item .name{
font-size: 40px;
font-weight: bold;
opacity: 0;
animation:showcontent 1s ease-in-out 1 forwards
}
.item .des{
margin:20px 0;
opacity: 0;
animation:showcontent 1s ease-in-out 0.3s 1 forwards
}
.item button{
padding:10px 20px;
border:none;
opacity: 0;
animation:showcontent 1s ease-in-out 0.6s 1 forwards
}
@keyframes showcontent{
from{
opacity: 0;
transform: translate(0,100px);
filter:blur(33px);
}to{
opacity: 1;
transform: translate(0,0);
filter:blur(0);
}
}
.buttons{
position: absolute;
bottom:30px;
z-index: 10;
text-align: center;
left: 80%;
/* width:100%; */
}
.buttons button{
width:50px;
height:50px;
border-radius: 50%;
border:1px solid #555;
transition: 0.5s;
}.buttons button:hover{
background-color: #83abc3;
}
</style>
<div class="container">
<div id="slide">
<div class="item" style="background-image: url(./img/1.jpg);">
<div class="content">
<div class="name" style="color: #000000;">谨防诈骗</div>
<div class="des" style="color: #000000;padding-left: 10px;">“我有一个朋友,她非常善良。”</div>
</br>
<button onclick="window.open('https://www.bilibili.com/video/BV1GJ411x7h7/?spm_id_from=333.788.recommend_more_video.-1&vd_source=d6c02133079fe1c34dfbb021bc307b73') " class="but">See more</button>
<style>
.but{
background-color:#656565;
color:white;
width: 100px;
height: 45px;
border:0;
font-size: 16px;
box-sizing: content-box;
border-radius: 5px;
margin-left: 250px;
}
button:hover{
background-color: #840200;
}
</style>
</div>
</div>
<div class="item" style="background-image: url(./img/2.jpg);">
<div class="content">
<div class="name">爱莉希雅 Elysian</div>
<div class="des">神爱世人</div>
<!-- <button>See more</button> -->
</div>
</div>
<div class="item" style="background-image: url(./img/3.jpg);">
<div class="content">
<div class="name" style="color: #000000;">如飞花般绚烂</div>
<div class="des" style="color: #000000;">愿我如星君如月,夜夜流光相皎洁。</div>
<!-- <button>See more</button> -->
</div>
</div>
<div class="item" style="background-image: url(./img/4.jpg);">
<div class="content">
<div class="name">无暇</div>
<div class="des">“说起粉色头发的女孩,你第一个会想到谁?321回答!”</div>
<!-- <button>See more</button> -->
</div>
</div>
<div class="item" style="background-image: url(./img/5.jpg);">
<div class="content">
<div class="name">以心为剑</div>
<div class="des">满堂花醉三千客,一剑霜寒十四州。</div>
<!-- <button>See more</button> -->
</div>
</div>
<div class="item" style="background-image: url(./img/6.jpg);">
<div class="content">
<div class="name">月照万川</div>
<div class="des">万一禅关砉然破,美人如玉剑如虹。</div>
<!-- <button>See more</button> -->
</div>
</div>
</div>
<div class="buttons">
<button id="prev"><i ><</i></button>
<button id="next"><i >></i></button>
</div>
</div>
<script>
document.documentElement.style.overflowX = "hidden";
// 太强了!隐藏x轴滚动条
document.getElementById('next').onclick = function(){
let lists = document.querySelectorAll('.item');
document.getElementById('slide').appendChild(lists[0]);
}
document.getElementById('prev').onclick = function(){
let lists = document.querySelectorAll('.item');
document.getElementById('slide').prepend(lists[lists.length - 1]);
}
</script>
</body>
<!-- f4 -->
<div id="box" class="box">
<style>
.box {
opacity: 0;
transition: opacity 2s;
}
.box.show {
opacity: 1;
}
.box {
position: fixed;
/* 让盒子在底部 */
bottom: 0;
left: 0px;
/* 因为要无缝衔接 所以width要设置为100% */
width: 100%;
/* 图片最高高度 */
/* 不可点击区域 */
height: 5px;
/* 背景颜色 看效果用的之后要注释掉 */
/* <!-- background-color: pink; --> */
}
/* 第一个盒子样式 */
.box_noe {
position: absolute;
bottom: 0;
left: -170px;
/* 开始的时候我们让他变成透明的 然后动画慢慢的出现 */
/* <!-- opacity: 0; --> */
/* width要原图/2 分为两份 308/2=154px */
width: 154px;
/* 高度和图片一样 */
height: 121px;
/* 盒子要控制位置和移动 */
/* 设置动画的总时间,然后要设置一下每一个人的出场顺序 */
animation: box_move 16s linear infinite;
}
.one {
/* 这个控制背景图片及人物的动画 */
width: 154px;
height: 121px;
background: url(./img/txgc_6d0e9e5.png) no-repeat;
overflow: hidden;
/* 因为图片只有2个动作所以用步长 用2步完成这个动画 这样人就动了起来*/
animation: imgAnimation_one .5s steps(2) infinite;
}
.box_two {
position: absolute;
bottom: 0;
left: -170px;
/* width要原图/2 分为两份 308/2=154px*/
width: 167px;
/* 高度和图片一样 */
height: 176px;
/* 盒子要控制位置和移动 */
animation: box_move 16s linear 2s infinite;
z-index: 99
}
.two {
/* 这个控制背景图片及人物的动画 */
width: 167px;
height: 176px;
background: url(./img/txgh_fee2457.png) no-repeat;
overflow: hidden;
/* 因为图片只有2个动作所以用步长 用2步完成这个动画 这样人就动了起来*/
animation: imgAnimation_two .5s steps(2) infinite;
}
.box_three {
position: absolute;
bottom: 0;
left: -170px;
/* width要原图/2 分为两份 308/2=154px*/
width: 161px;
/* 高度和图片一样 */
height: 149px;
/* 盒子要控制位置和移动 */
animation: box_move 16s linear 4s infinite;
}
.three {
/* 这个控制背景图片及人物的动画 */
width: 161px;
height: 149px;
background: url(./img/txgl_c15cfd8.png) no-repeat;
overflow: hidden;
/* 因为图片只有2个动作所以用步长 用2步完成这个动画 这样人就动了起来*/
animation: imgAnimation_three .5s steps(2) infinite;
}
.box_four {
position: absolute;
bottom: 0;
left: -170px;
/* width要原图/2 分为两份 308/2=154px*/
width: 171px;
/* 高度和图片一样 */
height: 157px;
/* 盒子要控制位置和移动 */
animation: box_move 16s linear 6s infinite;
}
.four {
/* 这个控制背景图片及人物的动画 */
width: 171px;
height: 157px;
background: url(./img/txgq_d281c9b.png) no-repeat;
overflow: hidden;
/* 因为图片只有2个动作所以用步长 用2步完成这个动画 这样人就动了起来*/
animation: imgAnimation_four .5s steps(2) infinite;
}
/* 发现所有的图片都是不一样的所以每一个都要有自己单独的动画 */
@keyframes imgAnimation_one {
/* 百分百的时候让图片的背景位置走 */
100% {
/* 走的必须是整张图片的宽度 这样才可以无限衔接 */
background-position: -308px 0;
}
}
@keyframes imgAnimation_two {
/* 百分百的时候让图片的背景位置走 */
100% {
/* 走的必须是整张图片的宽度 这样才可以无限衔接 */