forked from hanxi/md-pages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
72 lines (63 loc) · 2.09 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="css/octicons.css">
<link rel="stylesheet" href="css/github-gist.min.css">
<link rel="stylesheet" href="css/style.css">
<title>blog</title>
<script src="js/marked.js"></script>
<script src="js/highlight.pack.js"></script>
<script src="js/config.js"></script>
<script src="js/util.js"></script>
<script src="js/app.js"></script>
</head>
<body>
<body>
<div id="home">
<div id="container">
<div id="blog_title"></div>
<button id="new_page" onclick="newPage();"><span class="octicon octicon-plus"></span>新建</button>
<div id="index">
<image id="wait" src="img/wait.gif" class="aligncenter"></image>
<ul id="post_list"></ul>
<div class="clearfix"></div>
</div>
</div>
</div>
<div id="page">
<div id="container">
<div id="header">
<div id="post-nav">
<a href="/">主页</a>
</div>
</div>
<div class="clearfix"></div>
<div id="title"></div>
<div id="content" class="markdown-body">
<image id="wait" src="img/wait.gif" class="aligncenter"></image>
</div>
<div id="comment">
</div>
</div>
</div>
<div id="footer"></div>
</body>
<script type="text/javascript">
var p = loadPageVar("p");
var filename = decodeURI(p);
filename = filename.replace(/\/$/,"");
var pagetitle = filename.replace(/^(\d+\.){7}/,"");
pagetitle = pagetitle.replace(/\.md$/,"");
if (filename && pagetitle) {
hideElement("home");
showElement("page");
gotoPage(filename, pagetitle);
} else {
hideElement("page");
showElement("home");
gotoHome();
}
</script>
</body>
</html>