-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
80 lines (78 loc) · 2.57 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 lang="zh-cn">
<head>
<meta charset="UTF-8" />
<title>Notes</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<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/gh/WindrunnerMax/EveryDay@095d135/static/vue.css"
/>
<meta name="referrer" content="no-referrer" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="//www.googletagmanager.com/gtag/js?id=G-57PHBXT1C5"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-57PHBXT1C5");
</script>
</head>
<body>
<div id="app">Please wait...</div>
<script>
// 服务器地址是本地地址则不使用 cdn,否则使用 jsdelivr cdn 加载 github 的内容
var basePath = "https://cdn.jsdelivr.net/gh/DayoWong0/Notes/";
var hostname = window.location.hostname;
if (
// 局域网地址
hostname === "localhost" ||
hostname === "127.0.0.1" ||
hostname.startsWith("192.168") ||
hostname.startsWith("10.") ||
hostname.startsWith("172.")
) {
basePath = "";
}
console.log("hostname is " + hostname);
window.$docsify = {
name: "Notes",
repo: "https://github.com/DayoWong0/Notes",
loadSidebar: true,
subMaxLevel: 2,
auto2top: true,
themeColor: "#4C98F7",
// subMaxLevel: 3,
search: {
paths: "auto",
placeholder: "Type to search",
noData: "No Results",
depth: 1,
},
basePath: basePath,
alias: {
"/.*/_sidebar.md": "/_sidebar.md",
},
plugins: [],
requestHeaders: {
// "cache-control": "no-cache",
},
};
</script>
<script src="//cdn.jsdelivr.net/gh/WindrunnerMax/EveryDay@095d135/static/docsify.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<script src="//cdn.jsdelivr.net/gh/WindrunnerMax/Example@b13f117/Docsify%20Plugin/dist/catalog.js"></script>
<script src="//cdn.jsdelivr.net/gh/WindrunnerMax/Example@8654dee/Docsify%20Plugin/dist/sidebar.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code"></script>
</body>
</html>