-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.html
262 lines (232 loc) · 26.7 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
<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><title>页面没有找到 | AOHUI BLOG.</title><meta name="keywords" content="Study"><meta name="author" content="Aohuiliu"><meta name="copyright" content="Aohuiliu"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="记录学习,记录生活。">
<meta property="og:type" content="website">
<meta property="og:title" content="AOHUI BLOG.">
<meta property="og:url" content="https://aohuiliu.fun/404.html">
<meta property="og:site_name" content="AOHUI BLOG.">
<meta property="og:description" content="记录学习,记录生活。">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://aohuiliu.fun/images/avatar.jpeg">
<meta property="article:author" content="Aohuiliu">
<meta property="article:tag" content="Study">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://aohuiliu.fun/images/avatar.jpeg"><link rel="shortcut icon" href="/images/favicon.png"><link rel="canonical" href="https://aohuiliu.fun/404"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//hm.baidu.com"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/font-awesome/6.0.0/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://npm.elemecdn.com/@fancyapps/ui/dist/fancybox.css" media="print" onload="this.media='all'"><script>var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?463c88479f0f5d7145606417732cfe21";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script><script>const GLOBAL_CONFIG = {
root: '/',
algolia: undefined,
localSearch: {"path":"/search.xml","preload":false,"languages":{"hits_empty":"找不到内容:${query}"}},
translate: undefined,
noticeOutdate: undefined,
highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":430},
copy: {
success: '复制成功',
error: '复制错误',
noSupport: '浏览器不支持'
},
relativeDate: {
homepage: true,
post: false
},
runtime: '',
date_suffix: {
just: '刚刚',
min: '分钟前',
hour: '小时前',
day: '天前',
month: '个月前'
},
copyright: undefined,
lightbox: 'fancybox',
Snackbar: undefined,
source: {
justifiedGallery: {
js: 'https://fastly.jsdelivr.net/npm/flickr-justified-gallery@2/dist/fjGallery.min.js',
css: 'https://fastly.jsdelivr.net/npm/flickr-justified-gallery@2/dist/fjGallery.min.css'
}
},
isPhotoFigcaption: true,
islazyload: true,
isAnchor: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
title: '页面没有找到',
isPost: false,
isHome: false,
isHighlightShrink: false,
isToc: false,
postUpdate: '3 月 07 日 11:30:55'
}</script><noscript><style type="text/css">
#nav {
opacity: 1
}
.justified-gallery img {
opacity: 1
}
#recent-posts time,
#post-meta time {
display: inline !important
}
</style></noscript><script>(win=>{
win.saveToLocal = {
set: function setWithExpiry(key, value, ttl) {
if (ttl === 0) return
const now = new Date()
const expiryDay = ttl * 86400000
const item = {
value: value,
expiry: now.getTime() + expiryDay,
}
localStorage.setItem(key, JSON.stringify(item))
},
get: function getWithExpiry(key) {
const itemStr = localStorage.getItem(key)
if (!itemStr) {
return undefined
}
const item = JSON.parse(itemStr)
const now = new Date()
if (now.getTime() > item.expiry) {
localStorage.removeItem(key)
return undefined
}
return item.value
}
}
win.getScript = url => new Promise((resolve, reject) => {
const script = document.createElement('script')
script.src = url
script.async = true
script.onerror = reject
script.onload = script.onreadystatechange = function() {
const loadState = this.readyState
if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
script.onload = script.onreadystatechange = null
resolve()
}
document.head.appendChild(script)
})
win.activateDarkMode = function () {
document.documentElement.setAttribute('data-theme', 'dark')
if (document.querySelector('meta[name="theme-color"]') !== null) {
document.querySelector('meta[name="theme-color"]').setAttribute('content', '#1c1c1e')
}
}
win.activateLightMode = function () {
document.documentElement.setAttribute('data-theme', 'light')
if (document.querySelector('meta[name="theme-color"]') !== null) {
document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
}
}
const t = saveToLocal.get('theme')
const isDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches
const isLightMode = window.matchMedia('(prefers-color-scheme: light)').matches
const isNotSpecified = window.matchMedia('(prefers-color-scheme: no-preference)').matches
const hasNoSupport = !isDarkMode && !isLightMode && !isNotSpecified
if (t === undefined) {
if (isLightMode) activateLightMode()
else if (isDarkMode) activateDarkMode()
else if (isNotSpecified || hasNoSupport) {
const now = new Date()
const hour = now.getHours()
const isNight = hour <= 6 || hour >= 18
isNight ? activateDarkMode() : activateLightMode()
}
window.matchMedia('(prefers-color-scheme: dark)').addListener(function (e) {
if (saveToLocal.get('theme') === undefined) {
e.matches ? activateDarkMode() : activateLightMode()
}
})
} else if (t === 'light') activateLightMode()
else activateDarkMode()
const asideStatus = saveToLocal.get('aside-status')
if (asideStatus !== undefined) {
if (asideStatus === 'hide') {
document.documentElement.classList.add('hide-aside')
} else {
document.documentElement.classList.remove('hide-aside')
}
}
const detectApple = () => {
if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
document.documentElement.classList.add('apple')
}
}
detectApple()
})(window)</script><link rel="stylesheet" href="https://fastly.jsdelivr.net/npm/[email protected]/css/jetbrains-mono.min.css"><link rel="apple-touch-icon" href="/images/avatar.jpeg"><meta name="apple-mobile-web-app-title" content="AOHUI BLOG."><link rel="bookmark" href="/images/avatar.jpeg"><link rel="apple-touch-icon-precomposed" sizes="180x180" href="/images/avatar.jpeg" ><!-- hexo injector head_end start --><link rel="stylesheet" href="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/Swiper/8.0.6/swiper-bundle.min.css" media="print" onload="this.media='all'"><!-- hexo injector head_end end --><meta name="generator" content="Hexo 6.2.0"></head><body><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="/images/avatar.jpeg" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">29</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">12</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">6</div></a></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><span> 首页</span></a></div><div class="menus_item"><a class="site-page group hide" href="javascript:void(0);"><span> 文章</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></li><li><a class="site-page child" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></li><li><a class="site-page child" href="/categories/"><i class="fa-fw fas fa-folder"></i><span> 分类</span></a></li><svg class="PopoverPointer" height="12.998751" viewBox="0 0 46.978001 12.998751" width="46.978001" xmlns="http://www.w3.org/2000/svg"><path d="m 45.748,12.9978 c 0.41,-5e-4 0.82,-10e-4 1.23,-10e-4 l -3.712,-10e-5 C 42.791,12.995 42.316,12.9919 41.841,12.9868 40.202,12.9688 38.368,12.9433 36.773,12.3418 35.05,11.6918 33.909,10.5552 32.761,9.2177 32.054,8.3939 30.762,6.7705 29.909,5.6987 29.766,5.5188 29.635,5.3545 29.522,5.2121 29.446,5.1172 29.362,5.0113 29.271,4.8973 28.587,4.0355 27.528,2.7027 26.917,2.0166 26.047,1.039 24.972,0 23.477,0 21.983,0 20.908,1.039 20.039,2.0156 19.44,2.6881 18.41,3.9836 17.724,4.8461 c -0.106,0.1333 -0.204,0.2563 -0.29,0.365 -0.1,0.1255 -0.213,0.2679 -0.337,0.423 -0.851,1.0702 -2.18,2.7424 -2.902,3.5826 -1.15,1.3375 -2.289,2.4741 -4.011,3.1241 -1.596,0.6 -3.431,0.627 -5.069,0.645 -0.489,0.0053 -0.979,0.0084 -1.469,0.0101 L 0,12.9958 c 0.403,0 0.805,5e-4 1.208,0.001 0.813,9e-4 1.625,0.0019 2.438,-9e-4 l 39.62,8e-4 c 0.827,0.003 1.655,0.0021 2.482,0.0011 z"></path></svg></ul></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><span> 链接</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/friends/"><i class="fa-fw fas fa-star"></i><span> 动态</span></a></li><li><a class="site-page child" href="/link/"><i class="fa-fw fas fa-face-laugh"></i><span> 友链</span></a></li><li><a class="site-page child" href="/essay/"><i class="fa-fw fas fa-bullhorn"></i><span> 哔哔</span></a></li><svg class="PopoverPointer" height="12.998751" viewBox="0 0 46.978001 12.998751" width="46.978001" xmlns="http://www.w3.org/2000/svg"><path d="m 45.748,12.9978 c 0.41,-5e-4 0.82,-10e-4 1.23,-10e-4 l -3.712,-10e-5 C 42.791,12.995 42.316,12.9919 41.841,12.9868 40.202,12.9688 38.368,12.9433 36.773,12.3418 35.05,11.6918 33.909,10.5552 32.761,9.2177 32.054,8.3939 30.762,6.7705 29.909,5.6987 29.766,5.5188 29.635,5.3545 29.522,5.2121 29.446,5.1172 29.362,5.0113 29.271,4.8973 28.587,4.0355 27.528,2.7027 26.917,2.0166 26.047,1.039 24.972,0 23.477,0 21.983,0 20.908,1.039 20.039,2.0156 19.44,2.6881 18.41,3.9836 17.724,4.8461 c -0.106,0.1333 -0.204,0.2563 -0.29,0.365 -0.1,0.1255 -0.213,0.2679 -0.337,0.423 -0.851,1.0702 -2.18,2.7424 -2.902,3.5826 -1.15,1.3375 -2.289,2.4741 -4.011,3.1241 -1.596,0.6 -3.431,0.627 -5.069,0.645 -0.489,0.0053 -0.979,0.0084 -1.469,0.0101 L 0,12.9958 c 0.403,0 0.805,5e-4 1.208,0.001 0.813,9e-4 1.625,0.0019 2.438,-9e-4 l 39.62,8e-4 c 0.827,0.003 1.655,0.0021 2.482,0.0011 z"></path></svg></ul></div><div class="menus_item"><a class="site-page" href="/about/"><span> 关于</span></a></div></div></div></div><div class="error404" id="body-wrap"><header class="not-top-img" id="page-header"><nav id="nav"><div id="nav-group"><div id="blog_name"><a id="site-name" href="/"><svg id="blog_name" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 99.87 19.74"><path d="M3.13.27H7.21l3.13,19.2h-3l-.55-3.81v.05H3.35L2.8,19.47H0ZM6.42,13.11,5.07,3.62H5L3.7,13.11Z"></path><path d="M11.51,14.92V4.83C11.51,1.75,13.13,0,16.09,0s4.58,1.75,4.58,4.83V14.92c0,3.07-1.62,4.82-4.58,4.82S11.51,18,11.51,14.92Zm6.15.19V4.63c0-1.37-.61-1.89-1.57-1.89s-1.56.52-1.56,1.89V15.11c0,1.37.6,1.89,1.56,1.89S17.66,16.48,17.66,15.11Z"></path><path d="M22.7.27h3V8.09H29V.27h3v19.2H29V10.83H25.72v8.64h-3Z"></path><path d="M34.1,14.92V.27h3V15.14c0,1.37.58,1.86,1.54,1.86s1.53-.49,1.53-1.86V.27H43.1V14.92c0,3.07-1.54,4.82-4.5,4.82S34.1,18,34.1,14.92Z"></path><path d="M45.23.27h3v19.2h-3Z"></path><path d="M54.88.27h4.56c3.12,0,4.47,1.46,4.47,4.42v.77c0,2-.61,3.2-1.95,3.75v.06c1.62.55,2.25,2,2.25,4v1.65c0,3-1.57,4.55-4.58,4.55H54.88Zm4.2,7.82c1.12,0,1.81-.49,1.81-2V5c0-1.37-.47-2-1.54-2H57.9V8.09Zm.55,8.64c1,0,1.56-.47,1.56-1.9V13.16c0-1.78-.57-2.33-1.95-2.33H57.9v5.9Z"></path><path d="M66,.27h3V16.73h5v2.74H66Z"></path><path d="M75.06,14.92V4.83C75.06,1.75,76.68,0,79.64,0s4.58,1.75,4.58,4.83V14.92c0,3.07-1.62,4.82-4.58,4.82S75.06,18,75.06,14.92Zm6.14.19V4.63c0-1.37-.6-1.89-1.56-1.89s-1.56.52-1.56,1.89V15.11c0,1.37.6,1.89,1.56,1.89S81.2,16.48,81.2,15.11Z"></path><path d="M86,14.92V4.83C86,1.75,87.56,0,90.52,0S95,1.75,95,4.83V6.47H92.17V4.63c0-1.37-.6-1.89-1.56-1.89S89,3.26,89,4.63V15.14c0,1.37.61,1.86,1.57,1.86s1.56-.49,1.56-1.86V11.38H90.66V8.64H95v6.28c0,3.07-1.53,4.82-4.5,4.82S86,18,86,14.92Z"></path><path d="M97,16.56h2.9v2.91H97Z"></path></svg></a></div><div id="page-name-mask"><span id="page_name"><a id="page-name-text"><span>error404.error_title</span></a></span></div><div id="menus"><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><span> 首页</span></a></div><div class="menus_item"><a class="site-page group hide" href="javascript:void(0);"><span> 文章</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></li><li><a class="site-page child" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></li><li><a class="site-page child" href="/categories/"><i class="fa-fw fas fa-folder"></i><span> 分类</span></a></li><svg class="PopoverPointer" height="12.998751" viewBox="0 0 46.978001 12.998751" width="46.978001" xmlns="http://www.w3.org/2000/svg"><path d="m 45.748,12.9978 c 0.41,-5e-4 0.82,-10e-4 1.23,-10e-4 l -3.712,-10e-5 C 42.791,12.995 42.316,12.9919 41.841,12.9868 40.202,12.9688 38.368,12.9433 36.773,12.3418 35.05,11.6918 33.909,10.5552 32.761,9.2177 32.054,8.3939 30.762,6.7705 29.909,5.6987 29.766,5.5188 29.635,5.3545 29.522,5.2121 29.446,5.1172 29.362,5.0113 29.271,4.8973 28.587,4.0355 27.528,2.7027 26.917,2.0166 26.047,1.039 24.972,0 23.477,0 21.983,0 20.908,1.039 20.039,2.0156 19.44,2.6881 18.41,3.9836 17.724,4.8461 c -0.106,0.1333 -0.204,0.2563 -0.29,0.365 -0.1,0.1255 -0.213,0.2679 -0.337,0.423 -0.851,1.0702 -2.18,2.7424 -2.902,3.5826 -1.15,1.3375 -2.289,2.4741 -4.011,3.1241 -1.596,0.6 -3.431,0.627 -5.069,0.645 -0.489,0.0053 -0.979,0.0084 -1.469,0.0101 L 0,12.9958 c 0.403,0 0.805,5e-4 1.208,0.001 0.813,9e-4 1.625,0.0019 2.438,-9e-4 l 39.62,8e-4 c 0.827,0.003 1.655,0.0021 2.482,0.0011 z"></path></svg></ul></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><span> 链接</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/friends/"><i class="fa-fw fas fa-star"></i><span> 动态</span></a></li><li><a class="site-page child" href="/link/"><i class="fa-fw fas fa-face-laugh"></i><span> 友链</span></a></li><li><a class="site-page child" href="/essay/"><i class="fa-fw fas fa-bullhorn"></i><span> 哔哔</span></a></li><svg class="PopoverPointer" height="12.998751" viewBox="0 0 46.978001 12.998751" width="46.978001" xmlns="http://www.w3.org/2000/svg"><path d="m 45.748,12.9978 c 0.41,-5e-4 0.82,-10e-4 1.23,-10e-4 l -3.712,-10e-5 C 42.791,12.995 42.316,12.9919 41.841,12.9868 40.202,12.9688 38.368,12.9433 36.773,12.3418 35.05,11.6918 33.909,10.5552 32.761,9.2177 32.054,8.3939 30.762,6.7705 29.909,5.6987 29.766,5.5188 29.635,5.3545 29.522,5.2121 29.446,5.1172 29.362,5.0113 29.271,4.8973 28.587,4.0355 27.528,2.7027 26.917,2.0166 26.047,1.039 24.972,0 23.477,0 21.983,0 20.908,1.039 20.039,2.0156 19.44,2.6881 18.41,3.9836 17.724,4.8461 c -0.106,0.1333 -0.204,0.2563 -0.29,0.365 -0.1,0.1255 -0.213,0.2679 -0.337,0.423 -0.851,1.0702 -2.18,2.7424 -2.902,3.5826 -1.15,1.3375 -2.289,2.4741 -4.011,3.1241 -1.596,0.6 -3.431,0.627 -5.069,0.645 -0.489,0.0053 -0.979,0.0084 -1.469,0.0101 L 0,12.9958 c 0.403,0 0.805,5e-4 1.208,0.001 0.813,9e-4 1.625,0.0019 2.438,-9e-4 l 39.62,8e-4 c 0.827,0.003 1.655,0.0021 2.482,0.0011 z"></path></svg></ul></div><div class="menus_item"><a class="site-page" href="/about/"><span> 关于</span></a></div></div></div><div id="nav-right"><div id="search-button"><a class="nav-rightbutton site-page social-icon search" title="搜索"><i class="fas fa-search fa-fw"></i></a></div><div id="up_top_button"><a class="nav-rightbutton site-page up_top" onclick="btf.scrollToDest(0, 500)" title="回到顶部"><i class="fas fa-arrow-up fa-fw"></i></a></div><div id="travellings_button"><a class="nav-rightbutton site-page" target="_blank" href="https://www.travellings.cn/go.html" rel="noopener nofollow noopener" title="随机前往一个开往项目网站"><i class="fas fa-subway fa-fw"></i></a></div><div id="toggle-menu"><a class="nav-rightbutton site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></div></nav></header><div id="error-wrap"><div class="error-content"><div class="error-img"><img src="https://s2.loli.net/2022/08/22/M23IJ5Wvag8d4XA.png" alt="Page not found"></div><div class="error-info"><h1 class="error_title">404</h1><div class="error_subtitle">没有这个页面哦</div></div></div></div></div><div id="local-search"><div class="search-dialog"><nav class="search-nav"><span class="search-dialog-title">搜索</span><span id="loading-status"></span><button class="search-close-button"><i class="fas fa-times"></i></button></nav><div class="is-center" id="loading-database"><i class="fas fa-spinner fa-pulse"></i><span> 数据库加载中</span></div><div class="search-wrap"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="输入关键字" type="text"/></div></div><hr/><div id="local-search-results"></div></div></div><div id="search-mask"></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="https://npm.elemecdn.com/@fancyapps/ui/dist/fancybox.umd.js"></script><script src="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/instant.page/5.1.0/instantpage.min.js" type="module"></script><script src="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/vanilla-lazyload/17.3.1/lazyload.iife.min.js"></script><script src="/js/search/local-search.js"></script><div class="js-pjax"></div><script async data-pjax src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/pace/1.2.4/pace.min.js"></script><script src="https://npm.elemecdn.com/pjax/pjax.min.js"></script><script>let pjaxSelectors = ["head > title","#config-diff","#body-wrap","#rightside-config-hide","#rightside-config-show",".js-pjax"]
var pjax = new Pjax({
elements: 'a:not([target="_blank"])',
selectors: pjaxSelectors,
cacheBust: false,
analytics: false,
scrollRestoration: false
})
document.addEventListener('pjax:send', function () {
// removeEventListener scroll
window.tocScrollFn && window.removeEventListener('scroll', window.tocScrollFn)
window.scrollCollect && window.removeEventListener('scroll', scrollCollect)
typeof preloader === 'object' && preloader.initLoading()
//- document.getElementById('rightside').style.cssText = "opacity: ''; transform: ''"
if (window.aplayers) {
for (let i = 0; i < window.aplayers.length; i++) {
if (!window.aplayers[i].options.fixed) {
window.aplayers[i].destroy()
}
}
}
typeof typed === 'object' && typed.destroy()
//reset readmode
const $bodyClassList = document.body.classList
$bodyClassList.contains('read-mode') && $bodyClassList.remove('read-mode')
})
document.addEventListener('pjax:complete', function () {
window.refreshFn()
document.querySelectorAll('script[data-pjax]').forEach(item => {
const newScript = document.createElement('script')
const content = item.text || item.textContent || item.innerHTML || ""
Array.from(item.attributes).forEach(attr => newScript.setAttribute(attr.name, attr.value))
newScript.appendChild(document.createTextNode(content))
item.parentNode.replaceChild(newScript, item)
})
GLOBAL_CONFIG.islazyload && window.lazyLoadInstance.update()
typeof chatBtnFn === 'function' && chatBtnFn()
typeof panguInit === 'function' && panguInit()
// google analytics
typeof gtag === 'function' && gtag('config', '', {'page_path': window.location.pathname});
// baidu analytics
typeof _hmt === 'object' && _hmt.push(['_trackPageview',window.location.pathname]);
typeof loadMeting === 'function' && document.getElementsByClassName('aplayer').length && loadMeting()
// prismjs
typeof Prism === 'object' && Prism.highlightAll()
typeof preloader === 'object' && preloader.endLoading()
})
document.addEventListener('pjax:error', (e) => {
if (e.request.status === 404) {
pjax.loadUrl('/404.html')
}
})</script></div><!-- hexo injector body_end start --><script data-pjax>
function butterfly_swiper_injector_config(){
var parent_div_git = document.getElementById('recent-posts');
var item_html = '<div class="recent-post-item" style="height: auto;width: 100%"><div class="blog-slider swiper-container-fade swiper-container-horizontal" id="swiper_container"><div class="blog-slider__wrp swiper-wrapper" style="transition-duration: 0ms;"><div class="blog-slider__item swiper-slide" style="width: 750px; opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><a class="blog-slider__img" onclick="pjax.loadUrl("posts/22544/");" href="javascript:void(0);" alt=""><img width="48" height="48" src="https://images.unsplash.com/photo-1475137979732-b349acb6b7e3?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=870&q=80" alt="" onerror="this.src=https://unpkg.zhimg.com/akilar-candyassets/image/loading.gif; this.onerror = null;"/></a><div class="blog-slider__content"><span class="blog-slider__code">2022-04-27</span><a class="blog-slider__title" onclick="pjax.loadUrl("posts/22544/");" href="javascript:void(0);" alt="">折腾博客的思考🤔</a><div class="blog-slider__text">折腾各种博客平台和主题,真的有用吗?</div><a class="blog-slider__button" onclick="pjax.loadUrl("posts/22544/");" href="javascript:void(0);" alt="">详情 </a></div></div><div class="blog-slider__item swiper-slide" style="width: 750px; opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><a class="blog-slider__img" onclick="pjax.loadUrl("posts/43603/");" href="javascript:void(0);" alt=""><img width="48" height="48" src="https://s2.loli.net/2022/06/14/eWu4ZaFdBR73K6N.png" alt="" onerror="this.src=https://unpkg.zhimg.com/akilar-candyassets/image/loading.gif; this.onerror = null;"/></a><div class="blog-slider__content"><span class="blog-slider__code">2022-04-30</span><a class="blog-slider__title" onclick="pjax.loadUrl("posts/43603/");" href="javascript:void(0);" alt="">Hexo deploy shell script</a><div class="blog-slider__text">再怎么看我也不知道怎么描述它的啦!</div><a class="blog-slider__button" onclick="pjax.loadUrl("posts/43603/");" href="javascript:void(0);" alt="">详情 </a></div></div><div class="blog-slider__item swiper-slide" style="width: 750px; opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><a class="blog-slider__img" onclick="pjax.loadUrl("posts/29090/");" href="javascript:void(0);" alt=""><img width="48" height="48" src="https://images.unsplash.com/photo-1623474237394-055b5c5b9095?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1053&q=80" alt="" onerror="this.src=https://unpkg.zhimg.com/akilar-candyassets/image/loading.gif; this.onerror = null;"/></a><div class="blog-slider__content"><span class="blog-slider__code">2022-05-31</span><a class="blog-slider__title" onclick="pjax.loadUrl("posts/29090/");" href="javascript:void(0);" alt="">【魔改】去除标签和分类页子页面的侧边栏</a><div class="blog-slider__text">去除 Butterfly 主题标签页和分类页子页面的侧边栏(aside)</div><a class="blog-slider__button" onclick="pjax.loadUrl("posts/29090/");" href="javascript:void(0);" alt="">详情 </a></div></div><div class="blog-slider__item swiper-slide" style="width: 750px; opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><a class="blog-slider__img" onclick="pjax.loadUrl("posts/34995/");" href="javascript:void(0);" alt=""><img width="48" height="48" src="https://s2.loli.net/2022/06/14/5KmJc84UNDiF7qd.png" alt="" onerror="this.src=https://unpkg.zhimg.com/akilar-candyassets/image/loading.gif; this.onerror = null;"/></a><div class="blog-slider__content"><span class="blog-slider__code">2022-05-05</span><a class="blog-slider__title" onclick="pjax.loadUrl("posts/34995/");" href="javascript:void(0);" alt="">Typora 自用主题修改 CSS</a><div class="blog-slider__text">主题是 Github 上的 Drake,默认就很好看,自己的做了一些修改。</div><a class="blog-slider__button" onclick="pjax.loadUrl("posts/34995/");" href="javascript:void(0);" alt="">详情 </a></div></div><div class="blog-slider__item swiper-slide" style="width: 750px; opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><a class="blog-slider__img" onclick="pjax.loadUrl("posts/27153/");" href="javascript:void(0);" alt=""><img width="48" height="48" src="https://s2.loli.net/2022/06/14/5wHfFZUlj6BTo2G.png" alt="" onerror="this.src=https://unpkg.zhimg.com/akilar-candyassets/image/loading.gif; this.onerror = null;"/></a><div class="blog-slider__content"><span class="blog-slider__code">2022-05-30</span><a class="blog-slider__title" onclick="pjax.loadUrl("posts/27153/");" href="javascript:void(0);" alt="">24 个 R 的高效操作</a><div class="blog-slider__text">R 中提升效率的小技巧</div><a class="blog-slider__button" onclick="pjax.loadUrl("posts/27153/");" href="javascript:void(0);" alt="">详情 </a></div></div></div><div class="blog-slider__pagination swiper-pagination-clickable swiper-pagination-bullets"></div></div></div>';
console.log('已挂载butterfly_swiper')
parent_div_git.insertAdjacentHTML("afterbegin",item_html)
}
var elist = 'undefined'.split(',');
var cpage = location.pathname;
var epage = 'all';
var flag = 0;
for (var i=0;i<elist.length;i++){
if (cpage.includes(elist[i])){
flag++;
}
}
if ((epage ==='all')&&(flag == 0)){
butterfly_swiper_injector_config();
}
else if (epage === cpage){
butterfly_swiper_injector_config();
}
</script><script defer src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/Swiper/8.0.6/swiper-bundle.min.js"></script><script defer data-pjax src="/js/swiper_init.js"></script><!-- hexo injector body_end end --></body></html>