-
Notifications
You must be signed in to change notification settings - Fork 18
/
index.html
85 lines (85 loc) · 2.99 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>IEEE.ICU</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="上海交通大学 IEEE 试点班,一个充满了「神仙」课程的专业,本网站旨在记录这些课程的信息以及历届学生对其的评价">
<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/lib/themes/vue.css">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.css">
</head>
<body>
<div id="app"></div>
<script>
window.$docsify = {
name: 'IEEE.ICU',
repo: 'sjtu-ieee/ieee.icu',
loadSidebar: true,
subMaxLevel: 2,
ga: 'UA-118116525-2',
search: {
maxAge: 3600000, // Expiration time, one hour
paths: 'auto',
// Localization
placeholder: {
'/zh-cn/': '搜索',
'/': 'Type to search'
},
// Localization
noData: {
'/zh-cn/': '找不到结果',
'/': 'No Results'
},
// Headline depth, 1 - 6
depth: 6,
hideOtherSidebarContent: true,
// To avoid search index collision
// between multiple websites under the same domain
namespace: 'ieee.icu',
},
plugins: [
// remove url parameters before loading Gitalk
// as Gitalk uses location.href as id
function(hook, vm) {
hook.beforeEach(function(html) {
var splited = location.href.split('?')
if (splited.length >= 2 && !splited[1].startsWith("code=")) {
location.href = location.href.split('?')[0]
}
});
}
],
}
</script>
<!-- Docsify -->
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
<!-- Google Analytics -->
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/ga.min.js"></script>
<!-- Search -->
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<!-- Gitalk -->
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/gitalk.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.min.js"></script>
<script>
const gitalk = new Gitalk({
clientID: '7609b4af633de422bc1f',
clientSecret: '513ef364f7331a03917e4330a7ff80b7998bad47',
repo: 'ieee.icu',
owner: 'sjtu-ieee',
admin: ['ieee-icu','keithnull','xxchan','ghost-no1337'],
// facebook-like distraction free mode
distractionFreeMode: false
})
</script>
<!-- Pangu -->
<script src="//cdn.jsdelivr.net/npm/[email protected]/dist/browser/pangu.min.js"></script>
<script>
pangu.spacingPage();
document.addEventListener('DOMContentLoaded', () => {
// listen to any DOM change and automatically perform spacing via MutationObserver()
pangu.autoSpacingPage();
});
</script>
</body>
</html>