-
Notifications
You must be signed in to change notification settings - Fork 316
/
index.html
80 lines (69 loc) · 2.39 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
<!DOCTYPE html>
<html data-bs-theme="light" class="netnrmd-light">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="keywords" content="KMS,netnr,NET牛人" />
<meta name="description" content="KMS,netnr,NET牛人">
<link rel='shortcut icon' href='favicon.ico' type='image/x-icon' />
<title>KMS</title>
<style id="style0">
body::after {
position: fixed;
top: 2vh;
left: 1vw;
opacity: .8;
content: "loading";
}
</style>
<script>
if (document.cookie.includes(".theme=dark")) {
document.getElementById("style0").innerHTML += "body { color: #d4d4d4; background-color: #0d1117 }";
let domHtml = document.documentElement;
domHtml.dataset.bsTheme = "dark";
domHtml.className = domHtml.className.replace('light', 'dark');
}
</script>
</head>
<body>
<!--menu-->
<nav class="app-nav" style="display:none;">
<ul>
<li><a class="flag-theme" title="Theme"></a></li>
</ul>
</nav>
<!--main-->
<div id="app"></div>
<link rel="stylesheet" href="https://zme.ink/static/docsify-better/docsify-better.css?202411" />
<script>
window.$docsify = {
repo: "netnr",
noEmoji: true,
auto2top: true,
subMaxLevel: 3,
relativePath: true,
routerMode: "history",
markdown: {
renderer: {
code: function (str, lang) {
let htm = hljs.getLanguage(lang)
? hljs.highlight(str, { language: lang }).value
: hljs.highlightAuto(str).value;
return `<pre><code>${htm}</code></pre>`;
}
}
},
plugins: [
function (hook) {
// 每次开始解析 Markdown 内容时调用
hook.beforeEach(function (content) {
let domMain = document.getElementById("main");
domMain.classList.add("markdown-body");
return content;
});
}
]
}
</script>
<script src="https://zme.ink/static/docsify-better/docsify-better.js?202411"></script>
</body>
</html>