-
Notifications
You must be signed in to change notification settings - Fork 0
/
gesture_cleaner.html
175 lines (151 loc) · 7.09 KB
/
gesture_cleaner.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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
<meta name="description" content="Prometheus - Recognition and definition.">
<meta name="author" content="github.com/xfarmer">
<link rel="icon" href="prometheus.ico">
<title>Gesture cleaner - Prometheus</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet"/>
<link href="css/prometheus.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<script src="js/jquery/3.2.1/jquery.min.js"></script>
<script src="js/highstock.min.js"></script>
<script src="js/gesture_cleaner.js"></script>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
aria-expanded="false" aria-controls="navbar">
<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="#">Prometheus</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<form class="navbar-form navbar-right">
<div class="form-group">
<input type="text" placeholder="Email" class="form-control">
</div>
<div class="form-group">
<input type="password" placeholder="Password" class="form-control">
</div>
<button type="submit" class="btn btn-success">Sign in</button>
</form>
</div><!--/.navbar-collapse -->
</div>
</nav>
<div class="alert alert-success alert-dismissable fade" id="markingInfo">
<button type="button" class="close" data-dismiss="alert">×</button>
指定操作成功提示信息。
</div>
<div class="container" style="margin-top: 30px; margin-bottom: 30px">
<h4>选择文件 -> 开始标注</h4>
<input type="file" id="files" name="files[]" size="10" />
<script>
document.getElementById('files').addEventListener('change', handleFileSelection, false);
</script>
<br/>
<div class="panel panel-primary">
<div class="panel-heading">文件标注列表</div>
<div class="list-group" id="fileList">
<!--<button type="button" class="list-group-item list-group-item-action">Example</button>-->
</div>
</div>
<h5 id="markProgressTitle">标注进度:</h5>
<div class="progress" id="markProgress">
<div class="progress-bar progress-bar-success" role="progressbar"
aria-valuenow="60" aria-valuemin="0" aria-valuemax="100"
style="width: 0;">
0%
</div>
</div>
<div style="text-align: center; margin-top: 10px;" id="markPanel">
<h4>当前手势数据是否有效?</h4>
<button type="button" class="btn btn-success" onclick="gestureAccepted()">Accept</button>
<button style="margin-left: 20px" type="button" class="btn btn-danger" onclick="gestureRejected()">Reject</button>
</div>
<hr>
<div id="markingChart" style="height: 450px; min-width: 300px"></div>
<hr>
<button type="button" class="btn btn-success" onclick="generateResult()">生成标注结果</button>
<button type="button" class="btn btn-primary" onclick="exportData()">导出</button>
<button type="button" class="btn btn-info" onclick="copyData()">复制</button>
<br/>
<label for="labelResultsTxt"></label>
<textarea class="form-control" readonly="readonly" rows="10" id="labelResultsTxt"></textarea>
<hr>
<script type="text/javascript">
$(function () {
$('#markPanel').hide();
$('#markingChart').hide();
$('#markingInfo').hide();
});
</script>
</div> <!-- /container -->
<!-- Mark Modal -->
<div class="modal fade" id="markModal" tabindex="-1" role="dialog" aria-labelledby="markModalLabel" aria-hidden="true">
<div class="vertical-alignment-helper">
<div class="modal-dialog vertical-align-center">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">
<span aria-hidden="true">×</span><span class="sr-only">Close</span>
</button>
<h4 class="modal-title" id="markModalLabel">选择数据标记区间</h4>
</div>
<h5 id="instanceNumHint" style="margin-top: 15px; margin-left: 15px; margin-bottom: 0; font-weight: bold">
当前文件手势实例总数:100
</h5>
<div class="modal-body" style="padding-left: 5%; padding-right: 5%">
<div class="row">
<form class="form-horizontal" role="form">
<!--form-group 输入提示样式: has-success/has-warning/has-error -->
<div class="form-group">
<label class="col-sm-2 control-label" for="startPoint">标记起点</label>
<div class="col-sm-10">
<input class="form-control" id="startPoint" type="number" value="0">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="endPoint">标记终点</label>
<div class="col-sm-10">
<input class="form-control" id="endPoint" type="number" value="100">
</div>
</div>
</form>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal" id="markCancel"
onclick="onMarkIntervalCancel()">Cancel
</button>
<button type="button" class="btn btn-primary" data-dismiss="modal" id="markSubmit"
onclick="onMarkIntervalSubmit();">Submit
</button>
</div>
</div>
</div>
</div>
</div>
</body>
<!-- Footer -->
<footer class="footer navbar navbar-inverse navbar-fixed-bottom">
<div class="container">
<!-- Copyright -->
<div class="footer-copyright text-center" style="color: #ffffff; margin-top: 10px;">Copyright © 2018:
<a href="https://github.com/xfarmer"> xfarmer@github</a> All Rights Reserved.
</div>
<!-- Copyright -->
</div>
</footer>
<!-- Footer -->
<script src="js/bootstrap/3.3.7/bootstrap.min.js"></script>
</html>