-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·501 lines (433 loc) · 15.9 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Tyhoo Wu</title>
<link rel="icon" href="https://www.codecademy.com/favicon.ico">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="referrer" content="no-referrer" />
<meta name="description" content="Description">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/themes/vue.css">
<!-- 支持 LaTex 语言 -->
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css" />
<link rel="stylesheet" href="https://wugenqiang.js.org/src/css/iconfont.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/custom.css">
<!-- alert -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/sweetalert.min.css" type='text/css' media='all' />
<!-- 友链 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/css/friends-link.css">
<!-- 自定义特色样式:by myself -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/css/me.css">
<style>
/*加重描述strong*/
.markdown-section strong {
color: rgb(239, 112, 96);
}
.app-nav{
position: fixed;
margin: 0;
/*padding: 10px 50px 10px 0;*/
padding: 10px 0 10px 0;/*上、右、下、左*/
width: calc(100% - 325px);
background-color: #fff;
height: 55px;
border-bottom: 1px solid #eee;
}
/*.github-corner{
position: absolute;
z-index: 999999;
top: 0;
}*/
.markdown-section code {
border-radius: 2px;
font-family: "Helvetica Neue",Helvetica,"Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;
font-size: 16px !important;
margin: 0 2px;
padding: 3px 5px;
white-space: nowrap;
/*border: 1px solid #282c34;*/
/*color: rgb(184, 101, 208);*/
}
.markdown-section > div > img, .markdown-section pre {
box-shadow: 2px 2px 20px 6px rgb(255, 255, 255) !important;
}
.markdown-section a:not(:hover) {
text-decoration: none;
}
/*侧边栏*/
.sidebar {
padding-top: 6px;
}
aside.sidebar ul li {
margin: 0;
position: relative;
}
aside.sidebar ul li ul {
margin: 6px 0;
}
aside.sidebar ul li p {
padding-left: 22px;
font-size: 18px;
font-weight: normal;
}
aside.sidebar ul li a {
line-height: 35px;
font-size: 14px;
padding: 3px 0 3px 22px;
}
aside.sidebar ul li.active > a {
font-size: 16px !important;
}
aside.sidebar ul li.active > a:before {
content: '' !important;
position: absolute !important;
margin: 0 !important;
width: 10px !important;
height: 10px !important;
top: 15px !important;
left: 0px !important;
border-radius: 50% !important;
background-color: #fed24a !important;
box-shadow: 0 0 0 3px rgba(254, 210, 74, 0.4) !important;
}
/*以上调侧边栏*/
/*h1 span{
display:inline-block;
background: rgb(66, 185, 131);
color:#ffffff;
padding: 10px 16px;
border-radius:5px;
box-shadow: 1px 1px 3px black;
}*/
#main h2 span{ color:#18b566 !important; }
#main h3 span{ color:#089acc !important; }
#main h4 span{ color:#FF9700 !important; }
/*代码块背景*/
p code{
background-color: rgb(255, 255, 255) !important;
}
.markdown-section p.tip,
.markdown-section tr:nth-child(1n) {
font-size: 16px !important;
}
.markdown-section h1 {
margin: 3rem 0 2rem 0;
}
.markdown-section h2 {
margin: 2rem 0 1rem;
}
img,
pre {
border-radius: 5px;
}
/*添加代码块复制按钮样式*/
.docsify-copy-code-button {
background: #00a1d6 !important;
color: #FFFFFF !important;
font-size: 13px !important;
}
::after{
color: #9da2fd !important;
font-size: 13px !important;
}
.markdown-section>p {
font-size: 16px !important;
}
/*代码块头部图标 start*/
.markdown-section pre:before {
content: '';
display: block;
background: url(https://gitee.com/wugenqiang/PictureBed/raw/master/images01/20200716201955.png);
height: 30px;
background-size: 40px;
background-repeat: no-repeat;
background-color: #1C1C1C;
background-position: 10px 10px;
}
/*代码块头部图标 end*/
.markdown-section pre>code {
color: #c0c3c1 !important;
font-family: 'Inconsolata', consolas,"PingFang SC", "Microsoft YaHei", monospace !important;
background-color: #212121 !important; //#accfff #282c34
font-size: 15px !important;
white-space: pre !important;
line-height: 1.5 !important;
-moz-tab-size: 4 !important;
-o-tab-size: 4 !important;
tab-size: 4 !important;
/*border-radius: .3em;*/
}
ol, ul, li{
line-height: 27px !important;
font-size: 16px !important;
}
@media (min-width:600px) {
.markdown-section pre>code {
font-size: 15px !important;
letter-spacing: 1.1px !important;
}
}
@media (max-width:600px) {
.markdown-section pre>code {
padding-top: 5px;
padding-bottom: 5px;
padding-left: 16px !important;
}
pre:after {
content: "" !important;
}
}
section.cover h1 {
margin: 0;
}
pre {
background-color: #212121 !important;
}
@media (min-width:600px) {
pre code {
/*box-shadow: 2px 1px 20px 2px #aaa;*/
/*border-radius: 10px !important;*/
padding-left: 20px !important;
}
}
@media (max-width:600px) {
pre {
padding-left: 3px !important;
padding-right: 3px !important;
margin-left: -20px !important;
margin-right: -20px !important;
box-shadow: 0px 0px 20px 0px #f7f7f7 !important;
}
/*代码块复制按钮默认隐藏*/
.docsify-copy-code-button {
display: none;
}
.advertisement{
display: none;
}
}
.markdown-section pre {
padding-left: 0 !important;
padding-right: 0px !important;
}
.markdown-section {
margin: 0 3.2% !important;
}
/*修改代码块代码颜色显示*/
.token.directive.keyword{
color: #4faee2 !important;
}
.token.keyword{
color: #c678dd !important;
}
.token.comment{
color: #737c8b !important;
}
.token.tag{
color: #a589ad !important;
}
.token.attr-name{
color: #de916c !important;
}
.token.attr-value{
color: #4faee2 !important;
}
.token.macro.property{
color: #4faee2 !important;
}
.token.function{
color: #e6b456 !important;
}
.token.string{
color: #98b755 !important;
}
.token.punctuation{
color: #c0c3c1 !important;
}
.token.number{
color:#c0c3c1 !important;
}
a.section-link{
font-size: .9rem !important;
}
.advertisement {
position: fixed;
right: 20px;
top: 100px;
width: 110px;
box-shadow: -1px 0 2px 0px #c5ebda;
padding: 10px;
z-index: 99;
background-color: #fff;
text-align: center;
}
.advertisement p,
h4 {
margin: 0;
padding: 0;
}
.advertisement .Tencent_code h4 {
font-size: 15px;
color: #25a46a;
margin-bottom: 10px;
}
/*滚动条样式 start*/
/* 滚动条宽度 */
/*::-webkit-scrollbar{width:5px;}*/
/* 滚动条颜色 */
/*::-webkit-scrollbar-thumb{*/
/* background: #33a9dc;*/
/* background-image: linear-gradient(#6ecd56, #33a9dc, #cb6196, #c16290);*/
/* border-radius: 2em;*/
/*}*/
</style>
</head>
<body>
<div id="app">代码改变世界</div>
<!-- <div class="aside_container">
<div class="advertisement">
<div class="Tencent_code">
<h4>微信公众号</h4>
<img src="https://img2020.cnblogs.com/blog/1546632/202109/1546632-20210923090812528-762106506.png" alt="Tyhoo Wu" />
</div>
</div>
</div> -->
<script>
window.$docsify = {
name: "<p>Tyhoo Wu</p>",
nameLink: 'https://cnwutianhao.github.io/blog/',
//repo: 'wugenqiang/NoteBook',
themeColor: '#007be8', // 主题颜色
//loadSidebar: true,//_sidebar.md如果为真,则从_sidebar.md文件加载边栏,否则从指定的路径加载
auto2top: true, //当路线改变时,滚动到屏幕的顶部
loadNavbar: true,//_navbar.md如果为真,则从_navbar.md文件加载navbar ,否则从指定的路径加载
mergeNavbar: true,//Navbar将在小屏幕上与侧边栏合并
executeScript: true,//执行页面上的脚本。只解析第一个脚本标记(演示)。如果存在Vue,则默认开
maxLevel: 6,//最大的内容表级别
//subMaxLevel: 6,//在自定义边栏中添加目录(TOC)
externalLinkTarget: '_blank', //外链打开方式:_blank表示在新标签页中打开
coverpage: true,
onlyCover: true,
topMargin: 60,//调整top
//executeScript: true,//执行页面上的脚本,仅解析第一个脚本标签
search: {
paths: 'auto',
placeholder: '🔍 搜索',
noData: '😒 找不到结果',
// Headline depth, 1 - 6
depth: 6,
maxAge: 86400000, // 过期时间,单位毫秒,默认一天
},//添加搜索框
// footer: {
// copy: '互联网是有记忆的,我想留下一些成长的脚印。 —— <a href="https://www.cnblogs.com/bytesfly/" target="_blank">Tyhoo Wu</a><br/><br/>',
// pre: '<hr/>',
// style: 'text-align: left;',
// },//添加页脚
markdown: {
renderer: {
code: function(code, lang, base=null) {
if (lang === "dot") {
return (
'<div class="viz">'+ Viz(code, "SVG")+'</div>'
);
}
var pdf_renderer = function(code, lang, verify) {
function unique_id_generator(){
function rand_gen(){
return Math.floor((Math.random()+1) * 65536).toString(16).substring(1);
}
return rand_gen() + rand_gen() + '-' + rand_gen() + '-' + rand_gen() + '-' + rand_gen() + '-' + rand_gen() + rand_gen() + rand_gen();
}
if(lang && !lang.localeCompare('pdf', 'en', {sensitivity: 'base'})){
if(verify){
return true;
}else{
var divId = "markdown_code_pdf_container_" + unique_id_generator().toString();
var container_list = new Array();
if(localStorage.getItem('pdf_container_list')){
container_list = JSON.parse(localStorage.getItem('pdf_container_list'));
}
container_list.push({"pdf_location": code, "div_id": divId});
localStorage.setItem('pdf_container_list', JSON.stringify(container_list));
return (
'<div style="margin-top:'+ PDF_MARGIN_TOP +'; margin-bottom:'+ PDF_MARGIN_BOTTOM +';" id="'+ divId +'">'
+ '<a href="'+ code + '"> Link </a> to ' + code +
'</div>'
);
}
}
return false;
}
if(pdf_renderer(code, lang, true)){
return pdf_renderer(code, lang, false);
}
//return this.origin.code.apply(this, arguments);
return (base ? base : this.origin.code.apply(this, arguments));
}
}
},
}
</script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/search.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/zoom-image.min.js"></script>
<!-- 支持 DOT 语言 -->
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/viz.js"></script>
<!-- 支持 LaTex 语言 -->
<script src="//cdn.jsdelivr.net/npm/docsify-katex@latest/dist/docsify-katex.js"></script>
<!-- 添加 PDF 页面展示功能 -->
<!-- PDFObject.js is a required dependency of this plugin -->
<!--<script src="//cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js"></script>-->
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/pdfobject.min.js"></script>
<!-- This is the source code of the pdf embed plugin -->
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/docsify-pdf-embed.js"></script>
<!-- 复制代码-->
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/docsify-copy-code.min.js"></script>
<!-- 回到顶部功能 -->
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/jquery.js"></script>
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/jquery.goup.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$.goup({
trigger: 100,
bottomOffset: 52,
locationOffset: 25,
//title: 'TOP',
titleAsText: true
});
});
</script>
<!-- 代码块样式优化-->
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/prism-c.js"></script>
<!--<script src="//unpkg.com/prismjs/components/prism-cpp.js"></script>-->
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/prism-cpp.js"></script>
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/prism-css.js"></script>
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/prism-docker.js"></script>
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/prism-java.js"></script>
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/prism-javascript.js"></script>
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/prism-json.js"></script>
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/prism-latex.js"></script>
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/prism-sql.js"></script>
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/prism-markdown.js"></script>
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/prism-bash.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/prism-php.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/prism-scala.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/prism-nginx.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/prism-json.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/prism-markdown.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/prism-python.js"></script>
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/js/prism-yaml.js"></script>
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/StaticRepo/src/js/prism-go.js"></script>
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/StaticRepo/src/js/prism-matlab.js"></script>
<script src="https://cdn.jsdelivr.net/npm/docsify-tabs@1/dist/docsify-tabs.min.js"></script>
<!-- 添加页脚 -->
<script src="https://cdn.jsdelivr.net/gh/wugenqiang/NoteBook@master/plugin/docsify-footer-enh.min.js"></script>
<!-- 实现离线化 -->
<script>
if (typeof navigator.serviceWorker !== 'undefined') {
navigator.serviceWorker.register('pwa.js')
}
</script>
</body>
</html>