-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathindex.html
More file actions
103 lines (93 loc) · 3.15 KB
/
index.html
File metadata and controls
103 lines (93 loc) · 3.15 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>AI Server</title>
<!-- 新 Bootstrap 核心 CSS 文件 -->
<link href="static/css/bootstrap.min.css" rel="stylesheet">
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="static/js/jquery.min.js"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="static/js/bootstrap.min.js"></script>
<script src="static/js/marked.min.js"></script>
<link rel="stylesheet" href="static/css/github-markdown.min.css">
<style>
.markdown-body {
box-sizing: border-box;
min-width: 200px;
max-width: 980px;
margin: 0 auto;
padding: 45px;
}
@media (max-width: 767px) {
.markdown-body {
padding: 15px;
}
}
</style>
<script>
$.ajax({
type: "GET",//请求方式
url: "static/markdown/index.md",//地址,就是json文件的请求路径
dataType: "text",//数据类型可以为 text xml json script jsonp
success: function (result) {//返回的参数就是 action里面所有的有get和set方法的参数
document.getElementById('content').innerHTML = marked(result);
}
});
</script>
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"><span
class="sr-only">Toggle navigation</span><span
class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button>
<a class="navbar-brand" href="/">Home</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
{% if cur_user != None%}
<li>
<a href="/system">System</a>
</li>
{% end %}
<li>
<a href="/permission">User Permission</a>
</li>
<li>
<a href="/cs280_permission">CS280 User Permission</a>
</li>
<li>
<a href="https://github.com/piaozhx/DockerMonitor/issues" target="_blank">Discuss</a>
</li>
<li>
<a href="http://10.19.124.11:8898" target="_blank">Doc</a>
</li>
<li>
<a href="/gpu">GPU Status</a>
</li>
<li>
<a href="/p40_gpu">P40 GPU Status</a>
</li>
<li>
<a href="/courses_gpu">Courses GPU Status</a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
{% if cur_user == None%}
<li>
<a href="/login">Login</a>
</li>
{% else %}
<li>
<a href="/user">{{ cur_user }}</a>
</li>
{% end %}
</ul>
</div>
</nav>
<article class="markdown-body">
<div id="content"></div>
</article>
</body>
</html>