-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
255 lines (233 loc) · 14.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
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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"></meta>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>HFLab</title>
<link rel="stylesheet" href="./css/bootstrap.css">
<link href="./css/layout.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="./css/style.css?2">
<!-- <link rel="stylesheet" href="./css/popupstack.css" type="text/css" /> -->
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../excanvas.min.js"></script><![endif]-->
<script language="javascript" type="text/javascript" src="./js/jquery_cursor.js"></script>
<script language="javascript" type="text/javascript" src="./js/jquery_cursor.flot.js"></script>
<script language="javascript" type="text/javascript" src="./js/jquery.flot.navigate.js"></script>
<!-- <script language="javascript" type="text/javascript" src="./js/dataset2.js"></script> -->
<!-- <script language="javascript" type="text/javascript" src="./js/compressed_dataset.js"></script> -->
<!-- <script language="javascript" type="text/javascript" src="./js/jquery.flot.canvas.js"></script> -->
<!-- <script language="javascript" type="text/javascript" src="./js/jquery.flot.crosshair.js"></script> -->
<script language="javascript" type="text/javascript" src="./js/jquery.flot.symbol.js"></script>
<script language="javascript" type="text/javascript" src="./js/jquery.flot.cursors.js"></script>
<script language="javascript" type="text/javascript" src="./js/jquery-ui.min.js"></script>
<script language="javascript" type="text/javascript" src="./js/jquery.flot.offsety.js"></script>
<script language="javascript" type="text/javascript" src="./js/lookupColors.js"></script>
<!-- <script language="javascript" type="text/javascript" src="./js/jquery.flot.downsample.js"></script> -->
<script language="javascript" type="text/javascript" src="./js/zlib_and_gzip.min.js"></script>
<script language="javascript" type="text/javascript" src="./js/dataprocess.js"></script>
<script language="javascript" type="text/javascript" src="./js/websocket.js"></script>
<script language="javascript" type="text/javascript" src="./js/mso.js"></script>
</head>
<body>
<div class="full-content">
<div class="container-fluid">
<div class="navbar navbar-inverse" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">T</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">
<img class="back-btn" src="./img/navigation_arrow_left.png">
</a>
<img class="logo" width=110 src="./img/navigation_logo.png">
</div>by MANU
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="dropdown">
<a class="btn btn-default dropdown-toggle" type="button" id="menu0" data-toggle="dropdown">FILE<span class="caret"></span></a>
<ul class="dropdown-menu" role="menu" aria-labelledby="menu0" style="background: #cdcccc; min-width: 200px;">
<li><a id="open_file" href="#" data-toggle="modal" data-target="#areusure">OPEN</a></li>
<li><a id="saveascsv" href="#" data-toggle="modal" data-target="#areusure">SAVE DATA AS CSV</a></li>
<li><a id="savegraph" href="#">SAVE GRAPH AS PNG</a></li>
<!-- <li><a id="sys_info" href="#">SYS INFO</a></li>
<li style="display:none;"><a id="select_mode" href="#">SELECT MODE</a></li> -->
</ul>
</li>
<li class="dropdown">
<a class="btn btn-default dropdown-toggle" type="button" id="menu2" data-toggle="dropdown">VIEW<span class="caret"></span></a>
<ul class="dropdown-menu" role="menu" aria-labelledby="menu2" style="background: #cdcccc; min-width: 100px;">
<li><a id="show_point" href="#" data-toggle="modal" data-target="#areusure">POINT</a></li>
<li><a id="show_line" href="#" data-toggle="modal" data-target="#areusure">LINE</a></li>
<!-- <li><a id="sys_info" href="#">SYS INFO</a></li>
<li style="display:none;"><a id="select_mode" href="#">SELECT MODE</a></li> -->
</ul>
</li>
<li class="dropdown">
<a class="btn btn-default dropdown-toggle" type="button" id="menu1" data-toggle="dropdown">SETTINGS<span class="caret"></span></a>
<ul class="dropdown-menu" role="menu" aria-labelledby="menu1" style="background: #cdcccc; min-width: 0px;">
<li><a id="reset_to_default" href="#" data-toggle="modal" data-target="#areusure">DEFAULT</a></li>
<li><a id="sys_info" href="#">SYS INFO</a></li>
<!-- <li style="display:none;"><a id="select_mode" href="#">SELECT MODE</a></li> -->
</ul>
</li>
</ul>
</div>
</div>
</div>
<!-- Modal export-->
<div class="modal" id="export" tabindex="-1" role="dialog" aria-labelledby="export" aria-hidden="true">
<div class="modal-dialog">
<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">Export</h4>
</div>
<div class="modal-body">
Content
</div>
</div>
</div>
</div>
<!-- Modal settings-->
<div class="modal" id="settings" tabindex="-1" role="dialog" aria-labelledby="export" aria-hidden="true">
<div class="modal-dialog">
<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">Settings</h4>
</div>
<div class="modal-body">
Content settings
</div>
</div>
</div>
</div>
<div id="global_container" style="position: relative; width: 100%; height: 80%;">
<!-- main frame -->
<div id="main">
<div class="menu-content">
<div id="right_menu" class="row right-menu-cont">
<div class="col-xs-6 option-content">
<div class="right-menu-option">
<button type="button" class="btn menu-btn ch1 dbl" data-signal="ch1" data-toggle="button" aria-pressed="false" autocomplete="off" disabled>DIGITAL</button>
</div>
</div>
<div class="col-xs-6 option-content">
<div id="in1" class="right-menu-option edit-mode"><img src="img/gear.png"></div>
</div>
<div class="col-xs-12 option-content">
<div id="cursor" class="right-menu-option edit-mode">CURSOR</div>
</div>
<div class="col-xs-12 option-content">
<div id="cursor" class="right-menu-option">RESET ZOOM</div>
</div>
<div class="col-xs-6 option-content">
<div id="resetx" class="right-menu-option"><img src="./img/navigation_arrow_left.png" height="12" width="12"><img src="./img/navigation_arrow_right.png" height="12" width="12"></div>
</div>
<div class="col-xs-6 option-content">
<div id="resety" class="right-menu-option">
<img src="./img/navigation_arrow_top.png" height="12" width="12" style="position: absolute; top: 5px;">
<img src="./img/navigation_arrow_bot.png" height="12" width="12" style="position: absolute; top: 17px;">
</div>
</div>
</div>
<div id="in1_dialog" class="dialog row right-menu-cont">
<div class="col-xs-12 option-content">
<div class="ch1 right-menu-option close-dialog">
<img src="./img/navigation_arrow_left.png"> SIGNALS
</div>
</div>
<div class="col-xs-12 option-content">
<div class="right-menu-option">
<div class="btn-group btn-group-justified" data-toggle="buttons">
<label class="btn btn-less active">
<input type="radio" value="0" class="decoder-tab-btn" name="OSC_TRIG_SOURCE" data-attr="#lines_tab" autocomplete="off">LINES
</label>
</div>
</div>
</div>
<div id="lines_tab" class="decoder-tab"></div>
</div>
<!-- cursor dialog -->
<div id="cursor_dialog" class="dialog row right-menu-cont">
<div class="col-xs-12 option-content close-dialog">
<div class="right-menu-option">
<img src="./img/navigation_arrow_left.png"> Cursor
</div>
</div>
<div class="col-xs-6 option-content">
<div class="right-menu-option">
<button id="CURSOR_ADD" type="button" class="btn" data-toggle="button" aria-pressed="false" autocomplete="off">Add</button>
</div>
</div>
<div class="col-xs-6 option-content">
<div class="right-menu-option">
<button id="CURSOR_REMOVE" type="button" class="btn" data-toggle="button" aria-pressed="false" autocomplete="off">Remove</button>
</div>
</div>
<div id="cursor_remove" class="decoder-tab"></div>
</div>
</div>
<!-- buffer -->
<div id="buffer" class="buf-red-line-holder">
<div id="graphs-buffer">
<!-- <div id="buf-red-line" class="buf-red-line" draggable="true" style="width:100px;"></div> -->
</div>
</div>
<!-- graph -->
<div id="graphs_holder">
<!-- <div id="graphs" style="width:700px;height:400px;"></div> --> <!-- placeholder" -->
<!-- <div id="graphs" style="width:1400px;height:800px;padding-left:100px;"></div> -->
<div id="graphs"></div>
<!-- <canvas id="graph_grid"></canvas> -->
</div>
<!-- joystick -->
<div id="joystick">
<img id="jtk_fine" src="img/fine.png" />
<img id="jtk_btns" src="img/node_fine.png" usemap="#jtk_btns_map" />
<map name="jtk_btns_map">
<area id="jtk_left" shape="poly" coords="19,28,37,45,32,56,28,69,29,84,36,101,30,112,18,122,11,114,8,104,4,91,1,77,3,59,9,41,19,27" />
<area id="jtk_up" shape="poly" coords="27,17,42,7,61,3,78,3,89,4,102,7,116,13,124,20,105,37,87,29,64,29,56,33,46,37" />
<area id="jtk_right" shape="poly" coords="111,44,132,27,143,42,147,56,149,76,148,93,141,107,132,123,112,104,119,94,122,76,119,58" />
<area id="jtk_down" shape="poly" coords="46,112,27,130,38,141,51,145,72,148,92,148,106,142,126,132,104,111,90,118,79,120,71,121,62,119,57,117" />
</map>
</div>
<!-- <div id="choices">Show:</div> -->
<div id="info" class="clear">
<div id="info-meas" style="position: absolute; left: 100px;"></div>
<div class="pull-right">Time <span id="TIME_SCALE">-</span> / DIV
<!-- <br />
<img src="img/time-offset-info.png"> <span id="OSC_TIME_OFFSET">0 ns</span> -->
<br />
<span id="SAMPLE_RATE"></span> Samples/s
<br />
Signal info:<span id="SIGNAL_PART"></span>
<br />
Downsampled:<span id="DOWNSAMPLED"></span>
</div>
<div id='cursor-info' class="pull-left" style="position: absolute; left: 100px; display:none;">Cursor info
<br />
Cursor A : <span id="CURSOR_A"></span>
<br />
Cursor B : <span id="CURSOR_B"></span>
<br />
Delta : <span id="CURSOR_DELTA"></span>
</div>
<!-- <div id="triginfo" style="color: green; display:none;">TEXT</div> -->
</div>
</div>
</div>
</div>
</body>
<script>
$(function() {
$(".dropdown-menu").on('click', 'li a', function() {
$($(this).attr('parent')).text($(this).text());
$($(this).attr('parent')).val($(this).text());
});
});
</script>
</html>