-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
885 lines (714 loc) · 30.3 KB
/
index.html
File metadata and controls
885 lines (714 loc) · 30.3 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
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js"></script>
<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="https://evolving-yang.github.io//media/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/850552586/ericamcdn@0.1/css/live2d.css">
<link rel="stylesheet" href="https://evolving-yang.github.io//styles/main.css">
<meta name="description" content="一名OIer" />
<title>Evolving</title>
</head>
<body>
<!-- 响应式布局,针对PC端内容显示 -->
<div id="content">
<div class="nav-large">
<div class="row">
<div class="side"><body>
<div id=side>
<div class="avatar-border">
<img src="https://evolving-yang.github.io//images/avatar.png?v=1603708946198" class="avatar">
</div>
<div class="sitename">Evolving</div>
<span class="describtion" data-text='["一名OIer"]'> </span>
<div class="search">
<!-- <input type="text" class="search-input" placeholder="标题搜索(●'◡'●)" /> -->
<input type="text" class="search-input" placeholder="标题搜索 ⚆_⚆ つ♡">
<div class="search-results"></div>
</div>
<div class="share-button">
<span>社交按钮</span>
<a onclick="showqq()"><i style="font-size: 20px;"><img class="icon" src="https://evolving-yang.github.io//media/images/QQ.png" alt=""></i></a>
</div>
<div id="qq" style="display:none">2130371689</div>
<div class="mchocie describtion">
<a href="/" class="menubutton">
首页
</a>
</div>
<div class="mchocie describtion">
<a href="/archives" class="menubutton">
归档
</a>
</div>
<div class="mchocie describtion">
<a href="/tags" class="menubutton">
标签
</a>
</div>
<div class="mchocie describtion">
<a href="/post/about" class="menubutton">
关于
</a>
</div>
<div class="mchocie describtion">
<a href="https://evolving-yang.github.io//friends" class="menubutton">友人帐</a>
</div>
<hr>
<div id="footinfo">我的进化史 | Theme: <a
href="https://github.com/850552586/gridea-theme-fog">Fog</a></div>
<div class="sitetime"><div id="sitegotimeDate">载入天数...</div>
<div id="sitegotimes">载入时分秒...</div></div>
<div id="cussitetime" style="display:none">24/10/2020</div>
<script async src="https://cdn.jsdelivr.net/gh/850552586/ericamcdn@0.1/js/busuanzi.pure.mini.js"></script>
<div id="vistornum">
<span id="busuanzi_container_site_uv">
<i class="fa fa-heart" aria-hidden="true" style="color: red;"></i> 总访问量:<span id="busuanzi_value_site_pv"></span> |
<i class="fa fa-user-o" aria-hidden="true"></i> 访问人数:<span id="busuanzi_value_site_uv"></span>
</span>
</div>
<div style="color:white">Copyright © 2020 备案号: 鄂ICP备...号</div>
</div>
<script src="https://evolving-yang.github.io//media/js/wordshow.js"></script>
<script>
//----------------------站点运行时间
var now = new Date();
function createtime() {
var sitegotime = document.getElementById("cussitetime").innerHTML + " 00:00:00";
var grt = new Date(sitegotime); //此处修改你的建站时间或者网站上线时间
now.setTime(now.getTime() + 250);
days = (now - grt) / 1000 / 60 / 60 / 24;
dnum = Math.floor(days);
hours = (now - grt) / 1000 / 60 / 60 - (24 * dnum);
hnum = Math.floor(hours);
if (String(hnum).length == 1) {
hnum = "0" + hnum;
}
minutes = (now - grt) / 1000 / 60 - (24 * 60 * dnum) - (60 * hnum);
mnum = Math.floor(minutes);
if (String(mnum).length == 1) {
mnum = "0" + mnum;
}
seconds = (now - grt) / 1000 - (24 * 60 * 60 * dnum) - (60 * 60 * hnum) - (60 * mnum);
snum = Math.round(seconds);
if (String(snum).length == 1) {
snum = "0" + snum;
}
document.getElementById("sitegotimeDate").innerHTML = "本站已安全运行 " + dnum + " 天 ";
document.getElementById("sitegotimes").innerHTML = hnum + " 小时 " + mnum + " 分 " + snum + " 秒";
}
setInterval("createtime()", 250);
</script>
</body>
<script>
//-------------------------------------------------搜索
// 获取搜索框、搜索按钮、清空搜索、结果输出对应的元素
var searchInput = document.querySelector('.search-input');
var searchResults = document.querySelector('.search-results');
// 申明保存文章的标题、链接、内容的数组变量
var searchValue = '',
arrItems = [],
arrLinks = [],
arrTitles = [],
arrResults = [],
indexItem = [],
itemLength = 0;
var tmpDiv = document.createElement('div');
tmpDiv.className = 'result-item';
// ajax 的兼容写法
var xhr = new XMLHttpRequest() || new ActiveXObject('Microsoft.XMLHTTP');
xhr.onreadystatechange = function () {
if (xhr.readyState == 4 && xhr.status == 200) {
xml = xhr.responseXML;
arrItems = xml.getElementsByTagName('entry');
itemLength = arrItems.length;
// 遍历并保存所有文章对应的标题、链接、内容到对应的数组中
// 同时过滤掉 HTML 标签
for (i = 0; i < itemLength; i++) {
var link = arrItems[i].getElementsByTagName('link')[0];
arrLinks[i] = link.getAttribute("href");
arrTitles[i] = arrItems[i].getElementsByTagName('title')[0].
childNodes[0].nodeValue.replace(/<.*?>/g, '');
}
}
}
// 开始获取根目录下 feed.xml 文件内的数据
xhr.open('get', '/atom.xml', true);
xhr.send();
// 输入框内容变化后就开始匹配,可以不用点按钮
// 经测试,onkeydown, onchange 等方法效果不太理想,
// 存在输入延迟等问题,最后发现触发 input 事件最理想,
// 并且可以处理中文输入法拼写的变化
searchInput.oninput = function () {
setTimeout(searchConfirm, 0);
}
searchInput.onfocus = function () {
searchResults.style.display = 'block';
}
function searchConfirm() {
if (searchInput.value == '') {
searchResults.style.display = 'none';
} else if (searchInput.value.search(/^\s+$/) >= 0) {
// 检测输入值全是空白的情况
searchInit();
var itemDiv = tmpDiv.cloneNode(true);
itemDiv.innerText = '请输入有效内容...';
searchResults.appendChild(itemDiv);
} else {
// 合法输入值的情况
searchInit();
searchValue = searchInput.value;
// 在标题、内容中查找
searchMatching(arrTitles, searchValue);
}
}
// 每次搜索完成后的初始化
function searchInit() {
arrResults = [];
indexItem = [];
searchResults.innerHTML = '';
searchResults.style.display = 'block';
}
function searchMatching(arr1, input) {
// 忽略输入大小写
input = new RegExp(input, 'i');
// 在所有文章标题、内容中匹配查询值
for (i = 0; i < itemLength; i++) {
if (arr1[i].search(input) !== -1) {
var arr = arr1;
indexItem.push(i); // 保存匹配值的索引
var indexContent = arr[i].search(input);
// 此时 input 为 RegExp 格式 /input/i,转换为原 input 字符串长度
var l = input.toString().length - 3;
var step = 10;
// 将匹配到内容的地方进行黄色标记,并包括周围一定数量的文本
arrResults.push(arr[i].slice(indexContent - step, indexContent));
}
}
// 输出总共匹配到的数目
var totalDiv = tmpDiv.cloneNode(true);
totalDiv.innerHTML = '<b>总匹配:' + indexItem.length + ' 项<hr></b>';
searchResults.appendChild(totalDiv);
// 未匹配到内容的情况
if (indexItem.length == 0) {
var itemDiv = tmpDiv.cloneNode(true);
itemDiv.innerText = '未匹配到内容...';
searchResults.appendChild(itemDiv);
}
// 将所有匹配内容进行组合
for (i = 0; i < arrResults.length; i++) {
var itemDiv = tmpDiv.cloneNode(true);
itemDiv.innerHTML = '<b>[' + arrTitles[indexItem[i]] +
']</b><p>' + arrResults[i] + "</p><hr />";
itemDiv.setAttribute('onclick', 'changeHref(arrLinks[indexItem[' + i + ']])');
searchResults.appendChild(itemDiv);
}
}
function changeHref(href) {
location.href = href;
}
function showqq() {
var qq = document.getElementById("qq").innerHTML;
if (qq != '')
window.location.href = "tencent://message/?uin=" + qq + "&Site=&Menu=yes";
else
alert("博主暂未设置QQ联系方式");
}
</script>
</div>
<div id="tab1" class="tab">
<div class="bars">
<span></span>
<span></span>
<span></span>
</div>
<div class="close"></div>
</div>
<div class="col-md-1 col-lg-3"></div>
<div id="main" class="col-xs-12 col-sm-12 col-md-10 col-lg-7">
<link rel="stylesheet" href="https://evolving-yang.github.io//media/css/font-awesome.css">
<div id="post-container">
<div class="postshow postlist">
<div id="post" style="width:100%">
<img src="https://s1.ax1x.com/2020/10/26/BuLylj.jpg" class="postimage"
onclick="window.location.href= 'https://evolving-yang.github.io/post/Top/';return false">
<div class="posttitlebox">
<div class="posttitle" onclick="window.location.href= 'https://evolving-yang.github.io/post/Top/';return false">
Hey!My new blog
</div>
</div>
</div>
<div class="postinfo">
<div class="postdate"><i class="fa fa-calendar"></i>2020-10-25th</div>
<div class="poststatus postdate"><i class="fa fa-clock-o"></i> 1 min read</div>
<div class="posttag">
</div>
</div>
</div>
<div class="postshow postlist">
<div id="post" style="width:100%">
<img src="https://s1.ax1x.com/2020/10/26/BuLO76.png" class="postimage"
onclick="window.location.href= 'https://evolving-yang.github.io/post/a/';return false">
<div class="posttitlebox">
<div class="posttitlewithoutimg" onclick="window.location.href= 'https://evolving-yang.github.io/post/a/';return false">
A
</div>
</div>
</div>
<div class="postinfo">
<div class="postdate"><i class="fa fa-calendar"></i>2020-10-26th</div>
<div class="poststatus postdate"><i class="fa fa-clock-o"></i> 1 min read</div>
<div class="posttag">
</div>
</div>
</div>
<div class="postshow postlist">
<div id="post" style="width:100%">
<img src="https://s1.ax1x.com/2020/10/26/BuLO76.png" class="postimage"
onclick="window.location.href= 'https://evolving-yang.github.io/post/xu-yao-fu-xi-de-dong-xi-geng/';return false">
<div class="posttitlebox">
<div class="posttitlewithoutimg" onclick="window.location.href= 'https://evolving-yang.github.io/post/xu-yao-fu-xi-de-dong-xi-geng/';return false">
需要复习的东西(更
</div>
</div>
</div>
<div class="postinfo">
<div class="postdate"><i class="fa fa-calendar"></i>2020-10-25th</div>
<div class="poststatus postdate"><i class="fa fa-clock-o"></i> 1 min read</div>
<div class="posttag">
</div>
</div>
</div>
<div class="postshow postlist">
<div id="post" style="width:100%">
<img src="https://s1.ax1x.com/2020/10/26/BuLO76.png" class="postimage"
onclick="window.location.href= 'https://evolving-yang.github.io/post/jin-qi-ti-mu/';return false">
<div class="posttitlebox">
<div class="posttitlewithoutimg" onclick="window.location.href= 'https://evolving-yang.github.io/post/jin-qi-ti-mu/';return false">
近期题目
</div>
</div>
</div>
<div class="postinfo">
<div class="postdate"><i class="fa fa-calendar"></i>2020-10-25th</div>
<div class="poststatus postdate"><i class="fa fa-clock-o"></i> 1 min read</div>
<div class="posttag">
</div>
</div>
</div>
<div class="postshow postlist">
<div id="post" style="width:100%">
<img src="https://s1.ax1x.com/2020/10/26/BuLspQ.jpg" class="postimage"
onclick="window.location.href= 'https://evolving-yang.github.io/post/answer-P1967/';return false">
<div class="posttitlebox">
<div class="posttitle" onclick="window.location.href= 'https://evolving-yang.github.io/post/answer-P1967/';return false">
题解 P1967 【货车运输】
</div>
</div>
</div>
<div class="postinfo">
<div class="postdate"><i class="fa fa-calendar"></i>2020-10-25th</div>
<div class="poststatus postdate"><i class="fa fa-clock-o"></i> 6 min read</div>
<div class="posttag">
<a href="https://evolving-yang.github.io/tag/6LX3mh95r/" class="postlink">
<i class="fa fa-tag"></i> 题解
</a>
</div>
</div>
</div>
</div>
<div>
<div class="pagi">
<ul>
<li><a style="width:100px"> </a></li>
<li><a id="page1">1</a></li>
<li><a id="page2" class="active">2</a></li>
<li><a id="page3">3</a></li>
<li><a style="width:100px"> </a></li>
</ul>
</div>
<div id="pagination-prev" style="display:none">
</div>
<div id="pagination-next" style="display:none"> </div>
<script>
var prevstr = document.getElementById("pagination-prev").innerHTML;
var nextstr = document.getElementById("pagination-next").innerHTML;
var page1 = document.getElementById("page1");
var page2 = document.getElementById("page2");
var page3 = document.getElementById("page3");
page1.innerHTML = '-';
page2.innerHTML = '1';
page3.innerHTML = '-';
if (prevstr.length > 5) {
if (prevstr.indexOf("page/") != -1) {
var prevnum = parseInt(prevstr.split("page/")[1]);
page1.innerHTML = prevnum;
page2.innerHTML = prevnum + 1;
} else {
page1.innerHTML = 1;
page2.innerHTML = 2;
}
}
if (nextstr.indexOf("page/") != -1) {
var nextnum = parseInt(nextstr.split("page/")[1]);
page3.innerHTML = nextnum;
page2.innerHTML = nextnum - 1;
}
</script>
</div>
</div>
<div class="col-md-1 col-lg-2"></div>
</div>
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css">
</head>
<body>
<div class="miniMode">
<meting-js id="myaplayer" server="netease" type="playlist" fixed="true" order="default">
</meting-js>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js"></script>
<script>
var aplayerid = "5219546252";
var aplayerserver = "netease";
var aplayerorder = "random";
var aplayerautoplay = "true";
var aplayer = $("#myaplayer");
aplayer.attr("server",aplayerserver);
aplayer.attr("id",aplayerid);
aplayer.attr("order",aplayerorder);
if(aplayerautoplay=="true")
aplayer.attr("autoplay","true");
</script>
<script src="https://cdn.jsdelivr.net/gh/850552586/ericamcdn@0.1/js/Aplayer.min.js"></script>
<!-- require MetingJS -->
<script src="https://cdn.jsdelivr.net/npm/meting@2/dist/Meting.min.js"></script>
<script>
function aplayerbtnInit(){
var player = document.querySelectorAll('meting-js')[0].aplayer;
player.lrc.hide();
var mbabtn = $("#mbaplayer");
if(player.paused==false)
{
mbabtn.removeClass("fa-play-circle-o");
mbabtn.addClass("fa-pause-circle");
}
else
{
mbabtn.addClass("fa-play-circle-o");
mbabtn.removeClass("fa-pause-circle");
}
}
function aplayerPlay(){
var player = document.querySelectorAll('meting-js')[0].aplayer;
var mbabtn = $("#mbaplayer");
if(player.paused==true)
{
player.play();
mbabtn.removeClass("fa-play-circle-o");
mbabtn.addClass("fa-pause-circle");
}
else
{
player.pause();
mbabtn.addClass("fa-play-circle-o");
mbabtn.removeClass("fa-pause-circle");
}
}
</script>
</div>
<div id="bg">
</div>
<div id="bgchoice" style="display: none">link
</div>
<div id="bgurl" style="display:none">https://s1.ax1x.com/2020/10/26/BuL2mq.md.jpg</div>
<!-- 响应式布局,针对手机端内容显示 -->
<div class="nav-small">
<head>
<!-- 引入Bootstrap核心样式文件 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/850552586/ericamcdn@0.1/css/bootstrap.min.css">
</head>
<style>
@media screen and (max-width:1200px) and (min-width: 768px) {
@media (min-width: 768px) {
.navbar-nav {
float: right;
margin: 0;
}
}
}
@media screen and (max-width:768px){
.mbapspan{
padding: 0;
}
}
</style>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#barmenu"
aria-expanded="false" id="barbutton">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="https://evolving-yang.github.io/">Evolving |</a>
<span class="navbar-brand mbapspan"><i id="mbaplayer" class="fa fa-play-circle-o" aria-hidden="true"
style="font-size: 28px;top: 12px;position: absolute;" onclick="aplayerPlay();"></i></span>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="barmenu">
<ul class="nav navbar-nav">
<li>
<a href="/">
首页
</a>
</li>
<li>
<a href="/archives">
归档
</a>
</li>
<li>
<a href="/tags">
标签
</a>
</li>
<li>
<a href="/post/about">
关于
</a>
</li>
<li><a href="https://evolving-yang.github.io//friends">友链</a></li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<!-- 引入jQuery核心js文件 -->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js"></script>
<script>
var btstate = false;
var bt = $("#barbutton");
var bm = $("#barmenu");
bt.click(function(){
dropdown();
})
function dropdown(){
console.log(btstate);
//下拉
if(btstate==false){
bt.removeClass("collapsed");
bt.attr("aria-expanded","true");
bm.attr("aria-expanded","true")
bm.fadeIn(700);
btstate = true;
}
else{
bt.addClass("collapsed");
bt.attr("aria-expanded","false");
bm.removeClass("in");
bm.hide();
bm.attr("aria-expanded","false");
btstate = false;
}
}
</script>
</body>
<!-- 移动端欢迎页 -->
<div class="welcome">
<div class="avatar-border">
<img src="https://evolving-yang.github.io//images/avatar.png?v=1603708946198" class="avatar">
</div>
<span class="mobiledescribtion"></span>
</div>
<div id="mobilebgurl" style="display:none">https://s1.ax1x.com/2020/10/26/BuOVN8.png</div>
<script>
var welcome = $('.welcome');
var bgurl = document.getElementById("mobilebgurl").innerHTML;
for (var i = 0; i < 3; i++)
bgurl = bgurl.replace("\\", "/");
welcome.css("background", "url('" + bgurl + "')");
var mobiledes = document.querySelector(".mobiledescribtion");
var text = "一名OIer";
// 当前显示第几个字
var mobilecharIndex = 1;
// 每个字显示间隔默认是500毫秒
var mobiledelta = 500;
// 记录动画执行开始时间
var mobilestart = null;
// 是否为删除动画
var mobileisDeleting = false;
// 动画回调函数
function mobileLoadDes(time) {
window.requestAnimationFrame(mobileLoadDes);
// 初始化开始时间
if (!mobilestart) start = time;
// 获取时间间隔
var mobileprogress = time - mobilestart;
// 每隔一定的时间,打印出一个新的字符
if (mobileprogress > mobiledelta) {
// 如果是打字效果
if (!mobileisDeleting) {
// 给展示文字的span新增一个字符,使用innerHTML来替换,charIndex自增1,然后返回新的字符串子串
mobiledes.innerHTML = " " + text.slice(
0,
++mobilecharIndex
);
mobiledelta = 500 - Math.random() * 400;
} else {
// 如果是删除效果,则把文字一个一个减掉
mobiledes.innerHTML = " " + text.slice(
0,
mobilecharIndex--
);
}
// 把star更新为当前时间,进行下一个周期
mobilestart = time;
// 如果文字已经全部打印完毕
if (mobilecharIndex === text.length) {
// 下次开始删除文字
mobileisDeleting = true;
// 删除文字的间隔为200毫秒
mobiledelta = 100;
// 额外等待1.2秒后再删除
mobilestart = time + 1000;
}
// 如果文字删除完毕
if (mobilecharIndex < 0) {
mobileisDeleting = false;
// 额外增加200毫秒延迟
mobilestart = time + 200;
}
}
}
window.requestAnimationFrame(mobileLoadDes);
</script>
<link rel="stylesheet" href="https://evolving-yang.github.io//media/css/font-awesome.css">
<div id="post-container">
<div class="postshow postlist">
<div id="post" style="width:100%">
<img src="https://s1.ax1x.com/2020/10/26/BuLylj.jpg" class="postimage"
onclick="window.location.href= 'https://evolving-yang.github.io/post/Top/';return false">
<div class="posttitlebox">
<div class="posttitle" onclick="window.location.href= 'https://evolving-yang.github.io/post/Top/';return false">
Hey!My new blog
</div>
</div>
</div>
<div class="postinfo">
<div class="postdate"><i class="fa fa-calendar"></i>2020-10-25th</div>
<div class="poststatus postdate"><i class="fa fa-clock-o"></i> 1 min read</div>
<div class="posttag">
</div>
</div>
</div>
<div class="postshow postlist">
<div id="post" style="width:100%">
<img src="https://s1.ax1x.com/2020/10/26/BuLO76.png" class="postimage"
onclick="window.location.href= 'https://evolving-yang.github.io/post/a/';return false">
<div class="posttitlebox">
<div class="posttitlewithoutimg" onclick="window.location.href= 'https://evolving-yang.github.io/post/a/';return false">
A
</div>
</div>
</div>
<div class="postinfo">
<div class="postdate"><i class="fa fa-calendar"></i>2020-10-26th</div>
<div class="poststatus postdate"><i class="fa fa-clock-o"></i> 1 min read</div>
<div class="posttag">
</div>
</div>
</div>
<div class="postshow postlist">
<div id="post" style="width:100%">
<img src="https://s1.ax1x.com/2020/10/26/BuLO76.png" class="postimage"
onclick="window.location.href= 'https://evolving-yang.github.io/post/xu-yao-fu-xi-de-dong-xi-geng/';return false">
<div class="posttitlebox">
<div class="posttitlewithoutimg" onclick="window.location.href= 'https://evolving-yang.github.io/post/xu-yao-fu-xi-de-dong-xi-geng/';return false">
需要复习的东西(更
</div>
</div>
</div>
<div class="postinfo">
<div class="postdate"><i class="fa fa-calendar"></i>2020-10-25th</div>
<div class="poststatus postdate"><i class="fa fa-clock-o"></i> 1 min read</div>
<div class="posttag">
</div>
</div>
</div>
<div class="postshow postlist">
<div id="post" style="width:100%">
<img src="https://s1.ax1x.com/2020/10/26/BuLO76.png" class="postimage"
onclick="window.location.href= 'https://evolving-yang.github.io/post/jin-qi-ti-mu/';return false">
<div class="posttitlebox">
<div class="posttitlewithoutimg" onclick="window.location.href= 'https://evolving-yang.github.io/post/jin-qi-ti-mu/';return false">
近期题目
</div>
</div>
</div>
<div class="postinfo">
<div class="postdate"><i class="fa fa-calendar"></i>2020-10-25th</div>
<div class="poststatus postdate"><i class="fa fa-clock-o"></i> 1 min read</div>
<div class="posttag">
</div>
</div>
</div>
<div class="postshow postlist">
<div id="post" style="width:100%">
<img src="https://s1.ax1x.com/2020/10/26/BuLspQ.jpg" class="postimage"
onclick="window.location.href= 'https://evolving-yang.github.io/post/answer-P1967/';return false">
<div class="posttitlebox">
<div class="posttitle" onclick="window.location.href= 'https://evolving-yang.github.io/post/answer-P1967/';return false">
题解 P1967 【货车运输】
</div>
</div>
</div>
<div class="postinfo">
<div class="postdate"><i class="fa fa-calendar"></i>2020-10-25th</div>
<div class="poststatus postdate"><i class="fa fa-clock-o"></i> 6 min read</div>
<div class="posttag">
<a href="https://evolving-yang.github.io/tag/6LX3mh95r/" class="postlink">
<i class="fa fa-tag"></i> 题解
</a>
</div>
</div>
</div>
</div>
<div class="pagination-container">
</div>
</div>
<div id="landlord">
<div class="message" style="opacity:0"></div>
<canvas id="live2d" width="240" height="250" class="live2d"></canvas>
</div>
</div>
<div id="domainname" style="display:none">https://evolving-yang.github.io/</div>
</body>
</html>
<script type="text/javascript">
var message_Path = '/live2d/'
var home_Path = document.getElementById("domainname").innerHTML+"/"; //此处修改为你的域名,必须带斜杠
</script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/850552586/ericamcdn@0.1/live2d.js"></script>
<script type="text/javascript" src="https://evolving-yang.github.io//media/live2d/js/message.js"></script>
<script type="text/javascript">
loadlive2d("live2d", "https://evolving-yang.github.io//media/live2d/assets/tororo.model.json");
</script>
<script>
var bgchoice=$('#bgchoice').html();
var bg = $('#bg');
var bgurl = document.getElementById("bgurl").innerHTML;
if(bgchoice=='default')
for (var i = 0; i < 3; i++)
bgurl = bgurl.replace("\\", "/");
bg.css("background", "url('" + bgurl + "')");
window.onload = function(){
aplayerbtnInit();
}
</script>
<script src="https://evolving-yang.github.io//media/js/index.js"></script>