forked from iamseancheney/USTC-CS-Courses-Resource
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
86 lines (62 loc) · 2.03 KB
/
Copy pathconfig.py
File metadata and controls
86 lines (62 loc) · 2.03 KB
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
# coding: utf-8
import os.path
HOST = 'https://raw.githubusercontent.com/'
OWNER = 'mbinary' #'USTC-Courses' #'mbinary'#
REPO = 'USTC-CS-Courses-Resource'
BRANCH = 'master'
PATH = os.path.join(HOST,OWNER,REPO,BRANCH)
WALKDIR = '/mnt/c/Users/mbinary/gitrepo/USTC-Course'
TARDIR = '/mnt/d/blogfile/source/ustc-cs'
HTML = '''
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
<link href="https://mbinary0.github.io/resource/github.markdown.css" rel="stylesheet">
</head>
<body>
<div><h2>
<a href="../index.html"> <i class="fa fa-level-up"></i> </a>:
/{cur}
</h2>
</div>
<h2>Directories</h2>
<ul>
{dirLst}
</ul>
<h2>Files</h2>
<ul>
{fileLst}
</ul>
<div style="text-decration:underline;display:inline">
<a href="https://github.com/mbinary/USTC-CS-Courses-Resource.git" target="_blank" rel="external"><i class="fa fa-github"></i> Github</a>
<a href="mailto:zhuheqin@mail.ustc.edu.cn?subject=反馈与建议" style="float:right" target="_blank" rel="external"><i class="fa fa-envelope"></i> Feedback</a>
</div>
{readme}
</body>
</html>
'''
'''
<script>
var len=$("#box li").length;
function init(){
for(i=8;i<len;i++){
$("#box li").eq(i).addClass("hid");
}
}
$("#tog-dir").click(function(){
var t=$(this).attr("class");
if(t=="show"){
$("#box .hid").addClass("show");
}else{
$("#box .hid").removeClass("show");
}
});
init();//初始化隐藏多余标签
</script>
<style>
#box .hid{display:none;}
#box .show{display:block;}
</style>
'''