-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
131 lines (131 loc) · 4.3 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>静态文件服务器</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="./lib/bootstrap-3.3.5-dist/css/bootstrap.min.css">
<link rel="stylesheet" href="./index.css">
<link rel="shortcut icon" type="image/png" href="./icons/logo_16.png"/>
</head>
<body>
<header></header>
<div class="container-fluid">
<div class="row">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">选择目录</h3>
</div>
<div class="panel-body">
<div class="row"></div>
<input id="fileInput" type="file" nwdirectory style="display:none"/>
<button id="inputBtn" type="button" class="btn btn-default btn-lg">
<span class="glyphicon glyphicon-inbox" aria-hidden="true"></span>
</button>
<span id="filePath">点击左侧按钮选择目录</span>
</div>
</div>
</div>
<div class="row">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">服务配置(需重启应用)</h3>
</div>
<div class="panel-body">
<div class="row">
<div class="col-xs-6">
<div class="has-success">
<div class="checkbox">
<label>
<input type="checkbox" id="svcBack" value="option1" checked disabled>
后台启动
</label>
</div>
</div>
<div class="has-warning">
<div class="checkbox">
<label>
<input type="checkbox" id="svcAccess" value="option1" checked disabled>
局域网访问
</label>
</div>
</div>
<div class="has-error">
<div class="checkbox">
<label>
<input type="checkbox" id="autoIndex" value="option1" checked disabled>
自动显示"index.html"
</label>
</div>
</div>
</div>
<div class="col-xs-6">
<div class="has-success">
<div class="checkbox">
<label>
<input type="checkbox" id="gzipCompress" checked>
启用GZIP压缩
</label>
</div>
</div>
<!-- <div class="form-inline"> -->
<div class="form-group">
<label class="control-label" for="inputError1">缓存时间(0-不使用缓存)</label>
<div class="input-group">
<input type="text" class="form-control form-input" id="cacheTime" value="0">
<div class="input-group-addon">Min</div>
</div>
</div>
<!-- </div> -->
</div>
</div>
<div class="row">
<div class="form-group has-error col-xs-4">
<label class="control-label" for="svcPort">服务端口</label>
<input type="text" class="form-control form-input" id="svcPort" value="8086">
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="panel panel-default">
<div class="panel-heading">
<div class="row">
<div class="col-xs-4"><h3 class="panel-title">服务启停</h3></div>
<div class="col-xs-6 col-xs-offset-2">
<span>前往地址</span>
<span class="glyphicon glyphicon-hand-right" aria-hidden="true"></span>
<a id="gotoUrl" href="javascript:void(0);"></a>
</div>
</div>
</div>
<div class="panel-body">
<div class="row">
<div class="col-xs-4 col-xs-offset-3">
<button id="startBtn" type="button" class="btn btn-success btn-lg">
<span class="glyphicon glyphicon-play" aria-hidden="true"></span>
</button>
</div>
<div class="col-xs-4">
<button id="stopBtn" type="button" class="btn btn-danger btn-lg" disabled>
<span class="glyphicon glyphicon-stop" aria-hidden="true"></span>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<footer>
<span>Powered by 王鹏.</span>
<span>Contact:<a href="mailto:[email protected]">[email protected]</a></span>
<span></span>
</footer>
</div>
<script src="./lib/jquery-2.1.4.min.js"></script>
<script src="./lib/bootstrap-3.3.5-dist/js/bootstrap.min.js"></script>
<script src="index.js"></script>
</body>
</html>