-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.html
944 lines (574 loc) · 24.6 KB
/
404.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
<!DOCTYPE html>
<html>
<head hexo-theme='https://github.com/volantis-x/hexo-theme-volantis/releases/tag/3.0.0'>
<meta charset="utf-8">
<!-- SEO相关 -->
<!-- 渲染优化 -->
<meta name="renderer" content="webkit">
<meta name="force-rendering" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="HandheldFriendly" content="True" >
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!-- 页面元数据 -->
<title>404 Not Found - 明月归的小站</title>
<!-- feed -->
<!-- import meta -->
<!-- link -->
<link rel="stylesheet" href="/static/js-css/all.min.css">
<link rel="stylesheet" href="/static/js-css/font-awesome-animation.min.css">
<link rel="stylesheet" href="/static/js-css/jquery.fancybox.min.css">
<link rel="stylesheet" href="/static/js-css/waves.min.css">
<!-- import link -->
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<div class="cover-wrapper">
<cover class='cover page' style="display: none;">
<div class='cover-body'>
<div class='a'>
</div>
<div class='b'>
<div class='menu navigation dock'>
<div class='list-h'>
</div>
</div>
</div>
</div>
<div class="scroll-down" style="display: none;"><i class="fa fa-chevron-down scroll-down-effects"></i></div>
</cover>
<header class="l_header no_sidebar shadow blur">
<div class='container'>
<div class='wrapper'>
<div class='nav-sub'>
<p class="title"></p>
<ul class='switcher nav-list-h m-phone' id="pjax-header-nav-list">
<li><a class="s-comment fas fa-comments fa-fw" target="_self" href='javascript:void(0)'></a></li>
</ul>
</div>
<div class="nav-main">
<a class="title flat-box" target="_self" href='/'>
</a>
<div class='menu navigation'>
<ul class='nav-list-h m-pc'>
<li>
<a class="menuitem flat-box faa-parent animated-hover" href=/
id="home"
>
<i class='fas fa-rss fa-fw'></i>博客
</a>
</li>
<li>
<a class="menuitem flat-box faa-parent animated-hover" href=/archives/
id="archives"
>
<i class='fas fa-archive fa-fw'></i>归档
</a>
</li>
<li>
<a class="menuitem flat-box faa-parent animated-hover" href=/tags/
id="tags"
>
<i class='fas fa-tags fa-fw'></i>标签
</a>
</li>
<li>
<a class="menuitem flat-box faa-parent animated-hover" href=/friends/
id="friends"
>
<i class='fas fa-link fa-fw'></i>友链
</a>
</li>
<li>
<a class="menuitem flat-box faa-parent animated-hover" href=/about/
id="about"
>
<i class='fas fa-info-circle fa-fw'></i>关于
</a>
</li>
</ul>
</div>
<div class="m_search">
<form name="searchform" class="form u-search-form">
<i class="icon fas fa-search fa-fw"></i>
<input type="text" class="input u-search-input" placeholder="Search..." />
</form>
</div>
<ul class='switcher nav-list-h m-phone'>
<li><a class="s-search fas fa-search fa-fw" target="_self" href='javascript:void(0)'></a></li>
<li>
<a class="s-menu fas fa-bars fa-fw" target="_self" href='javascript:void(0)'></a>
<ul class="menu-phone list-v navigation white-box">
<li>
<a class="menuitem flat-box faa-parent animated-hover" href=/
id="home"
>
<i class='fas fa-rss fa-fw'></i>博客
</a>
</li>
<li>
<a class="menuitem flat-box faa-parent animated-hover" href=/archives/
id="archives"
>
<i class='fas fa-archive fa-fw'></i>归档
</a>
</li>
<li>
<a class="menuitem flat-box faa-parent animated-hover" href=/tags/
id="tags"
>
<i class='fas fa-tags fa-fw'></i>标签
</a>
</li>
<li>
<a class="menuitem flat-box faa-parent animated-hover" href=/friends/
id="friends"
>
<i class='fas fa-link fa-fw'></i>友链
</a>
</li>
<li>
<a class="menuitem flat-box faa-parent animated-hover" href=/about/
id="about"
>
<i class='fas fa-info-circle fa-fw'></i>关于
</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</header>
</div>
<div class="l_body nocover">
<div class='body-wrapper' id="pjax-container">
<!--此文件用来存放一些不方便取值的变量-->
<!--思路大概是将值藏到重加载的区域内-->
<div id="pjax-data" style="display: none">
<div id="pjax-ispage">false</div>
<div id="pjax-pageTitle"></div>
<div id="pjax-enable-cover">true</div>
<div id="pjax-comment-path">none</div>
<div id="pjax-comment-placeholder">none</div>
</div>
<script>
// 处理封面 此时 jquery 还没加载
if ("none" == "none") { // 移除封面
document.getElementsByClassName('cover')[0].style.display = "none";
document.getElementsByClassName('l_body')[0].classList.add("nocover");
document.getElementsByClassName('l_header', 'cover-wrapper')[0].classList.add("show");
} else {
if ("none" == "blog") { // 半屏
document.getElementsByClassName('cover')[0].classList.remove("full");
document.getElementsByClassName('cover')[0].classList.add("half");
document.getElementsByClassName('scroll-down')[0].style.display = "none";
} else if ("none" == "docs") { // 全屏
document.getElementsByClassName('cover')[0].classList.remove("half");
document.getElementsByClassName('cover')[0].classList.add("full");
document.getElementsByClassName('scroll-down')[0].style.display = "";
}
document.getElementsByClassName('cover')[0].style.display = "";
document.getElementsByClassName('l_body', 'show')[0].classList.remove("nocover");
document.getElementsByClassName('l_header', 'cover-wrapper')[0].classList.remove("show");
}
</script>
<div class='l_main no_sidebar'>
<article id="page" class="post white-box reveal shadow article-type-page" itemscope itemprop="blogPost">
<section class='meta'>
<div class="meta" id="header-meta">
<div class='new-meta-box'>
</div>
</div>
</section>
<section class="article typo">
<div class="article-entry" itemprop="articleBody">
<h1 id="404-Not-Found"><a href="#404-Not-Found" class="headerlink" title="404 Not Found"></a><center><strong>404 Not Found</strong></center></h1><br>
<center>**很抱歉,您访问的页面不存在**</center>
<center>可能是输入地址有误或该地址已被删除</center>
<br>
<br>
</div>
<section class='meta' id="footer-meta">
<div class='new-meta-box'>
</div>
</section>
</section>
</article>
<article class="post white-box reveal comments shadow">
<section class="article typo">
<p ct><i class='fas fa-comments'></i> 评论</p>
<section id="comments">
<div id="valine_container" class="valine_thread">
<i class="fas fa-cog fa-spin fa-fw fa-2x"></i>
</div>
</section>
</section>
</article>
<!-- 根据页面mathjax变量决定是否加载MathJax数学公式js -->
</div>
<aside class='l_side'>
</aside>
</div>
<footer class="clearfix">
<br><br>
<br>
<div class="social-wrapper">
<a href="/atom.xml"
class="social fas fa-rss flat-btn"
target="_blank"
rel="external nofollow noopener noreferrer">
</a>
<a href="mailto:[email protected]"
class="social fas fa-envelope flat-btn"
target="_blank"
rel="external nofollow noopener noreferrer">
</a>
<a href="https://github.com/BeyondOneself"
class="social fab fa-github flat-btn"
target="_blank"
rel="external nofollow noopener noreferrer">
</a>
</div>
<div><p>博客内容遵循 <a target="_blank" rel="noopener" href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh">署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0) 协议</a></p>
</div>
本站使用
<a href="https://github.com/volantis-x/hexo-theme-volantis/releases/tag/3.0.0" target="_blank" class="codename">Volantis</a>
作为主题,总访问量为
<span id="busuanzi_value_site_pv"><i class="fas fa-circle-notch fa-spin fa-fw" aria-hidden="true"></i></span>
次
<div class='copyright'>
<p><a href="/">Copyright © 2019-2020</a></p>
</div>
</footer>
<a class="s-top fas fa-arrow-up fa-fw" href='javascript:void(0)'></a>
</div>
<div>
<script src="/static/js-css/jquery.min.js"></script>
<script>
var SEARCH_SERVICE = "hexo" || "hexo";
var ROOT = "/" || "/";
if (!ROOT.endsWith('/')) ROOT += '/';
</script>
<script async src="/static/js-css/instant_page.js" type="module" defer integrity="sha384-OeDn4XE77tdHo8pGtE1apMPmAipjoxUQ++eeJa6EtJCfHlvijigWiJpD7VDPWXV1"></script>
<script src="/static/js-css/jquery.backstretch.min.js"></script>
<script type="text/javascript">
$(function(){
var imgs=["/static/images/1.jpg", "/static/images/2.jpg", "/static/images/3.jpg", "/static/images/4.jpg", "/static/images/5.jpg", "/static/images/6.jpg", "/static/images/7.jpg", "/static/images/8.jpg", "/static/images/9.jpg", "/static/images/10.jpg", "/static/images/11.jpg", "/static/images/12.jpg", "/static/images/13.jpg", "/static/images/14.jpg", "/static/images/15.jpg", "/static/images/16.jpg", "/static/images/17.jpg", "/static/images/18.jpg", "/static/images/19.jpg", "/static/images/20.jpg", "/static/images/21.jpg", "/static/images/22.jpg", "/static/images/23.jpg", "/static/images/24.jpg", "/static/images/25.jpg", "/static/images/26.jpg", "/static/images/27.jpg", "/static/images/28.jpg", "/static/images/29.jpg", "/static/images/30.jpg", "/static/images/31.jpg", "/static/images/32.jpg", "/static/images/33.jpg", "/static/images/34.jpg", "/static/images/35.jpg", "/static/images/36.jpg", "/static/images/37.jpg", "/static/images/38.jpg", "/static/images/39.jpg", "/static/images/40.jpg", "/static/images/41.jpg", "/static/images/42.jpg", "/static/images/43.jpg", "/static/images/44.jpg", "/static/images/45.jpg", "/static/images/46.jpg", "/static/images/47.jpg", "/static/images/48.jpg", "/static/images/49.jpg", "/static/images/50.jpg", "/static/images/51.jpg", "/static/images/52.jpg", "/static/images/53.jpg", "/static/images/54.jpg", "/static/images/55.jpg", "/static/images/56.jpg", "https://cdn.jsdelivr.net/gh/xaoxuu/cdn-wallpaper/abstract/41F215B9-261F-48B4-80B5-4E86E165259E.jpeg"];
if ('true' == 'true') {
function shuffle(arr){
/*From countercurrent-time*/
var n = arr.length;
while(n--) {
var index = Math.floor(Math.random() * n);
var temp = arr[index];
arr[index] = arr[n];
arr[n] = temp;
}
}
shuffle(imgs);
}
if ('.cover') {
$('.cover').backstretch(
imgs,
{
duration: "20000",
fade: "1500"
});
} else {
$.backstretch(
imgs,
{
duration: "20000",
fade: "1500"
});
}
});
</script>
<script src="/js/valine.js"></script>
<script>
var GUEST_INFO = ['nick', 'mail', 'link'];
var meta = 'nick,mail,link'.split(',').filter(function (item) {
return GUEST_INFO.indexOf(item) > -1
});
var REQUIRED_FIELDS = ['nick', 'mail', 'link'];
var requiredFields = 'nick,mail'.split(',').filter(function (item) {
return REQUIRED_FIELDS.indexOf(item) > -1
});
function emoji(path, idx, ext) {
return path + "/" + path + "-" + idx + "." + ext;
}
var emojiMaps = {};
for (var i = 1; i <= 54; i++) {
emojiMaps['tieba-' + i] = emoji('tieba', i, 'png');
}
for (var i = 1; i <= 101; i++) {
emojiMaps['qq-' + i] = emoji('qq', i, 'gif');
}
for (var i = 1; i <= 116; i++) {
emojiMaps['aru-' + i] = emoji('aru', i, 'gif');
}
for (var i = 1; i <= 125; i++) {
emojiMaps['twemoji-' + i] = emoji('twemoji', i, 'png');
}
for (var i = 1; i <= 4; i++) {
emojiMaps['weibo-' + i] = emoji('weibo', i, 'png');
}
function pjax_valine() {
let pageUrl = $.trim($('#pjax-comment-path').text()) === "none" ?
decodeURI(window.location.pathname) : $.trim($('#pjax-comment-path').text());
let pagePlaceholder = $.trim($('#pjax-comment-placeholder').text()) === "none" ?
"快来评论吧~" : $.trim($('#pjax-comment-placeholder').text());
let ALLPATH = '';
if(ALLPATH != '') pageUrl = ALLPATH;
var valine = new Valine();
valine.init({
el: '#valine_container',
meta: meta,
placeholder: pagePlaceholder,
path: pageUrl,
appId: "or2NepulP8NGKXehq1IRSQTc-gzGzoHsz",
appKey: "lRlc11XLlqK4AeDJeNJxo17y",
pageSize: '10',
avatar: 'robohash',
lang: 'zh-cn',
visitor: 'true',
highlight: 'true',
mathJax: 'false',
enableQQ: 'true',
requiredFields: requiredFields,
emojiCDN: 'https://cdn.jsdelivr.net/gh/volantis-x/cdn-emoji/valine/',
emojiMaps: emojiMaps
})
}
$(function () {
pjax_valine();
});
</script>
<!-- darkmodejs -->
<!-- 复制 -->
<script src="/static/js-css/clipboard.min.js"></script>
<script>
var clipboard = new ClipboardJS('.btn-copy', {
target: function (trigger) {
return trigger.nextElementSibling
}
});
function wait(callback, seconds) {
var timelag = null;
timelag = window.setTimeout(callback, seconds)
}
function pjax_initCopyCode() {
var copyHtml = '';
copyHtml += '<button class="btn-copy" data-clipboard-snippet="">';
copyHtml += '<i class="fas fa-copy"></i><span>COPY</span>';
copyHtml += '</button>';
$(".highlight .code pre").before(copyHtml);
$(".article pre code").before(copyHtml);
clipboard.off('success').on('success', function (e) {
let $btn = $(e.trigger);
$btn.addClass('copied');
let $icon = $($btn.find('i'));
$icon.removeClass('fa-copy');
$icon.addClass('fa-check-circle');
let $span = $($btn.find('span'));
$span[0].innerText = 'COPIED';
wait(function () {
$icon.removeClass('fa-check-circle');
$icon.addClass('fa-copy');
$span[0].innerText = 'COPY'
}, 2000)
});
clipboard.off('error').on('error', function (e) {
e.clearSelection();
let $btn = $(e.trigger);
$btn.addClass('copy-failed');
let $icon = $($btn.find('i'));
$icon.removeClass('fa-copy');
$icon.addClass('fa-times-circle');
let $span = $($btn.find('span'));
$span[0].innerText = 'COPY FAILED';
wait(function () {
$icon.removeClass('fa-times-circle');
$icon.addClass('fa-copy');
$span[0].innerText = 'COPY'
}, 2000)
})
}
$(function () {
pjax_initCopyCode()
});
</script>
<!-- scrollreveal -->
<script src="/static/js-css/scrollreveal.min.js"></script>
<script type="text/javascript">
function pjax_scrollrebeal() {
ScrollReveal().reveal('.l_main .reveal', {
distance: '32px',
duration: '800',
interval: '20',
scale: '1',
easing: 'ease-out'
});
}
$(function () {
pjax_scrollrebeal();
});
</script>
<!-- ******************************** -->
<!-- fancybox -->
<script src="/static/js-css/jquery.fancybox.min.js"></script>
<script>
function pjax_fancybox() {
$(".article-entry").find("img").not('.inline').not('a img').each(function () { //渲染 fancybox
var element = document.createElement("a"); // a 标签
$(element).attr("class", "fancybox");
$(element).attr("pjax-fancybox", ""); // 过滤 pjax
$(element).attr("href", $(this).attr("src"));
if ($(this).attr("data-original")) {
$(element).attr("href", $(this).attr("data-original"));
}
$(element).attr("data-fancybox", "images");
var caption = ""; // 描述信息
if ($(this).attr('alt')) { // 判断当前页面是否存在描述信息
$(element).attr('data-caption', $(this).attr('alt'));
caption = $(this).attr('alt');
}
var div = document.createElement("div");
$(div).addClass("fancybox");
$(this).wrap(div); // 最外层套 div ,其实主要作用还是 class 样式
var span = document.createElement("span");
$(span).addClass("image-caption");
$(span).text(caption); // 加描述
$(this).after(span); // 再套一层描述
$(this).wrap(element); // 最后套 a 标签
})
$(".article-entry").find("img").fancybox({
selector: '[data-fancybox="images"]',
hash: false,
loop: false,
closeClick: true,
helpers: {
overlay: {closeClick: true}
},
buttons: [
"zoom",
"close"
]
});
};
$(function () {
pjax_fancybox();
});
</script>
<!-- ******************************** -->
<script src="/js/app.js"></script>
<script src="/js/search.js"></script>
<script defer src="/static/js-css/busuanzi.pure.mini.js" data-pjax></script>
<script src="/static/js-css/waves.min.js"></script>
<script type="text/javascript">
$(function () {
Waves.attach('.flat-btn', ['waves-button']);
Waves.attach('.float-btn', ['waves-button', 'waves-float']);
Waves.attach('.float-btn-light', ['waves-button', 'waves-float', 'waves-light']);
Waves.attach('.flat-box', ['waves-block']);
Waves.attach('.float-box', ['waves-block', 'waves-float']);
Waves.attach('.waves-image');
Waves.init();
});
</script>
<script src="/static/js-css/comment_typing.js"></script>
<script src="/static/js-css/pjax.min.js"></script>
<!-- 样式位于:source/css/_third-party/pjaxanimate.styl -->
<div class="pjax-animate">
<script src="/static/js-css/nprogress.min.js"></script>
<div id="loading-bar-wrapper"><script>NProgress.configure({parent:"#loading-bar-wrapper",trickleSpeed: 100})</script></div>
<script>
window.ShowLoading = function() {
NProgress.start();
};
window.HideLoading = function() {
NProgress.done();
}
</script>
</div>
<script>
var pjax;
document.addEventListener('DOMContentLoaded', function () {
pjax = new Pjax({
elements: 'a[href]:not([href^="#"]):not([href="javascript:void(0)"]):not([pjax-fancybox])',
selectors: [
"title",
"#pjax-container",
"#pjax-header-nav-list"
],
cacheBust: false, // url 地址追加时间戳,用以避免浏览器缓存
timeout: 5000
});
});
document.addEventListener('pjax:send', function (e) {
window.stop(); // 相当于点击了浏览器的停止按钮
try {
var currentUrl = window.location.pathname;
var targetUrl = e.triggerElement.href;
var banUrl = [""];
if (banUrl[0] != "") {
banUrl.forEach(item => {
if(currentUrl.indexOf(item) != -1 || targetUrl.indexOf(item) != -1) {
window.location.href = targetUrl;
}
});
}
} catch (error) {}
window.subData = null; // 移除标题(用于一二级导航栏切换处)
$.fancybox.close(); // 关闭弹窗
$('.l_header .switcher .s-search').removeClass('active'); // 关闭移动端激活的搜索框
$('.l_header').removeClass('z_search-open'); // 关闭移动端激活的搜索框
$('.wrapper').removeClass('sub'); // 跳转页面时关闭二级导航
// 解绑事件 避免重复监听
$('.s-top').unbind('click');
$('.menu a').unbind('click');
$(window).unbind('resize');
$(window).unbind('scroll');
$(document).unbind('scroll');
$(document).unbind('click');
$('body').unbind('click');
window.ShowLoading();
});
document.addEventListener('pjax:complete', function () {
// 关于百度统计对 SPA 页面的处理:
// 方案一:百度统计>管理>单页应用设置中,打开开启按钮即可对SPA进行统计。 https://tongji.baidu.com/web/help/article?id=324
// 方案二:取消注释下列代码。 https://tongji.baidu.com/web/help/article?id=235
//
// 关于谷歌统计对 SPA 页面的处理:
// 当应用以动态方式加载内容并更新地址栏中的网址时,也应该更新通过 gtag.js 存储的网页网址。
// https://developers.google.cn/analytics/devguides/collection/gtagjs/single-page-applications?hl=zh-cn
$('.nav-main').find('.list-v').not('.menu-phone').removeAttr("style",""); // 移除小尾巴的移除
$('.menu-phone.list-v').removeAttr("style",""); // 移除小尾巴的移除
$('script[data-pjax], .pjax-reload script').each(function () {
$(this).parent().append($(this).remove());
});
try{
pjax_fancybox();
if ('.cover') {
$('.cover').backstretch("resize");
} else {
$.backstretch("resize");
}
pjax_scrollrebeal();
pjax_initCopyCode();
pjax_valine();
} catch (e) {
console.log(e);
}
window.HideLoading();
});
document.addEventListener('pjax:error', function (e) {
window.HideLoading();
window.location.href = e.triggerElement.href;
});
</script>
</div>
</body>
</html>