-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
203 lines (202 loc) · 8.49 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Sim</title>
<script>
window.$ = window.jQuery = require("jquery");
</script>
<script src="js/popper.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" />
</head>
<body>
<div class="container-md">
<div class="row my-2">
<div class="col">
<form id="form" role="form" onsubmit="">
<div class="form-group">
<label for="directory-input">代码文件夹</label>
<div class="row">
<div class="col col-8">
<input
type="text"
id="directory-input"
class="form-control"
/>
</div>
<div class="col col-2">
<button
type="button"
onclick="chooseDirectory()"
class="btn btn-primary"
>
选择文件夹
</button>
</div>
<div class="col col-2">
<button
type="button"
onclick="resetConfig()"
class="btn btn-primary"
>
重置配置
</button>
</div>
</div>
</div>
<div class="form-group">
<label for="input-file-fliter">文件过滤器</label>
<textarea
id="input-file-fliter"
cols="30"
rows="2"
class="form-control"
></textarea>
</div>
<div class="form-group">
<button
type="button"
class="btn btn-primary"
onclick="processInputFileFilter()"
>
过滤
</button>
</div>
<div class="form-group">
<label for="file-list">文件列表</label>
<textarea
id="file-list"
cols="30"
rows="10"
class="form-control"
></textarea>
</div>
<div class="form-group">
<label for="language-select">语言</label>
<select id="language-select" class="form-control">
<option value="0">8086</option>
<option value="1">C</option>
<option value="2">C++</option>
<option value="3">Java</option>
<option value="4">lisp</option>
<option value="5">m2</option>
<option value="6">mira</option>
<option value="7">pasc</option>
<option value="8">Text</option>
</select>
</div>
<div class="form-group">
<label for="threshold">阈值</label>
<input
id="threshold"
type="number"
step="1"
min="1"
max="100"
class="form-control"
/>
</div>
<div class="form-group">
<button
type="button"
class="btn btn-primary"
onclick="processSIM()"
>
执行
</button>
</div>
<label for="sim-stdout">sim-stdout</label>
<pre
id="sim-stdout"
class="bg-light text-info"
style="max-height: 300px"
>
Null</pre
>
<label for="sim-stderr">sim-stderr</label>
<pre
id="sim-stderr"
class="bg-light text-info"
style="max-height: 100px"
>
Null</pre
>
<div class="form-group">
<label for="result-fliter">结果过滤器</label>
<textarea
id="result-fliter"
cols="30"
rows="5"
class="form-control"
></textarea>
</div>
<div class="form-group">
<button
type="button"
class="btn btn-primary"
onclick="processResultFilter()"
>
过滤
</button>
</div>
</form>
<!-- <div style="overflow-y: auto; max-height: 300px"> -->
<table
class="table table-striped table-hover"
id="result-table"
>
<thead>
<tr>
<th>文件 A</th>
<th>文件 B</th>
<th>相似度</th>
</tr>
</thead>
<tbody>
<tr class="text-center">
<th colspan="3">点击条目查看对比</th>
</tr>
</tbody>
</table>
<!-- </div> -->
</div>
</div>
</div>
<div
class="modal fade bd-example-modal-xl"
id="diffModal"
tabindex="-1"
role="dialog"
aria-labelledby="diffModalLabel"
aria-hidden="true"
>
<div class="modal-dialog modal-xl" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="diffModalLabel">Diff</h5>
<button
type="button"
class="close"
data-dismiss="modal"
aria-label="Close"
>
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div
id="container"
style="
height: 550px;
width: 100%;
border: 1px solid grey;
"
></div>
</div>
</div>
</div>
</div>
<script src="./js/index.js"></script>
</body>
</html>