-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
837 lines (684 loc) · 27.5 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
<!DOCTYPE html>
<html lang="zh">
<!-- Head tag -->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="referrer" content="no-referrer-when-downgrade">
<meta name="baidu-site-verification" content="" />
<meta name="google-site-verification" content="" />
<meta name="msvalidate.01" content="" />
<meta name="360-site-verification" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- if page has tags, then add tags to keyword -->
<meta name="keywords" content=",">
<!-- page.description has higher priority -->
<meta name="description" content="">
<link rel="shortcut icon" href="/img/icon.png">
<title>
多做多说
</title>
<link rel="canonical" href="https://suensky.github.io/">
<link rel="stylesheet" href="/css/geektutu.css">
<!-- global function -->
<script>
window.globalAddScript = function (url, onload, onerror) {
var s = document.createElement('script');
s.src = url;
onload && (s.onload = onload);
onerror && (s.onerror = onerror);
document.body.appendChild(s);
}
window.globalAddCss = function (url) {
var s = document.createElement('link');
s.rel = 'stylesheet';
s.href = url;
document.body.appendChild(s);
}
window.getPosition = function (ele) {
var x = 0, y = 0;
while (ele) {
x += (ele.offsetLeft - ele.scrollLeft + ele.clientLeft);
y += (ele.offsetTop - ele.scrollTop + ele.clientTop);
ele = ele.offsetParent;
}
return { x: x, y: y };
}
window.getDom = function (str) { return document.querySelector(str) }
</script>
<!-- google ad -->
<meta name="generator" content="Hexo 5.4.2"><link rel="alternate" href="/feed.xml" title="多做多说" type="application/rss+xml">
</head>
<body>
<header class="gkt-header col-xs-12 padding-0">
<div id="gkt-nav" class="gkt-header-container">
<a href="/" class="gkt-header-title float-left">
<img class="float-left" src="/img/icon.png" alt="">
<span>多做多说</span>
</a>
<nav class="gkt-header-nav text-right">
<ul>
<li><a href="/series/">专题</a></li>
<li><a href="/archives/">归档</a></li>
<li><a href="/post/link.html">友链</a></li>
<li><a href="/post/about.html">关于</a></li>
</ul>
</nav>
</div>
<div id="gkt-cate-nav" class="gkt-header-container hidden-xs">
<nav class="gkt-header-nav float-left">
<ul>
<li class="gkt-cate-name float-left ">
<a class="float-left" href="/post/startwritting.html">诗和远方 ▾</a>
<ul class="gkt-sub-cate">
<li class="gkt-sub-cate-name "><a class="float-left"
href="/post/startwritting.html">随笔</a></li>
<li class="gkt-sub-cate-name "><a class="float-left"
href="/post/poem-so-green.html">诗</a></li>
</ul>
</li>
<li class="gkt-cate-name float-left ">
<a class="float-left" href="/post/dp-1.html">算法专题 ▾</a>
<ul class="gkt-sub-cate">
<li class="gkt-sub-cate-name "><a class="float-left"
href="/post/dp-1.html">算法题解</a></li>
<li class="gkt-sub-cate-name "><a class="float-left"
href="/post/clubhouse-problem1.html">趣谈算法</a></li>
<li class="gkt-sub-cate-name "><a class="float-left"
href="/post/algorithm_union-find.html">算法详解</a></li>
</ul>
</li>
<li class="gkt-cate-name float-left ">
<a class="float-left" href="/post/java-collections.html">编程语言 ▾</a>
<ul class="gkt-sub-cate">
<li class="gkt-sub-cate-name "><a class="float-left"
href="/post/java-collections.html">Java</a></li>
<li class="gkt-sub-cate-name "><a class="float-left"
href="/post/scala-intro.html">Scala</a></li>
</ul>
</li>
<li class="gkt-cate-name float-left ">
<a class="float-left" href="/post/github_action.html">工程实践</a>
</li>
</ul>
</nav>
</div>
</header>
<div class="gkt-header-placeholder" style="height: 44px"></div>
<div class="gkt-header-placeholder hidden-xs" style="height: 44px"></div>
<script>
(function () {
window.addEventListener('scroll', function () {
if (window.innerWidth < 768) {
return;
}
var nav = document.querySelector('#gkt-nav');
var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
scrollTop > 50 && (nav.classList.add('hide'));
scrollTop <= 50 && (nav.classList.remove('hide'));
});
var cateNavs = document.querySelectorAll('#gkt-cate-nav>nav>ul>li');
[].slice.call(cateNavs).forEach(function (item) {
var sub = item.querySelector('.gkt-sub-cate');
if (!sub) return;
item.addEventListener('mouseenter', function (e) { sub.style.display = 'block'; }, false);
item.addEventListener('mouseleave', function (e) { sub.style.display = 'none'; }, false);
})
})();
</script>
<!-- Main Content -->
<div class="main-container">
<!-- Main Content -->
<main class="col-xs-12 padding-0 markdown-it">
<!-- Post Container -->
<style>
@media (min-width: 1200px) {
.main-container {
width: 1000px !important;
}
}
</style>
<div class="float-left post-container box-shadow">
<!-- Main Content -->
<!-- css page.ejs -->
<!-- 置顶文章 -->
<!-- 普通文章 -->
<div class="post-preview">
<div class="post-img" style="background-image: url('/img/tech.png')"></div>
<div class="post-info">
<div class="post-info-center">
<div class="hidden-xs">
<span>/</span>
<a class="text-gray" href="/tags/#devops"
title="devops">devops</a>
<span>/</span>
</div>
<a href="/post/github_action.html" class="title">
折腾github action的一天
</a>
<p class="text-gray">
<small>
<span>发表于2023-12-14,</span>
<span class="hidden-xs">全文1334字,</span>
<span>阅读约5分钟</span>
</small>
</p>
</div>
</div>
</div>
<div class="post-preview">
<div class="post-img" style="background-image: url('/img/essay.png')"></div>
<div class="post-info">
<div class="post-info-center">
<div class="hidden-xs">
<span>/</span>
<a class="text-gray" href="/tags/#随笔"
title="随笔">随笔</a>
<span>/</span>
</div>
<a href="/post/another_10years.html" class="title">
又十年
</a>
<p class="text-gray">
<small>
<span>发表于2023-11-01,</span>
<span class="hidden-xs">全文452字,</span>
<span>阅读约2分钟</span>
</small>
</p>
</div>
</div>
</div>
<div class="post-preview">
<div class="post-img" style="background-image: url('/img/poem.png')"></div>
<div class="post-info">
<div class="post-info-center">
<div class="hidden-xs">
<span>/</span>
<a class="text-gray" href="/tags/#随笔"
title="随笔">随笔</a>
<span>/</span>
</div>
<a href="/post/the-home.html" class="title">
吾心安处
</a>
<p class="text-gray">
<small>
<span>发表于2023-11-01,</span>
<span class="hidden-xs">全文155字,</span>
<span>阅读约1分钟</span>
</small>
</p>
</div>
</div>
</div>
<div class="post-preview">
<div class="post-img" style="background-image: url('/img/poem.png')"></div>
<div class="post-info">
<div class="post-info-center">
<div class="hidden-xs">
<span>/</span>
<a class="text-gray" href="/tags/#随笔"
title="随笔">随笔</a>
<span>/</span>
</div>
<a href="/post/goodbye-google.html" class="title">
夏日绝句
</a>
<p class="text-gray">
<small>
<span>发表于2021-07-20,</span>
<span class="hidden-xs">全文214字,</span>
<span>阅读约1分钟</span>
</small>
</p>
</div>
</div>
</div>
<div class="post-preview">
<div class="post-img" style="background-image: url('/img/tech.png')"></div>
<div class="post-info">
<div class="post-info-center">
<div class="hidden-xs">
<span>/</span>
<a class="text-gray" href="/tags/#programming"
title="programming">programming</a>
<span>/</span>
</div>
<a href="/post/scala-intro.html" class="title">
Recap of Scala tutorial
</a>
<p class="text-gray">
<small>
<span>发表于2021-07-12,</span>
<span class="hidden-xs">全文19306字,</span>
<span>阅读约65分钟</span>
</small>
</p>
</div>
</div>
</div>
<div class="post-preview">
<div class="post-img" style="background-image: url('/img/tech.png')"></div>
<div class="post-info">
<div class="post-info-center">
<div class="hidden-xs">
<span>/</span>
<a class="text-gray" href="/tags/#programming"
title="programming">programming</a>
<span>/</span>
</div>
<a href="/post/algorithm-reservoir-sampling.html" class="title">
详解水塘抽样(Reservoir sampling)
</a>
<p class="text-gray">
<small>
<span>发表于2021-03-24,</span>
<span class="hidden-xs">全文3837字,</span>
<span>阅读约13分钟</span>
</small>
</p>
</div>
</div>
</div>
<div class="post-preview">
<div class="post-img" style="background-image: url('/img/tech.png')"></div>
<div class="post-info">
<div class="post-info-center">
<div class="hidden-xs">
<span>/</span>
<a class="text-gray" href="/tags/#programming"
title="programming">programming</a>
<span>/</span>
</div>
<a href="/post/java-collections.html" class="title">
Java集合速览
</a>
<p class="text-gray">
<small>
<span>发表于2021-03-07,</span>
<span class="hidden-xs">全文12378字,</span>
<span>阅读约42分钟</span>
</small>
</p>
</div>
</div>
</div>
<div class="post-preview">
<div class="post-img" style="background-image: url('/img/tech.png')"></div>
<div class="post-info">
<div class="post-info-center">
<div class="hidden-xs">
<span>/</span>
<a class="text-gray" href="/tags/#programming"
title="programming">programming</a>
<span>/</span>
</div>
<a href="/post/algorithm-segment-tree-2.html" class="title">
详解线段树之进阶(Segment Tree)
</a>
<p class="text-gray">
<small>
<span>发表于2021-03-05,</span>
<span class="hidden-xs">全文9692字,</span>
<span>阅读约33分钟</span>
</small>
</p>
</div>
</div>
</div>
<div class="post-preview">
<div class="post-img" style="background-image: url('/img/tech.png')"></div>
<div class="post-info">
<div class="post-info-center">
<div class="hidden-xs">
<span>/</span>
<a class="text-gray" href="/tags/#programming"
title="programming">programming</a>
<span>/</span>
</div>
<a href="/post/algorithm-segment-tree.html" class="title">
详解线段树之入门(Segment Tree)
</a>
<p class="text-gray">
<small>
<span>发表于2021-03-04,</span>
<span class="hidden-xs">全文6798字,</span>
<span>阅读约23分钟</span>
</small>
</p>
</div>
</div>
</div>
<div class="post-preview">
<div class="post-img" style="background-image: url('/img/tech.png')"></div>
<div class="post-info">
<div class="post-info-center">
<div class="hidden-xs">
<span>/</span>
<a class="text-gray" href="/tags/#programming"
title="programming">programming</a>
<span>/</span>
</div>
<a href="/post/algorithm-fenwick-tree.html" class="title">
详解二叉索引树(Binary Index Tree又名Fenwick Tree)
</a>
<p class="text-gray">
<small>
<span>发表于2021-03-03,</span>
<span class="hidden-xs">全文8422字,</span>
<span>阅读约29分钟</span>
</small>
</p>
</div>
</div>
</div>
<div style="margin: 15px 0">
<div class="text-center">
<p>
<a href="/page/2/">下一页 »</a>
</p>
</div>
</div>
</div>
<aside class="float-left gkt-sidebar hidden-xs hidden-sm">
<div style="clear: both"></div>
<div class="gkt-sidebar-wrapper">
<section class="bg-white box-shadow"><style>
.gkt-summary {
border: 1px solid #DDDDDD;
border-radius: 3px;
padding: 5px;
width: 100%;
}
.gkt-summary nav {
overflow: hidden;
}
.gkt-summary nav a {
display: inline-block;
text-align: center;
color: #333;
font-size: 12px;
}
.gkt-summary nav span {
display: block;
}
.gkt-summary nav .middle {
border-left: 1px solid #eaecef;
border-right: 1px solid #eaecef;
}
.gkt-summary .number {
font-weight: bold;
}
.gkt-summary .link-list {
margin-top: 5px;
margin-bottom: -5px;
padding-top: 7px;
border-top: 1px dashed #999;
display: flex;
}
.gkt-summary .link-list a {
flex: 1;
}
.gkt-summary .link-list img {
width: 25px;
height: 25px;
}
</style>
<div class="gkt-summary">
<nav>
<a href="/" class="col-xs-4">
<span class="number">26</span><span>文章</span>
</a>
<a href="/series" class="col-xs-4 middle">
<span class="number">8</span><span>专题</span>
</a>
<a href="/tags" class="col-xs-4">
<span class="number">5</span><span>标签</span>
</a>
</nav>
</div></section>
<section class="gkt-sidebar-content bg-white box-shadow"><!-- Featured Tags -->
<style>
#featured-tag .post-tag-item {
font-size: 12px;
line-height: 30px;
display: inline-block;
height: 30px;
margin: 5px 0px;
padding: 0 7px;
color: #333;
border-radius: 15px;
background: #f6f6f6;
}
#featured-tag .post-tag-item:hover {
color: #337ab7;
}
</style>
<div id="featured-tag">
<a class="post-tag-item" href="/tags/#关于我" title="关于我"
rel="1">#关于我 (1) </a>
<a class="post-tag-item" href="/tags/#programming" title="programming"
rel="12">#programming (12) </a>
<a class="post-tag-item" href="/tags/#随笔" title="随笔"
rel="11">#随笔 (11) </a>
<a class="post-tag-item" href="/tags/#DP" title="DP"
rel="1">#DP (1) </a>
<a class="post-tag-item" href="/tags/#devops" title="devops"
rel="1">#devops (1) </a>
</div></section>
</div>
</aside>
<script>
(function () {
var ele = getDom('.gkt-sidebar-content')
if(!ele) return;
var wrapper = getDom('.gkt-sidebar-wrapper')
var last = 0
ele.style.maxHeight = ((window.innerHeight || 798) - 200) + 'px'
var f = function (e) {
var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
var isDown = scrollTop > last;
var pos = getPosition(ele).y - scrollTop;
var downLimit = 50;
var upLimit = -100;
// uarrow.style.marginTop = scrollTop + 'px';
isDown && pos <= downLimit && wrapper.classList.add("gkt-sidebar-fixed");
!isDown && pos > upLimit && wrapper.classList.remove("gkt-sidebar-fixed");
last = scrollTop
}
f()
window.addEventListener("scroll", f)
})();
</script>
</main>
</div>
<style>
img#go-top {
position: fixed;
bottom: 100px;
width: 50px;
cursor: pointer;
z-index: 9999;
}
</style>
<img id="go-top" src="/icon/top.png" class="hidden-xs" style="display: none" />
<script>
(function () {
var goTop = document.getElementById('go-top');
var mainContainer = document.querySelector('.main-container');
goTop.addEventListener('click', function () {
window.scroll(0, 0);
}, false);
window.addEventListener('scroll', function () {
var right = document.body.offsetWidth - mainContainer.getBoundingClientRect().right;
var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
goTop.style.right = right + 10 + 'px'
scrollTop > 700 && (goTop.style.display = "block");
scrollTop <= 700 && (goTop.style.display = "none");
});
})();
</script>
<style>
#geektutu-click-img-container {
position: fixed;
left: 0;
top: 0;
text-align: center;
width: 100%;
display: none;
z-index: 9999;
}
#geektutu-click-img-container img {
object-fit: contain;
background: #eaecef;
padding: 15px;
border-radius: 10px;
height: auto;
width: auto;
vertical-align: middle;
}
</style>
<div id="geektutu-click-img-container">
<img src="" alt="Big Image">
</div>
<script>
(function () {
var container = document.querySelector('#geektutu-click-img-container')
var targetImg = container.querySelector('img')
var imgs = document.querySelectorAll('article img');
targetImg.addEventListener('click', function (e) {
container.style.display = 'none';
e && e.stopPropagation && e.stopPropagation();
}, false);
for (var i = 0; i < imgs.length; ++i) {
var img = imgs[i];
img.addEventListener('click', (function (src, rate) {
return function (e) {
e && e.stopPropagation && e.stopPropagation();
if (window.innerWidth < 980) {
return
}
targetImg.style.height = targetImg.style.width = 'auto';
if (window.innerWidth / window.innerHeight > rate) {
targetImg.style.height = (window.innerHeight - 20) + 'px';
} else {
targetImg.style.width = (window.innerWidth - 20) + 'px';
}
container.style.height = window.innerHeight + 'px'
container.style.lineHeight = window.innerHeight + 'px'
container.style.display = 'block';
targetImg.src = src;
};
}(img.src, img.width / img.height)), false)
}
})();
</script>
<!-- Footer -->
<!-- Footer -->
<style>
footer {
width: 100%;
line-height: 1.5;
padding: 20px;
}
footer a {
color: #333;
text-decoration: none;
}
.footer-hexo img {
height: 20px;
margin-bottom: -5px;
}
.footer-hexo a {
color: #337ab7;
}
</style>
<footer class="text-center col-xs-12">
<p>
<small>© 2023 - sky - </small>
<small>
<a target="_blank" rel="nofollow noopener" href="http://beian.miit.gov.cn/"></a>
</small>
</p>
<p class="footer-hexo">
<!-- 但若直接使用或修改主题,请务必保留这段声明 -->
<small>Powered by <a target="_blank" href="https://hexo.io">Hexo</a> | Theme
<a target="_blank" href="https://geektutu.com">Geektutu</a>
<a target="_blank" rel="noopener" href="https://github.com/geektutu/hexo-theme-geektutu">
<img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAYGBgYHBgcICAcKCwoLCg8ODAwODxYQERAREBYiFRkVFRkVIh4kHhweJB42KiYmKjY+NDI0PkxERExfWl98fKcBBgYGBgcGBwgIBwoLCgsKDw4MDA4PFhAREBEQFiIVGRUVGRUiHiQeHB4kHjYqJiYqNj40MjQ+TERETF9aX3x8p//CABEIACIAUAMBIgACEQEDEQH/xAAcAAABBAMBAAAAAAAAAAAAAAAAAQQFBwIDBgj/2gAIAQEAAAAA9KrHSgAYL5/z6zZGuJd12uugbhq3uKtmuRtix20IS7lTLAfAAAn/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oACAECEAAAAAAB/8QAFAEBAAAAAAAAAAAAAAAAAAAAAP/aAAgBAxAAAAAAAf/EADEQAAICAQIEBQEGBwAAAAAAAAECAwQFAAYREhORBxQhUlQxQVFic5KxJDJCYYGC0f/aAAgBAQABPwCFHnjWUzuvN6hV4cANSRLGjO9yRVUcSzMoA7jVXJYe5N0a2dhmk9kc0bN2GvLN8mbuNeWb5M3ca8s3yZu415Y/Jm7jXlm+TN3H/NeVPyZu40vOk3TZywK8wJ+v3EHVM/wsI/Dq2lrxN3Nnca16eti8chSAIoMbzByhMwP14kHVfwIiSaF5c96J6kwwCOTnHsYk8uvCrdmQy1TI4rJuz3cZLyGR/wCd4+YoOf8AEpUjXitubLYPG4paFsUxcuiGe7yc5gTW3LW44szXmobsi3Dhmic2+Z4+vCVH9CpraPiQ+QvbgTJrPFBWd5YpWrmNIIEXiRO32Pqt4p7cnfHk18lFBdmEVW1LVdIZGOrniTt6plrWKaO69yCykDRxwF+LMAewB0Txtr+Sf31VI8tEPw62fZt7N3Humtbpzz13ucX6CGSWMSuzpLyD1eNgeUka3PuvHbaxq3biTMHfkiSNCS78CwU+3Xg7Vu3MhuTcU6cq3Zemn3Eh2dv8Lzcut+29x1atKbHYqLJUhLwyNMwiZ3j9yDWOxUOV3tgb+3No5LDx1pi9+aeIwRlNY6bc+Jv+IFGrhLxtXJZ7VKcw81diiAAEn0JOrkWZyNfbEr0tz27UGQgkuGzXdIIvyowq99bRxk9ffO/L81SZBPZgEEroQroIxxMZOgeNsfkn99QypHGqO4Vl9CDrN4LDZkwyzyyQ2IgRHZrzGCZVP1XnQglT9oOtw4LC7iqV6uRkZoYpxKFSQpzFRw4EjVRMfSrQ1qqwxQxKFjjTgFUD7BoWYR6iVe+mtxt9Zwf9teaj4AdccPu5tedX5A/VrzUR+sy/q1CwksF19VEfDj/cnQRW+qg66cfsXtrpx+xe2unH7F7a6cfsXtrpx+xe2unH7F7a6cfsXtoxx+xe2gAAOA1//8QAFBEBAAAAAAAAAAAAAAAAAAAAMP/aAAgBAgEBPwB//8QAFBEBAAAAAAAAAAAAAAAAAAAAMP/aAAgBAwEBPwB//9k="
alt="Github Star">
</a>
</small>
</p>
<p>
<small>
<span id="busuanzi_container_site_pv">👁<span id="busuanzi_value_site_pv"></span></span>
<span id="busuanzi_container_page_pv">📚<span id="busuanzi_value_page_pv"></span></span>
</small>
</p>
</footer>
<script>
window.addEventListener('load', function () {
globalAddScript('//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js');
})
</script>
<!-- Baidu Tongji -->
<script>
// 非本站网址,新开tab页签
(function () {
var stopBubble = function (e) {
e && e.stopPropagation && e.stopPropagation();
}
var links = document.querySelectorAll('a');
[].slice.call(links).forEach(function (item) {
if (item.href && item.href.indexOf(window.location.host) === -1) {
item.target = '_blank'
}
// 阻止冒泡,不触发彩蛋。
item.addEventListener('click', stopBubble, false);
});
var article = document.querySelector('article');
article && article.addEventListener('click', stopBubble, false)
})();
</script>
<script>
(function (window, document, undefined) {
var hearts = [];
var keywords = ["点个赞", "留个言", "赞赏一下", "多做多说", "suensky.github.io"];
function randomInt(max) {
return Math.floor(Math.random() * Math.floor(max));
}
window.addEventListener('click', createWord)
function createWord(e) {
var d = document.createElement("span");
d.style.position = 'fixed';
d.style.zIndex = 9999;
d.style.color = 'rgb(' + [randomInt(255), randomInt(255), randomInt(255)].join(',') + ')';
d.innerHTML = keywords[randomInt(keywords.length)];
d.onselectstart = function () { return false; }
hearts.push({ el: d, x: e.clientX - 5, y: e.clientY - 5, alpha: 1, scale: 1 });
document.body.appendChild(d);
}
(function gameloop() {
for (var i = 0; i < hearts.length; i++) {
heart = hearts[i];
if (heart.alpha <= 0) {
document.body.removeChild(heart.el);
hearts.splice(i, 1);
continue;
}
heart.y -= heart.alpha < 0.5 ? 2 : 1;
heart.scale += 0.002;
heart.alpha -= 0.013;
heart.el.style.transform = 'scale(' + heart.scale + ')';
heart.el.style.left = heart.x + 'px';
heart.el.style.top = heart.y + 'px';
}
setTimeout(gameloop, 10)
})();
})(window, document);
</script>
</body>
</html>