-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
96 lines (85 loc) · 3.07 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>KMS</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<meta name="keywords" content="kms,netnr,NET牛人" />
<meta name="description" content="kms,netnr,NET牛人" />
<style>
.sidebar ul li.active > a {
font-weight: 400 !important;
}
.sidebar ul li p.active > a {
border-right: 2px solid;
font-weight: 600;
color: #42b983;
}
</style>
</head>
<body>
<div id="app">Loading ...</div>
<script>
window.$docsify = {
repo: 'netnr',
noEmoji: true,
auto2top: true,
loadSidebar: false,
relativePath: true,
routerMode: location.hostname == "localhost" ? "hash" : "history",
markdown: {
renderer: {
code: function (str, lang) {
let ch = [];
ch.push("<pre><code>");
try {
str = hljs.getLanguage(lang)
? hljs.highlight(str, { language: lang }).value
: hljs.highlightAuto(str).value;
ch.push(str);
} catch (__) {
ch.push(str);
}
ch.push("</code></pre>");
return ch.join('');
}
}
}
};
</script>
<script>
const nd = {
sourceList: [
"https://npm.elemecdn.com/[email protected]/lib/themes/vue.css",
"https://npm.elemecdn.com/[email protected]/lib/docsify.min.js",
"https://npm.elemecdn.com/@highlightjs/[email protected]/styles/vs.min.css",
"https://npm.elemecdn.com/@highlightjs/[email protected]/highlight.min.js"
],
createNode: function (nn, html) {
let em = document.createElement(nn);
em.innerHTML = html;
return em;
},
init: function () {
let pas = [];
nd.sourceList.forEach(u => {
pas.push(fetch(u).then(x => x.text()));
});
Promise.all(pas).then(res => {
var head = document.getElementsByTagName("HEAD")[0];
for (let i = 0; i < res.length; i++) {
let suri = nd.sourceList[i];
let text = res[i];
if (text.includes("fonts.googleapis.com")) {
text = "*" + text.split(';*')[1];
}
head.appendChild(nd.createNode(suri.endsWith('.js') ? "SCRIPT" : "STYLE", text));
}
})
}
}
nd.init();
</script>
</body>
</html>