-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
2240 lines (1856 loc) · 64.7 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>
<!-- meta/link... -->
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
<!-- Global site tag (gtag.js) - Google Analytics -->
<title>Desline - Keep moving</title>
<link rel="stylesheet" href="/js/aos/aos.css">
<link rel="icon" type="image/jpeg" href="/yousa.jpeg">
<link rel="stylesheet" href="https://at.alicdn.com/t/font_1911880_c1nvbyezg17.css">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="/css/animate.min.css">
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/js/fancybox/jquery.fancybox.min.css">
<link rel="stylesheet" href="/js/shareJs/share.min.css">
<style>
@media (max-width: 992px) {
#waifu {
display: none;
}
}
</style>
<script src="//cdn.bootcss.com/pace/1.0.2/pace.min.js"></script>
<link href="//cdn.bootcss.com/pace/1.0.2/themes/pink/pace-theme-flash.css" rel="stylesheet">
<script src="/js/valine/[email protected]"></script>
<script src="https://cdn.jsdelivr.net/gh/HCLonely/Valine@latest/dist/Valine.min.js"></script>
<meta name="generator" content="Hexo 5.4.0"></head>
<!-- 依赖于jquery和vue -->
<script src="/js/jquery3.5.1.js"></script>
<script src="/js/vue2.6.11.js"></script>
<body>
<!-- 预加载动画 -->
<!-- 页面预加载动画 -->
<div id='loader'>
<link rel="stylesheet" href="/js/loaded/index.css" >
<div class="loading-left-bg"></div>
<div class="loading-right-bg"></div>
<div class="spinner-box">
<div class="configure-border-1">
<div class="configure-core"></div>
</div>
<div class="configure-border-2">
<div class="configure-core"></div>
</div>
<div class="loading-word">加载中...</div>
</div>
</div>
<script>
var endLoading = function () {
document.body.style.overflow = 'auto';
document.getElementById('loader').classList.add("loading");
}
window.addEventListener('DOMContentLoaded',endLoading);
</script>
<!-- 判断是否为暗黑风格 -->
<!-- 判断是否为黑夜模式 -->
<script>
let isDark = JSON.parse(localStorage.getItem('dark')) || JSON.parse('false');
if (isDark) {
$(document.body).addClass('darkModel');
}
</script>
<!-- 头部导航等 -->
<header class="header " id="navHeader"
style="position: fixed;
left: 0; top: 0; z-index: 10;width: 100%;"
>
<div class="header-content">
<div class="bars">
<div id="appDrawer" class="sidebar-image">
<div class="drawer-box-icon">
<i class="fa fa-bars" aria-hidden="true" @click="showDialogDrawer"></i>
</div>
<transition name="fade">
<div class="drawer-box_mask" v-cloak style="display: none;" v-show="visible" @click.self="cancelDialogDrawer">
</div>
</transition>
<div class="drawer-box" :class="{'active': visible}">
<div class="drawer-box-head bg-color">
<img class="drawer-box-head_logo" src="/yousa.jpeg" alt="logo">
<h3 class="drawer-box-head_title">Desline - Keep moving</h3>
<h5 class="drawer-box-head_desc"></h5>
</div>
<div class="drawer-box-content">
<ul class="drawer-box-content_menu">
<li class="drawer-box-content_item" style="position: relative;">
<a href="/" class="drawer-menu-item-link">
<i class="fa fa-home" aria-hidden="true"></i>
<span class="name">首页</span>
</a>
</li>
<li class="drawer-box-content_item" style="position: relative;">
<a href="/archives" class="drawer-menu-item-link">
<i class="fa fa-archive" aria-hidden="true"></i>
<span class="name">归档</span>
</a>
</li>
<li class="drawer-box-content_item" style="position: relative;">
<a href="/tags" class="drawer-menu-item-link">
<i class="fa fa-tags" aria-hidden="true"></i>
<span class="name">标签</span>
</a>
</li>
<li class="drawer-box-content_item" style="position: relative;">
<a href="/categories" class="drawer-menu-item-link">
<i class="fa fa-bookmark" aria-hidden="true"></i>
<span class="name">分类</span>
</a>
</li>
<li class="drawer-box-content_item" style="position: relative;">
<a href="javascript:;" class="drawer-menu-item-link has-children" @click="openOrCloseMenu(4)">
<span>
<i class="fa fa-link"></i>
<span class="name">更多</span>
</span>
<i class="fa fa-chevron-left arrow " :class="{'icon-rotate': isOpen(4)}" aria-hidden="true"></i>
</a>
<ul class="drawer-sub-menu" v-if="isOpen(4)">
<li>
<a href="/about">
<i class="fa fa-user" style="margin-top: -20px;"></i>
<span>关于我</span>
</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<script>
var body = document.body || document.documentElement || window;
var vm = new Vue({
el: '#appDrawer',
data: {
visible: false,
top: 0,
openArr: [],
},
computed: {
},
mounted() {
},
methods: {
isOpen(index) {
if (this.openArr.includes(index)) {
return true;
} else {
return false;
}
},
openOrCloseMenu(curIndex) {
const index = this.openArr.indexOf(curIndex);
if (index !== -1) {
this.openArr.splice(index, 1);
} else {
this.openArr.push(curIndex);
}
},
showDialogDrawer() {
this.visible = true;
// 防止页面滚动,只能让弹框滚动
this.top = $(document).scrollTop()
body.style.cssText = 'width: 100%; height: 100%;overflow: hidden;';
},
cancelDialogDrawer() {
this.visible = false;
body.removeAttribute('style');
$(document).scrollTop(this.top)
}
},
created() {}
})
</script>
</div>
<div class="blog-title" id="author-avatar">
<div class="avatar">
<img src="/yousa.jpeg" alt="logo">
</div>
<a href="/" class="logo">Desline - Keep moving</a>
</div>
<nav class="navbar">
<ul class="menu">
<li class="menu-item" style="position: relative;">
<a href="/" class="menu-item-link" title="首页">
<i class="fa fa-home" aria-hidden="true"></i>
<span class="name">首页</span>
</a>
</li>
<li class="menu-item" style="position: relative;">
<a href="/archives" class="menu-item-link" title="归档">
<i class="fa fa-archive" aria-hidden="true"></i>
<span class="name">归档</span>
</a>
</li>
<li class="menu-item" style="position: relative;">
<a href="/tags" class="menu-item-link" title="标签">
<i class="fa fa-tags" aria-hidden="true"></i>
<span class="name">标签</span>
</a>
</li>
<li class="menu-item" style="position: relative;">
<a href="/categories" class="menu-item-link" title="分类">
<i class="fa fa-bookmark" aria-hidden="true"></i>
<span class="name">分类</span>
</a>
</li>
<li class="menu-item" style="position: relative;">
<a href="javascript:;" class="menu-item-link" title="更多">
<i class="fa fa-link"></i>
<span class="name">更多</span>
<i class="fa fa-chevron-down arrow" aria-hidden="true"></i>
</a>
<ul class="sub-menu">
<li>
<a href="/about">
<i class="fa fa-user" style="margin-top: -20px;"></i>
<span>关于我</span>
</a>
</li>
</ul>
</li>
</ul>
<div id="appSearch">
<div class="search" @click="showDialog()"><i class="fa fa-search" aria-hidden="true"></i></div>
<transition name="fade">
<div class="message-box_wrapper" style="display: none;" v-cloak v-show="dialogVisible" @click.self="cancelDialogVisible()">
<div class="message-box animated bounceInDown">
<!-- <div class="close" style="overflow: hidden;">
<i class="fa fa-close" aria-hidden="true" style="float:right;" @click.self="cancelDialogVisible()"></i>
</div> -->
<h2>
<span>
<i class="fa fa-search" aria-hidden="true"></i>
<span class="title">本地搜索</span>
</span>
<i class="fa fa-close close" pointer style="float:right;" aria-hidden="true" @click.self="cancelDialogVisible()"></i>
</h2>
<form class="site-search-form">
<input type="text"
placeholder="请输入关键字"
id="local-search-input"
@click="getSearchFile()"
class="st-search-input"
v-model="searchInput"
/>
</form>
<div class="result-wrapper">
<div id="local-search-result" class="local-search-result-cls"></div>
</div>
</div>
</div>
</transition>
</div>
<script src="/js/local_search.js"></script>
<script>
var body = document.body || document.documentElement || window;
var vm = new Vue({
el: '#appSearch',
data: {
dialogVisible: false,
searchInput: '',
top: 0,
},
computed: {
},
mounted() {
},
methods: {
showDialog() {
this.dialogVisible = true;
// 防止页面滚动,只能让弹框滚动
this.top = $(document).scrollTop()
body.style.cssText = 'overflow: hidden;';
},
getSearchFile() {
if (!this.searchInput) {
getSearchFile("/search.xml");
}
},
cancelDialogVisible() {
this.dialogVisible = false;
body.removeAttribute('style');
$(document).scrollTop(this.top)
},
},
created() {}
})
</script>
<!-- 解决刷新页面闪烁问题,可以在元素上添加display: none, 或者用vue.extend方法,详情:https://blog.csdn.net/qq_31393401/article/details/81017912 -->
<!-- 下面是搜索基本写法 -->
<!-- <script type="text/javascript" id="local.search.active">
var inputArea = document.querySelector("#local-search-input");
inputArea.onclick = function(){ getSearchFile(); this.onclick = null }
inputArea.onkeydown = function(){ if(event.keyCode == 13) return false }
</script> -->
</nav>
</div>
<div id="he-plugin-simple"></div>
<script>
WIDGET = {
CONFIG: {
"modules": "012",
"background": 5,
"tmpColor": "4A4A4A",
"tmpSize": 16,
"cityColor": "4A4A4A",
"citySize": 16,
"aqiSize": 16,
"weatherIconSize": 24,
"alertIconSize": 18,
"padding": "10px 10px 10px 10px",
"shadow": "1",
"language": "auto",
"borderRadius": 5,
"fixed": "false",
"vertical": "middle",
"horizontal": "center",
"key": "2784dd3fcb1e4f0f9a9b579bf69641f2"
}
}
</script>
<script src="https://widget.qweather.net/simple/static/js/he-simple-common.js?v=2.0"></script>
<!-- 当头部导航设置为背景透明的时候 -->
<script src="/js/header/index.js" data-pjax></script>
</header>
<!-- 需要在上面加载的js -->
<script>
function loadScript(src, cb) {
setTimeout(function () {
var HEAD = document.getElementsByTagName('head')[0] || document.documentElement;
var script = document.createElement('script');
script.setAttribute('type', 'text/javascript');
if (cb) script.onload = cb;
script.setAttribute('src', src);
HEAD.appendChild(script);
});
}
//https://github.com/filamentgroup/loadCSS
var loadCSS = function (href, before, media, attributes) {
var doc = window.document;
var ss = doc.createElement("link");
var ref;
if (before) {
ref = before;
}
else {
var refs = (doc.body || doc.getElementsByTagName("head")[0]).childNodes;
ref = refs[refs.length - 1];
}
var sheets = doc.styleSheets;
if (attributes) {
for (var attributeName in attributes) {
if (attributes.hasOwnProperty(attributeName)) {
ss.setAttribute(attributeName, attributes[attributeName]);
}
}
}
ss.rel = "stylesheet";
ss.href = href;
ss.media = "only x";
function ready(cb) {
if (doc.body) {
return cb();
}
setTimeout(function () {
ready(cb);
});
}
ready(function () {
ref.parentNode.insertBefore(ss, (before ? ref : ref.nextSibling));
});
var onloadcssdefined = function (cb) {
var resolvedHref = ss.href;
var i = sheets.length;
while (i--) {
if (sheets[i].href === resolvedHref) {
return cb();
}
}
setTimeout(function () {
onloadcssdefined(cb);
});
};
function loadCB() {
if (ss.addEventListener) {
ss.removeEventListener("load", loadCB);
}
ss.media = media || "all";
}
if (ss.addEventListener) {
ss.addEventListener("load", loadCB);
}
ss.onloadcssdefined = onloadcssdefined;
onloadcssdefined(loadCB);
return ss;
};
</script>
<!-- 轮播图所需要的js -->
<script src="/js/swiper/swiper.min.js"></script>
<script src="/js/swiper/vue-awesome-swiper.js"></script>
<script src="/js/swiper/swiper.animate1.0.3.min.js"></script>
<script src="/js/vue-typed-js/index.js"></script>
<!-- 首页的公告滚动插件的js需要重新加载 -->
<script src="/js/vue-seamless-scroll/index.js"></script>
<!-- 打字机效果js -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<!-- 内容区域 -->
<main class="main" id="pjax-container" style="margin-top: 0;">
<!-- 首页轮播 -->
<link href="/js/swiper/[email protected]" rel="stylesheet">
<link href="/js/vue-typed-js/index.css" rel="stylesheet">
<div class="swiper-length" style="display: none;">2</div>
<div id="appSwiper"
class=""
@mouseenter="stopAutoPlay()"
@mouseleave="startAutoPlay()"
>
<swiper v-cloak ref="mySwiper" :options="swiperOptions" @slideChangeTransitionEnd="slideChangeTransitionEnd">
<swiper-slide>
<div class="item swiper-lazy" data-background="https://img11.360buyimg.com/ddimg/jfs/t1/160978/33/20686/2476596/6083e62dEa588862b/63f8f2163ab61b2f.png" style="background-size: 300000px;
background-position: left center;" style="position: relative;">
<div class="swiper-bgmask" style="position: absolute;top: 0;left: 0;width: 100%;height: 100%;"></div>
<div class="flag">
<div class="img-mask swiper-lazy swiper-default-bgImg" data-background="https://img11.360buyimg.com/ddimg/jfs/t1/160978/33/20686/2476596/6083e62dEa588862b/63f8f2163ab61b2f.png" style="height: 100%; background-size: cover;
background-position: center center;">
<div class="swiper-lazy-preloader swiper-lazy-preloader-white"></div>
</div>
<div class="flag-text">
<div class="flag-text-content">
<div class="title ani animated" swiper-animate-effect="fadeInDown" swiper-animate-duration="0.2s" swiper-animate-delay="0.1s">Desline</div>
<div class="ani animated default-excerpt" swiper-animate-effect="fadeInDown" swiper-animate-duration="0.2s" swiper-animate-delay="0.1s">
<vue-typed-js :strings="defaultDesc" :loop="defaultDescTypedLoop" :type-speed="120" :back-speed="50">
<h1 class="typing"></h1>
</vue-typed-js>
</div>
</div>
<div style="display: flex;" class="flag-text-btns">
<div class="ani animated" swiper-animate-effect="fadeInDown" swiper-animate-duration="0.2s" swiper-animate-delay="0.1s"><a href="/archives/" class="read-more swiper-btn-color" style="display: inline-block; z-index:1;">阅读文档</a></div>
<div class="ani animated" style="margin-left: 10px;" swiper-animate-effect="fadeInDown" swiper-animate-duration="0.2s" swiper-animate-delay="0.1s"><a target="_blank" rel="noopener" href="https://gitee.com/yuang01/hexo-theme-bamboo/repository/archive/dev.zip" class="read-more swiper-btn-color2" style="display: inline-block; z-index:1;border: 1px solid white;">下载主题</a></div>
</div>
</div>
</div>
</div>
</swiper-slide>
<swiper-slide>
<div class="item swiper-lazy" data-background="/2022/01/26/Django%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%88%E4%B8%80%EF%BC%89/bg.jpeg" style=" background-size: 300000px;
background-position: left center;" style="position: relative;">
<div class="swiper-bgmask" style="position: absolute;top: 0;left: 0;width: 100%;height: 100%;"></div>
<div class="flag" style="z-index: 2;">
<div class="img-mask swiper-lazy" data-background="/2022/01/26/Django%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%88%E4%B8%80%EF%BC%89/bg.jpeg" style="height: 100%; background-size: cover;
background-position: center center;">
<div class="swiper-lazy-preloader swiper-lazy-preloader-white"></div>
</div>
<div class="flag-text">
<div class="flag-text-content">
<div class="title ani animated" swiper-animate-effect="fadeInDown" swiper-animate-duration="0.2s" swiper-animate-delay="0.1s">
<a href="/2022/01/26/Django%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%88%E4%B8%80%EF%BC%89/">
Django学习笔记(一)
</a>
</div>
<div class="excerpt ani animated" swiper-animate-effect="fadeInDown" swiper-animate-duration="0.2s" swiper-animate-delay="0.1s">Django基本配置与操作</div>
</div>
<div class="bottom-one-btn ani animated" swiper-animate-effect="fadeInDown" swiper-animate-duration="0.2s" swiper-animate-delay="0.1s"><a href="/2022/01/26/Django%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%88%E4%B8%80%EF%BC%89/" class="read-more swiper-btn-color" style="display: inline-block; z-index:1;">阅读更多</a></div>
</div>
</div>
</div>
</swiper-slide>
<swiper-slide>
<div class="item swiper-lazy" data-background="/medias/11.jpg" style=" background-size: 300000px;
background-position: left center;" style="position: relative;">
<div class="swiper-bgmask" style="position: absolute;top: 0;left: 0;width: 100%;height: 100%;"></div>
<div class="flag" style="z-index: 2;">
<div class="img-mask swiper-lazy" data-background="/medias/11.jpg" style="height: 100%; background-size: cover;
background-position: center center;">
<div class="swiper-lazy-preloader swiper-lazy-preloader-white"></div>
</div>
<div class="flag-text">
<div class="flag-text-content">
<div class="title ani animated" swiper-animate-effect="fadeInDown" swiper-animate-duration="0.2s" swiper-animate-delay="0.1s">
<a href="/2021/08/15/%E6%99%BA%E8%83%BD%E5%90%88%E7%BA%A6%E4%B8%8ESolidity%E5%AD%A6%E4%B9%A0%EF%BC%88%E4%B8%80%EF%BC%89/">
智能合约与Solidity学习(一)
</a>
</div>
<div class="excerpt ani animated" swiper-animate-effect="fadeInDown" swiper-animate-duration="0.2s" swiper-animate-delay="0.1s">智能合约的起源与Solidity简介~</div>
</div>
<div class="bottom-one-btn ani animated" swiper-animate-effect="fadeInDown" swiper-animate-duration="0.2s" swiper-animate-delay="0.1s"><a href="/2021/08/15/%E6%99%BA%E8%83%BD%E5%90%88%E7%BA%A6%E4%B8%8ESolidity%E5%AD%A6%E4%B9%A0%EF%BC%88%E4%B8%80%EF%BC%89/" class="read-more swiper-btn-color" style="display: inline-block; z-index:1;">阅读更多</a></div>
</div>
</div>
</div>
</swiper-slide>
<div class="swiper-pagination" slot="pagination" pointer style=""></div>
<div class="swiper-button-prev swiper-button-white" pointer slot="button-prev" style=""></div>
<div class="swiper-button-next swiper-button-white" pointer slot="button-next" style=""></div>
</swiper>
<div id="scroll-down" @click="toPostContent()">
<a href="javascript:;">
<i class="fa fa-angle-down scroll-down-effects"></i>
</a>
</div>
<canvas id="header_canvas"style="position:absolute;bottom:0;width:100%;pointer-events:none;"></canvas>
</div>
<script type="text/javascript">
Vue.use(window.VueAwesomeSwiper)
</script>
<script>
var autoplay = JSON.parse('true');
var delay = '5000';
var loop = JSON.parse('true') ? false : JSON.parse('true');
var effect = 'fade';
var swiperLength = parseInt(document.querySelector(".swiper-length").innerText);
var defaultDesc = '游龙当归海,海不迎我自来也,Keep moving, angel is there';
defaultDesc = defaultDesc.split(',');
var defaultDescTypedLoop = JSON.parse('false');
var vm = new Vue({
el: '#appSwiper',
data: {
defaultDesc: defaultDesc,
defaultDescTypedLoop,
swiperOptions: {
pagination: {
el: '.swiper-pagination',
clickable: true // 允许点击小圆点跳转
},
loop: loop ? true : false,
effect, // fade
autoplay: (autoplay && swiperLength > 1) ? {
delay,
disableOnInteraction: false // 手动切换之后继续自动轮播
} : false,
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
lazy: {
loadPrevNext: true,
},
on:{
init: function() {
swiperAnimateCache(this); //隐藏动画元素
swiperAnimate(this); //初始化完成开始动画
},
slideChangeTransitionEnd: function(){
swiperAnimate(this); //每个slide切换结束时也运行当前slide动画
}
}
// Some Swiper option/callback...
}
},
computed: {
swiper() {
return this.$refs.mySwiper.$swiper
}
},
mounted() {
// console.log('Current Swiper instance object', this.swiper)
// this.swiper.slideTo(0, 1000, false)
},
methods: {
stopAutoPlay() {
(autoplay && swiperLength > 1) && this.swiper.autoplay.stop();
},
startAutoPlay() {
(autoplay && swiperLength > 1) && this.swiper.autoplay.start();
},
slideChangeTransitionEnd() {
console.log('1');
},
toPostContent() {
const fullHeight = $(window).height() - 60;
$('html,body').animate({scrollTop: fullHeight},500);
}
},
created() {}
})
</script>
<script src="/js/bubble/homeBubble.js"></script>
<style>
#appSwiper {
position: relative;
user-select: none;
}
.default-excerpt {
font-size: 1.6rem;
margin-top: 1rem;
font-family: Titillium Web,'PingFang SC','Hiragino Sans GB','Microsoft JhengHei','Microsoft YaHei',sans-serif;
}
.bottom-one-btn {
margin-top: 15px;
}
.swiper-container {
overflow: hidden;
z-index: 0;
}
.swiper-slide {
height: 350px;
position: relative;
}
.swiper-button-prev,
.swiper-button-next {
padding: 10px 10px;
transition: background 0.2s;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
background: rgba(0, 0, 0, 0.2);
}
.swiper-slide .item {
width: 100%;
height: 100%;
}
.flag {
position: relative;
width: 60%;
margin: 0 auto;
color: #ffffff;
height: 100%;
background: #000;
}
.flag img {
min-height: 100%;
}
.flag-text {
position: absolute;
top: 50px;
left: 50px;
width: 80%;
height: 280px;
display: flex;
flex-direction: column;
justify-content: space-between;
z-index: 9999;
}
.flag-text .title {
font-size: 1.8rem;
font-family: Long Cang,cursive;
}
.flag-text .title a {
color: #fff;
transition: color 0.3s;
}
.flag-text .title a:hover {
color: #42b983;
}
.flag-text .excerpt {
color: #eee;
font-family: Ubuntu,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;
width: 70%;
line-height: 30px;
height: 150px;
margin-top: 2%;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 5;
overflow: hidden;
}
.swiper-pagination-bullet-active {
opacity: 1;
background-color: #42b983;
}
.img-mask {
opacity:0.6; filter: alpha(opacity=60);
}
.flag-text .read-more {
margin-bottom: 30px;
padding: 5px 15px;
color: #ffffff;
border-radius: 20px;
}
#scroll-down {
position: absolute;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
font-size: 2.5rem;
color: #fff;
cursor: pointer;
z-index: 2;
}
#scroll-down a {
color: #fff;
}
@-webkit-keyframes rightan
{
0%
{
transform: translateY(0);
opacity: 0.5;
}
50% {
transform: translateY(-30px);
opacity: 1;
}
100%
{
transform: translateY(0);
opacity: 0.5;
}
}
.scroll-down-effects {
animation: rightan 1.5s infinite;
}
/* 当头部导航设置为背景透明的时候 */
.swiper-slide {
height: 400px;
}
.flag-text {
top: 80px;
}
@media (min-width: 992px) {
.swiper-button-prev {
margin-left: 20%;
transform: translateX(-180%);
}
.swiper-button-next {
margin-right: 20%;
transform: translateX(180%);
}
.flag-text .title {
width: 80%;
line-height: 35px;
max-height: 70px;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}
}
@media (max-width: 992px) {
.flag {
width: 100%;
}
.flag-text .title {
font-size: 1.5rem;
margin-top: 50px;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}
.flag-text {
position: absolute;
top: 0;
left: 0;
width: 80%;
height: 100%;
margin-left: 50%;
transform: translateX(-50%);
}
.flag-text .excerpt {
width: 100%;
line-height: 25px;
height: 125px;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 5;
overflow: hidden;
}
.flag-text .read-more {
margin-bottom: 80px;
}
}
@media (max-width: 992px) and (min-width: 551px) {
.flag-text .excerpt {
width: 70%;
}
}
@media (max-width: 551px) {
.swiper-slide {
height: 250px;
}
.flag-text .title {
line-height: 30px;
max-height: 60px;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
margin-top: 20px;
}
.flag-text .excerpt {
font-size: 1rem;
line-height: 20px;
height: 80px;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 4;
}
.flag-text .excerpt {
margin-top: 10px;
}
.flag-text .read-more {
margin-top: 10px;
margin-bottom: 50px;
}
.swiper-button-prev,
.swiper-button-next {
transform: scale(0.5);
}
.swiper-button-prev {
left: 0;
}
.swiper-button-next {
right: 0;
}
}
/* 当头部导航设置为背景透明的时候 */
@media (max-width: 992px) {
.flag-text {
top: 60px;
height: 80%;
}
}
@media (max-width: 551px) {
.swiper-slide {
height: 310px;
}
}