-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
1094 lines (757 loc) · 37.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
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
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="keywords" content="尖椒土豆sss">
<meta name="description" content="尖椒土豆sss">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit|ie-stand|ie-comp">
<meta name="mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<!-- 解决外链图片403不显示问题 -->
<meta name="referrer" content="no-referrer"/>
<!-- 必应网站收录-->
<meta name="msvalidate.01" content="065D3DC65583F377FF68DB494BF2447A" />
<!-- baidu-->
<meta name="baidu-site-verification" content="code-GAmxX4Dzkd" />
<meta name="baidu-site-verification" content="codeva-Dqe9kh6zZZ" />
<!-- google-->
<meta name="google-site-verification" content="rTX_ff5C1B_O_KKXSrsL8CDnyt2KykM-6Weq172Sfwk" />
<title>尖椒土豆sss</title>
<!--
<link rel="stylesheet" type="text/css" href="/libs/loading/loading.css">
-->
<link rel="stylesheet" type="text/css" href="/libs/loading/loading.css">
<!--
<link rel="stylesheet" type="text/css" href="/libs/materialize/materialize.css">
-->
<link rel="stylesheet" type="text/css" href="/libs/materialize/materialize.css">
<!--
<link rel="stylesheet" type="text/css" href="/css/matery2.css">
-->
<link rel="stylesheet" type="text/css" href="/css/matery2.css">
<link rel="stylesheet" type="text/css" href="/css/my.css">
<link rel="icon" type="image/png" href="/medias/favicon.png">
<link rel="stylesheet" type="text/css" href="/libs/awesome/css/all.css">
<link rel="stylesheet" type="text/css" href="/libs/aos/aos.css">
<link rel="stylesheet" type="text/css" href="/libs/animate/animate.min.css">
<link rel="stylesheet" type="text/css" href="/libs/lightGallery/css/lightgallery.min.css">
<script src="/libs/jquery/jquery.min.js"></script>
<meta name="generator" content="Hexo 5.2.0"><link rel="alternate" href="/atom.xml" title="尖椒土豆sss" type="application/atom+xml">
<link rel="stylesheet" href="/css/prism-hopscotch.css" type="text/css">
<link rel="stylesheet" href="/css/prism-line-numbers.css" type="text/css"></head>
<body>
<img class='wxImg' src="/images/loading.gif" data-original="/images/mywx.jpg"/>
<header class="navbar-fixed">
<nav id="headNav" class="bg-color nav-transparent">
<div id="navContainer" class="nav-wrapper head-container">
<div class="brand-logo">
<a href="/">
<img src="/images/loading.gif" data-original="/medias/logo.gif" class="logo-img" alt="LOGO">
<div class="logo-span">尖椒土豆sss</div>
</a>
</div>
<a href="#" data-target="mobile-nav" class="sidenav-trigger button-collapse"><i class="fas fa-bars"></i></a>
<ul class="right nav-menu">
<li class="hide-on-med-and-down nav-item">
<a href="/" class="waves-effect waves-light">
<i class="fas fa-home" style="zoom: 0.6;"></i>
<span>首页</span>
</a>
</li>
<li class="hide-on-med-and-down nav-item">
<a href="/tags" class="waves-effect waves-light">
<i class="fas fa-tags" style="zoom: 0.6;"></i>
<span>标签</span>
</a>
</li>
<li class="hide-on-med-and-down nav-item">
<a href="/categories" class="waves-effect waves-light">
<i class="fas fa-bookmark" style="zoom: 0.6;"></i>
<span>分类</span>
</a>
</li>
<li class="hide-on-med-and-down nav-item">
<a href="/about" class="waves-effect waves-light">
<i class="fas fa-user-circle" style="zoom: 0.6;"></i>
<span>关于</span>
</a>
</li>
<li>
<a href="#searchModal" class="modal-trigger waves-effect waves-light">
<i id="searchIcon" class="fas fa-search" title="搜索" style="zoom: 0.85;"></i>
</a>
</li>
</ul>
<div id="mobile-nav" class="side-nav sidenav">
<div class="mobile-head bg-color">
<img src="/images/loading.gif" data-original="/medias/logo.gif" class="logo-img circle responsive-img">
<div class="logo-name">尖椒土豆sss</div>
<div class="logo-desc">
Never really desperate, only the lost of the soul.
</div>
</div>
<ul class="menu-list mobile-menu-list">
<li class="m-nav-item">
<a href="/" class="waves-effect waves-light">
<i class="fa-fw fas fa-home"></i>
首页
</a>
</li>
<li class="m-nav-item">
<a href="/tags" class="waves-effect waves-light">
<i class="fa-fw fas fa-tags"></i>
标签
</a>
</li>
<li class="m-nav-item">
<a href="/categories" class="waves-effect waves-light">
<i class="fa-fw fas fa-bookmark"></i>
分类
</a>
</li>
<li class="m-nav-item">
<a href="/about" class="waves-effect waves-light">
<i class="fa-fw fas fa-user-circle"></i>
关于
</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<style>
.carousel-control {
width: 45px;
height: 45px;
line-height: 55px;
border-radius: 45px;
background: transparent;
cursor: pointer;
z-index: 100;
}
#prev-cover {
position: absolute;
top: 48%;
left: 8px;
}
#next-cover {
position: absolute;
top: 48%;
right: 8px;;
}
#prev-cover i {
margin-right: 3px;
}
#next-cover i {
margin-left: 3px;
}
.carousel-control:hover {
background-color:rgba(0, 0, 0, .4);
}
.carousel-control i {
color: #fff;
font-size: 2.4rem;
}
.box{
background-color:rgba(0, 0, 0, .3);
width: 100%;
height: 100%;
z-index: 1;
position: fixed;
top: 0;
left: 0;
}
</style>
<div class="index-cover carousel carousel-slider ban center" data-indicators="true" style="margin-top: -64px;">
<div class="carousel-item red white-text bg-cover about-cover">
<div class="container">
<div class="row">
<div class="col s10 offset-s1 m8 offset-m2 l8 offset-l2">
<div style='height:100px;' class="brand">
<div class="title center-align">
</div>
<div class="description center-align">
<span id="subtitle"></span>
<script src="/libs/typed/typed.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/typed.js/2.0.12/typed.min.js"></script>
<script>
var typed = new Typed("#subtitle", {
strings: [ "自律即自由!", "学习是为了有更多的选择,让生活变的更美好!",
],
startDelay: 300,
typeSpeed: 100,
loop: true,
backSpeed: 70,
showCursor: true
});
</script>
</div>
</div>
</div>
</div>
<script>
$('.bg-cover').css('background-image', 'url(/medias/banner/0.jpg)');
</script>
<div class="cover-btns">
<a href="#indexCard" class="waves-effect waves-light btn">
<i class="fa fa-angle-double-down"></i>开始阅读
</a>
</div>
<div class="cover-social-link">
<a href="https://github.com/silin001/" title="github" class="tooltipped" target="_blank" data-tooltip="访问我的GitHub" data-position="top" data-delay="50">
<i class="fab fa-github"></i>
</a>
<a href="mailto:862956812@qq.com" title="QQ邮箱" class="tooltipped" target="_blank" data-tooltip="邮件联系我" data-position="top" data-delay="50">
<i class="fas fa-envelope-open"></i>
</a>
<div id='wxicon' class="tooltipped mydiv 111" title="微信">
<i class="fab fa-weixin"></i>
</div>
<a href="https://juejin.cn/user/2041110775208184/posts"
style="display: flex;
align-items: center;
justify-content: center;"
title="掘金" class="tooltipped" target="_blank" data-tooltip="关注我的掘金" data-position="top" data-delay="50">
<div style="width:22px;height:22px;background:url('https://lf3-cdn-tos.bytescm.com/obj/static/xitu_juejin_web/6c61ae65d1c41ae8221a670fa32d05aa.svg') no-repeat center/100% 100%"></div>
</a>
</div>
</div>
</div>
</div>
<script>
$(function () {
let coverSlider = $('.carousel');
coverSlider.carousel({
duration: Number('120'),
fullWidth: true,
indicators: 'true' === 'true'
});
let carouselIntervalId;
// Loop to call the next cover article picture.
let autoCarousel = function() {
carouselIntervalId = setInterval(function () {
coverSlider.carousel('next');
}, 5000);
};
autoCarousel();
let restartPlay = function () {
clearInterval(carouselIntervalId);
autoCarousel();
};
// prev and next cover post.
$('#prev-cover').click(function () {
coverSlider.carousel('prev');
restartPlay();
});
$('#next-cover').click(function () {
coverSlider.carousel('next');
restartPlay();
});
});
</script>
<main class="content">
<div id="indexCard" class="index-card">
<div class="container">
<div class="card">
<div class="card-content">
<div class="dream">
<div class="title center-align">
<i class="far fa-lightbulb"></i> 我的世界
</div>
<div class="row">
<div class="col l8 offset-l2 m10 offset-m1 s10 offset-s1 center-align text">
生活不可能像你想象的那么好,但是也不会像你想象中那么糟。人的脆弱和坚强都超乎自己的想象, 有时候脆弱的一句话就泪流满面,有时候你发现自己咬着牙已经走过了很长的路 ——— 莫泊桑《一生》
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--移动端 h5调试工具 vconsole js-->
<!--
<script src="https://cdn.bootcss.com/vConsole/3.3.0/vconsole.min.js"></script>
<script type="application/javascript">
var vConsole = new VConsole();
</script>
-->
<!-- 所有文章卡片 -->
<article id="articles" class="container articles 111">
<div class="row article-row">
<div class="article col s12 m4 14" data-aos="zoom-in">
<div class="card">
<a href="/posts/f1c4.html" target="_blank">
<div class="card-image">
<img src="/images/loading.gif" data-original="/medias/featureimages/17.jpg" class="responsive-img" alt="用ts重构基于rollup的npm包踩坑记录">
<span class="card-title">用ts重构基于rollup的npm包踩坑记录</span>
</div>
</a>
<div class="card-content article-content">
<div class="summary block-with-text">
前言在之前实现了一个npm包 我的第一个npm包:plugin-zip-pack - 掘金 (juejin.cn)
但源码是js编写的,最近想的使用ts进行重构一下。 最开始直接将源码中原来文件都修改为 .ts后缀后遇到了一系列报错问题、以
</div>
<div class="publish-info">
<span class="publish-date">
<i class="far fa-clock fa-fw icon-date"></i>2024-04-17
</span>
<span class="publish-author">
<i class="fas fa-user fa-fw"></i>
尖椒土豆sss
</span>
</div>
</div>
<div class="card-action article-tags">
<a href="/tags/rollup/">
<span class="chip bg-color">rollup</span>
</a>
<a href="/tags/typescript/">
<span class="chip bg-color">typescript</span>
</a>
</div>
</div>
</div>
<div class="article col s12 m4 14" data-aos="zoom-in">
<div class="card">
<a href="/posts/930f.html" target="_blank">
<div class="card-image">
<img src="/images/loading.gif" data-original="/medias/featureimages/6.jpg" class="responsive-img" alt="vuepress@2.x 报错问题分享">
<span class="card-title">vuepress@2.x 报错问题分享</span>
</div>
</a>
<div class="card-content article-content">
<div class="summary block-with-text">
背景在使用vuepress@2.x 搭建博客项目时,使用 github actions部署时失败了很多次,踩过的坑汇总记录一下自己的学习过程,也希望可以帮助到其他同学。
打包时出现的错误config.js配置遇到的问题配置文件使用confi
</div>
<div class="publish-info">
<span class="publish-date">
<i class="far fa-clock fa-fw icon-date"></i>2023-10-08
</span>
<span class="publish-author">
<i class="fas fa-bookmark fa-fw icon-category"></i>
<a href="/categories/vuepress/" class="post-category">
vuepress
</a>
</span>
</div>
</div>
<div class="card-action article-tags">
<a href="/tags/vuepress/">
<span class="chip bg-color">vuepress</span>
</a>
</div>
</div>
</div>
<div class="article col s12 m4 14" data-aos="zoom-in">
<div class="card">
<a href="/posts/2c5.html" target="_blank">
<div class="card-image">
<img src="/images/loading.gif" data-original="/medias/featureimages/0.jpg" class="responsive-img" alt="GitHub Actions 体验CICD">
<span class="card-title">GitHub Actions 体验CICD</span>
</div>
</a>
<div class="card-content article-content">
<div class="summary block-with-text">
背景工作后,经常听闻同行提到自动化部署、CICD等关键词。出于好奇也去网上看了一些相关资料得以了解。由于我还没接触到有相关配置的项目,但自己也一直想尝试体验一下这个东西。但奈何自己相关知识匮乏,水平有限,之前尝试过几次最终以失败告终。
再加
</div>
<div class="publish-info">
<span class="publish-date">
<i class="far fa-clock fa-fw icon-date"></i>2023-09-07
</span>
<span class="publish-author">
<i class="fas fa-bookmark fa-fw icon-category"></i>
<a href="/categories/cicd/" class="post-category">
cicd
</a>
</span>
</div>
</div>
<div class="card-action article-tags">
<a href="/tags/cicd/">
<span class="chip bg-color">cicd</span>
</a>
</div>
</div>
</div>
<div class="article col s12 m4 14" data-aos="zoom-in">
<div class="card">
<a href="/posts/6690.html" target="_blank">
<div class="card-image">
<img src="/images/loading.gif" data-original="/medias/featureimages/21.jpg" class="responsive-img" alt="开源之旅:初次贡献与PR提交流程">
<span class="card-title">开源之旅:初次贡献与PR提交流程</span>
</div>
</a>
<div class="card-content article-content">
<div class="summary block-with-text">
背景作为一名程序员,一直在公司项目上写代码,却从来没有参与过开源项目。虽然早之前了解过开源项目是什么?如何参加?但由于开源项目的规范要求严格和一些代码检查工具只是耳闻目睹,促使我望而却步。加上自己工作项目较忙、休息的时候也犯懒(主要是因为懒
</div>
<div class="publish-info">
<span class="publish-date">
<i class="far fa-clock fa-fw icon-date"></i>2023-07-31
</span>
<span class="publish-author">
<i class="fas fa-bookmark fa-fw icon-category"></i>
<a href="/categories/pr/" class="post-category">
pr
</a>
</span>
</div>
</div>
<div class="card-action article-tags">
<a href="/tags/github/">
<span class="chip bg-color">github</span>
</a>
<a href="/tags/pr/">
<span class="chip bg-color">pr</span>
</a>
</div>
</div>
</div>
<div class="article col s12 m4 14" data-aos="zoom-in">
<div class="card">
<a href="/posts/9a81.html" target="_blank">
<div class="card-image">
<img src="/images/loading.gif" data-original="/medias/featureimages/2.jpg" class="responsive-img" alt="vue2应用性能优化:首屏FCP指标提升约80%">
<span class="card-title">vue2应用性能优化:首屏FCP指标提升约80%</span>
</div>
</a>
<div class="card-content article-content">
<div class="summary block-with-text">
背景一个vue2的项目,打包部署后,发现首屏加载速度慢,FCP白屏时间大约需要8s左右,从输入系统地址按下回车后,就一直转啊转啊转,加载缓慢,导致用户的体验非常不好!所以今天针对这个问题来做一些性能优化。
期望的结果就是首屏加载速度快一点,
</div>
<div class="publish-info">
<span class="publish-date">
<i class="far fa-clock fa-fw icon-date"></i>2023-04-16
</span>
<span class="publish-author">
<i class="fas fa-bookmark fa-fw icon-category"></i>
<a href="/categories/vue2%E6%80%A7%E8%83%BD%E4%BC%98%E5%8C%96/" class="post-category">
vue2性能优化
</a>
</span>
</div>
</div>
<div class="card-action article-tags">
<a href="/tags/vue2/">
<span class="chip bg-color">vue2</span>
</a>
<a href="/tags/vue2%E9%A1%B9%E7%9B%AE%E6%80%A7%E8%83%BD%E4%BC%98%E5%8C%96/">
<span class="chip bg-color">vue2项目性能优化</span>
</a>
</div>
</div>
</div>
<div class="article col s12 m4 14" data-aos="zoom-in">
<div class="card">
<a href="/posts/40eb.html" target="_blank">
<div class="card-image">
<img src="/images/loading.gif" data-original="/medias/featureimages/8.jpg" class="responsive-img" alt="vue2项目dist瘦身——打包体积压缩73%、速度提升90%">
<span class="card-title">vue2项目dist瘦身——打包体积压缩73%、速度提升90%</span>
</div>
</a>
<div class="card-content article-content">
<div class="summary block-with-text">
背景随着前端技术的不断发展,网页应用程序变得越来越复杂,并且需要更多的资源来加载和运行。在使用 Vue2 构建的项目中,打包后的文件大小可能会非常大。
我的一个可视化系统项目,文件约1302个、有效代码行数约 257217行、项目整体资源算
</div>
<div class="publish-info">
<span class="publish-date">
<i class="far fa-clock fa-fw icon-date"></i>2023-04-06
</span>
<span class="publish-author">
<i class="fas fa-bookmark fa-fw icon-category"></i>
<a href="/categories/vue2%E6%89%93%E5%8C%85/" class="post-category">
vue2打包
</a>
</span>
</div>
</div>
<div class="card-action article-tags">
<a href="/tags/vue2/">
<span class="chip bg-color">vue2</span>
</a>
<a href="/tags/vue%E9%A1%B9%E7%9B%AE%E6%89%93%E5%8C%85/">
<span class="chip bg-color">vue项目打包</span>
</a>
</div>
</div>
</div>
</div>
</article>
</main>
<div class="container paging">
<div class="row">
<div class="col s6 m4 l4">
<a class="left btn-floating btn-large disabled">
<i class="fas fa-angle-left"></i>
</a>
</div>
<div class="page-info col m4 l4 hide-on-small-only">
<div class="center-align b-text-gray">1 / 4</div>
</div>
<div class="col s6 m4 l4">
<a href="/page/2/"
class="right btn-floating btn-large waves-effect waves-light bg-color">
<i class="fas fa-angle-right"></i>
</a>
</div>
</div>
</div>
<script>
// 时间计算
function siteTime() {
window.setTimeout("siteTime()", 1000);
var seconds = 1000;
var minutes = seconds * 60;
var hours = minutes * 60;
var days = hours * 24;
var years = days * 365;
var today = new Date();
var startYear = "2020";
var startMonth = "10";
var startDate = "12";
var startHour = "15";
var startMinute = "0";
var startSecond = "0";
var todayYear = today.getFullYear();
var todayMonth = today.getMonth() + 1;
var todayDate = today.getDate();
var todayHour = today.getHours();
var todayMinute = today.getMinutes();
var todaySecond = today.getSeconds();
var t1 = Date.UTC(startYear, startMonth, startDate, startHour, startMinute, startSecond);
var t2 = Date.UTC(todayYear, todayMonth, todayDate, todayHour, todayMinute, todaySecond);
var diff = t2 - t1;
var diffYears = Math.floor(diff / years);
var diffDays = Math.floor((diff / days) - diffYears * 365);
var diffHours = Math.floor((diff - (diffYears * 365 + diffDays) * days) / hours);
var diffMinutes = Math.floor((diff - (diffYears * 365 + diffDays) * days - diffHours * hours) /
minutes);
var diffSeconds = Math.floor((diff - (diffYears * 365 + diffDays) * days - diffHours * hours -
diffMinutes * minutes) / seconds);
if (startYear == todayYear) {
// document.getElementById("year").innerHTML = todayYear;
document.getElementById("sitetime").innerHTML = "本站已运行 " + diffDays + " 天 " + diffHours +
" 小时 " + diffMinutes + " 分钟 " + diffSeconds + " 秒";
} else {
// document.getElementById("year").innerHTML = startYear + " - " + todayYear;
document.getElementById("sitetime").innerHTML = "本站已运行 " + diffYears + " 年 " + diffDays +
" 天 " + diffHours + " 小时 " + diffMinutes + " 分钟 " + diffSeconds + " 秒";
}
}
</script>
<footer class="page-footer bg-color">
<div class="container row center-align" style="margin-bottom:10px">
<div class="col s12 m8 l8 copy-right">
<!-- 注释了链接
Copyright ©
<span id="year">年份</span>
<a href="https://sisi001.gitee.io" target="_blank">尖椒土豆sss</a>
| Powered by <a href="https://hexo.io/" target="_blank">Hexo</a>
| Theme <a href="https://github.com/blinkfox/hexo-theme-matery" target="_blank">Matery</a>
<br/>
-->
<i class="fas fa-chart-area"></i> 站点总字数: <span
class="white-color">39.7k</span> 字
<span id="busuanzi_container_site_pv">
| <i class="far fa-eye"></i> 总访问量: <span id="busuanzi_value_site_pv"
class="white-color"></span> 次
</span>
<br/>
<span id="sitetime">载入运行时间...</span>
<script>
setInterval(siteTime, 1000);
</script>
<br/>
</div>
<div class="col s12 m4 l4 social-link social-statis">
<a href="https://github.com/silin001/" title="github" class="tooltipped" target="_blank" data-tooltip="访问我的GitHub" data-position="top" data-delay="50">
<i class="fab fa-github"></i>
</a>
<a href="mailto:862956812@qq.com" title="QQ邮箱" class="tooltipped" target="_blank" data-tooltip="邮件联系我" data-position="top" data-delay="50">
<i class="fas fa-envelope-open"></i>
</a>
<div id='wxicon' class="tooltipped mydiv 111" title="微信">
<i class="fab fa-weixin"></i>
</div>
<a href="https://juejin.cn/user/2041110775208184/posts"
style="display: flex;
align-items: center;
justify-content: center;"
title="掘金" class="tooltipped" target="_blank" data-tooltip="关注我的掘金" data-position="top" data-delay="50">
<div style="width:22px;height:22px;background:url('https://lf3-cdn-tos.bytescm.com/obj/static/xitu_juejin_web/6c61ae65d1c41ae8221a670fa32d05aa.svg') no-repeat center/100% 100%"></div>
</a>
</div>
</div>
</footer>
<div class="progress-bar"></div>
<!-- 搜索遮罩框 -->
<div id="searchModal" class="modal">
<div class="modal-content">
<div class="search-header">
<span class="title"><i class="fas fa-search"></i> 搜索</span>
<input type="search" id="searchInput" name="s" placeholder="请输入搜索的关键字"
class="search-input">
</div>
<div id="searchResult"></div>
</div>
</div>
<script src="/js/search.js"></script>
<script type="text/javascript">
$(function () {
searchFunc("/" + "search.xml", 'searchInput', 'searchResult');
});
</script>
<!-- 回到顶部按钮 -->
<div id="backTop" class="top-scroll">
<a class="btn-floating btn-large waves-effect waves-light" href="#!">
<i class="fas fa-arrow-up"></i>
</a>
</div>
<!--自定义的 Loading Page-->
<div id="loader-box">
<div class="loader-wrapper">
<div class="loader">
<div class="logo">加载中...</div>
</div>
<div class="loader-text">
<div>L</div>
<div>O</div>
<div>A</div>
<div>D</div>
<div>I</div>
<div>N</div>
<div>G</div>
<div></div>
<div></div>
<div></div>
</div>
</div>
</div>
<script>
var endLoading = function () {
setTimeout(() => {
document.getElementById('loader-box').remove();
}, 1500)
}
// window.addEventListener('load',endLoading);
endLoading()
</script>
<!--
<img class="logo" src="/images/loading.gif" data-original="/medias/favicon.png"/>
-->
<script src="/js/matery.js"></script>
<script src="/libs/materialize/materialize.min.js"></script>
<script src="/libs/masonry/masonry.pkgd.min.js"></script>
<script src="/libs/aos/aos.js"></script>
<script src="/libs/scrollprogress/scrollProgress.min.js"></script>
<script src="/libs/lightGallery/js/lightgallery-all.min.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<!-- Baidu Analytics -->
<!-- Baidu Push -->
<script>
(function () {
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https') {
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
} else {
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
})();
</script>
<script src="/libs/others/clicklove.js"
async="async"></script>
<script async
src="/libs/others/busuanzi.pure.mini.js"></script>