-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
418 lines (267 loc) · 13.9 KB
/
index.html
File metadata and controls
418 lines (267 loc) · 13.9 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- 渲染优化 -->
<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">
<!--icon-->
<link rel="shortcut icon" href="/favicon.ico">
<!-- meta -->
<title>Birkenwald</title>
<!-- OpenGraph -->
<meta property="og:type" content="website">
<meta property="og:title" content="Birkenwald">
<meta property="og:url" content="http://example.com/index.html">
<meta property="og:site_name" content="Birkenwald">
<meta property="og:locale" content="en_US">
<meta property="article:author" content="Birkenwald">
<meta name="twitter:card" content="summary_large_image">
<link rel="stylesheet" href="/css/style/main.css">
<link rel="stylesheet" href="/css/style/dark.css">
<script src="/js/darkmode.js"></script>
<!-- custom head -->
<link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<meta name="generator" content="Hexo 5.4.0"></head>
<body>
<div id="app">
<header class="header">
<div class="header__left">
<a href="/" class="button">
<span class="logo__text"><img src="https://ytuchuang.oss-cn-beijing.aliyuncs.com/Blog_la/birkenwald4.png" alt="Birkenwald" /></span>
</a>
</div>
<div class="header__right">
<div class="navbar__menus">
<a href="/" class="navbar-menu button">首页</a>
<a href="/tags/" class="navbar-menu button">标签</a>
<a href="/archives/" class="navbar-menu button">归档</a>
<a href="/friends/" class="navbar-menu button">友链</a>
<a href="/categories/" class="navbar-menu button">分类</a>
</div>
<a href="/search/" id="btn-search">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="24" height="24" fill="currentColor" stroke="currentColor" stroke-width="32"><path d="M192 448c0-141.152 114.848-256 256-256s256 114.848 256 256-114.848 256-256 256-256-114.848-256-256z m710.624 409.376l-206.88-206.88A318.784 318.784 0 0 0 768 448c0-176.736-143.264-320-320-320S128 271.264 128 448s143.264 320 320 320a318.784 318.784 0 0 0 202.496-72.256l206.88 206.88 45.248-45.248z"></path></svg>
</a>
<a href="javaScript:void(0);" id="btn-toggle-dark">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg>
</a>
<a href="#" class="button" id="b2t" aria-label="Back to Top" title="Back to Top">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="32" height="32">
<path d="M233.376 722.752L278.624 768 512 534.624 745.376 768l45.248-45.248L512 444.128zM192 352h640V288H192z" fill="currentColor"></path>
</svg>
</a>
<a class="dropdown-icon button" id="btn-dropdown" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width='24' height='24' fill="none" stroke="currentColor" stroke-width="0.7" stroke-linecap="round" stroke-linejoin="round"><path fill="currentColor" d="M3.314,4.8h13.372c0.41,0,0.743-0.333,0.743-0.743c0-0.41-0.333-0.743-0.743-0.743H3.314c-0.41,0-0.743,0.333-0.743,0.743C2.571,4.467,2.904,4.8,3.314,4.8z M16.686,15.2H3.314c-0.41,0-0.743,0.333-0.743,0.743s0.333,0.743,0.743,0.743h13.372c0.41,0,0.743-0.333,0.743-0.743S17.096,15.2,16.686,15.2z M16.686,9.257H3.314c-0.41,0-0.743,0.333-0.743,0.743s0.333,0.743,0.743,0.743h13.372c0.41,0,0.743-0.333,0.743-0.743S17.096,9.257,16.686,9.257z"></path></svg></a>
<div class="dropdown-menus" id="dropdown-menus">
<a href="/" class="dropdown-menu button">首页</a>
<a href="/tags/" class="dropdown-menu button">标签</a>
<a href="/archives/" class="dropdown-menu button">归档</a>
<a href="/friends/" class="dropdown-menu button">友链</a>
<a href="/categories/" class="dropdown-menu button">分类</a>
</div>
</div>
</header>
<div class="cover">
<div class="cover__logo">
<h1>白桦林网络空间安全实验室</h1>
</div>
</div>
<main class="main">
<div class="post-list">
<div class='post-entry content-card'>
<div class="post-entry__header"></div>
<div class="post-entry__content">
<h2 class="post-entry__title">
关于Birkenwald's Blog
</h2>
<p>
对于这个博客,我们希望未来将比赛的wp或者是一些好的想法发布在上面。
目前一些工作都还在准备当中,以后会越来越完善。
希望大家一起努力,让Birkenwald充...
</p>
</div>
<div class="post-entry__meta">
<a href="/archives/2021/07/" class="post-meta__date button">2021-07-12</a>
<span class="separate-dot"></span><a href="/categories/%E5%85%AC%E5%91%8A/" class="button">公告</a>
</div>
<div class="post-entry__tags"><a href="/tags/%E5%85%AC%E5%91%8A/" class="post-tags__link button"># 公告</a></div>
<a href="/2021/07/12/%E5%85%B3%E4%BA%8EBirkenwald-s-Blog/" class="post-entry__link">关于Birkenwald's Blog</a>
</div>
</div>
</main>
<footer class="footer">
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<span id="leancloud_container_site_uv" hidden>
<i class="fa fa-user"></i>
<span></span>
<span id="leancloud_value_site_uv"></span>
<span></span>
<span> </span>
</span>
<span id="leancloud_container_site_pv" hidden>
<i class="fa fa-eye"></i>
<span></span>
<span id="leancloud_value_site_pv"></span>
<span></span>
</span>
<p class="footer-copyright">
Copyright © 2021 <a href="/">Birkenwald</a>
</p>
</footer>
</div>
<script>
(function () {
function getRecord(Counter, target) {
return new Promise(function (resolve, reject) {
Counter('get', '/classes/Counter?where=' + encodeURIComponent(JSON.stringify({target})))
.then(response => response.json())
.then(({results}) => {
if (results && results.length > 0) {
var record = results[0];
resolve(record);
} else {
Counter('post', '/classes/Counter', {
target, time: 0
})
.then(response => response.json())
.then(record => {
resolve(record);
}).catch(error => {
console.error('Failed to create', error);
reject(error);
});
}
}).catch(error => {
console.error('LeanCloud Counter Error', error);
reject(error);
});
})
}
function buildIncrement(objectId) {
return {
"method": "PUT",
"path": `/1.1/classes/Counter/${ objectId }`,
"body": {
"time": {
'__op': 'Increment',
'amount': 1
}
}
}
}
function increment(Counter, incrArr) {
return new Promise(function (resolve, reject) {
Counter('post', '/batch', {
"requests": incrArr
}).then((res) => {
resolve(res);
}).catch(error => {
console.error('Failed to save visitor count', error);
reject(error);
});
});
}
function validUV() {
var key = 'LeanCloud_UV_Flag';
var flag = localStorage.getItem(key);
if (flag) {
if (new Date().getTime() - parseInt(flag) <= 86400000) {
return false;
}
}
localStorage.setItem(key, new Date().getTime().toString());
return true;
}
function addCount(Counter) {
var enableIncr = 'leancloud' === 'leancloud';
var getterArr = [];
var incrArr = [];
var pvCtn = document.querySelector('#leancloud_container_site_pv');
if (pvCtn || enableIncr) {
var pvGetter = getRecord(Counter, 'site-pv').then((record) => {
incrArr.push(buildIncrement(record.objectId))
var ele = document.querySelector('#leancloud_value_site_pv');
if (ele) {
ele.innerText = record.time + 1;
if (pvCtn) {
pvCtn.style.display = 'inline';
}
}
});
getterArr.push(pvGetter);
}
var uvCtn = document.querySelector('#leancloud_container_site_uv');
if (uvCtn || enableIncr) {
var uvGetter = getRecord(Counter, 'site-uv').then((record) => {
var vuv = validUV();
vuv && incrArr.push(buildIncrement(record.objectId))
var ele = document.querySelector('#leancloud_value_site_uv');
if (ele) {
ele.innerText = record.time + (vuv ? 1 : 0);
if (uvCtn) {
uvCtn.style.display = 'inline';
}
}
});
getterArr.push(uvGetter);
}
if ('false' === 'true') {
var viewCtn = document.querySelector('#leancloud_container_page_pv');
if (viewCtn || enableIncr) {
var target = decodeURI('/index.html');
var viewGetter = getRecord(Counter, target).then((record) => {
incrArr.push(buildIncrement(record.objectId))
if (viewCtn) {
var ele = document.querySelector('#leancloud_value_page_pv');
if (ele) {
ele.innerText = (record.time || 0) + 1;
viewCtn.style.display = 'inline';
}
}
});
getterArr.push(viewGetter);
}
}
if (enableIncr) {
Promise.all(getterArr).then(() => {
incrArr.length > 0 && increment(Counter, incrArr);
})
}
}
var app_id = 'tuCo2vsr88ol9af7Dns614ke-gzGzoHsz';
var app_key = 'FSG5E27rTfMKWFU7ttnFteYz';
var server_url = '';
function fetchData(api_server) {
var Counter = (method, url, data) => {
return fetch(`${ api_server }/1.1${ url }`, {
method,
headers: {
'X-LC-Id': app_id,
'X-LC-Key': app_key,
'Content-Type': 'application/json',
},
body: JSON.stringify(data)
});
};
addCount(Counter);
}
var api_server = app_id.slice(-9) !== '-MdYXbMMI' ? server_url : `https://${ app_id.slice(0, 8).toLowerCase() }.api.lncldglobal.com`;
if (api_server) {
fetchData(api_server);
} else {
fetch('https://app-router.leancloud.cn/2/route?appId=' + app_id)
.then(response => response.json())
.then(({api_server}) => {
fetchData('https://' + api_server);
});
}
})();
</script>
<script type="text/javascript" src="\js\FunnyTitle.js"></script>
<!-- 页面点击小红心 -->
<script type="text/javascript" src="/js/love.js"></script>
</body>
</html>