-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGeneralRecorder.ejs
More file actions
29 lines (22 loc) · 993 Bytes
/
Copy pathGeneralRecorder.ejs
File metadata and controls
29 lines (22 loc) · 993 Bytes
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
<div id="GeneralRecorder" class="collapse" data-parent="#myGroup">
<h3> General Recorder </h3>
<iframe id="GeneralRecorder1" style="position:fixed;left :10px;top:120px;height: 360px;width: 620px;border:0"
src="GeneralRecorder.html"></iframe>
<iframe id="vtrcontrol1" style="position:fixed;left :700px;top:120px;height: 600px;width: 280px;border:0;"
src="frames/vtrcontrol1.html"></iframe>
</div>
<script src="/socket.io/socket.io.js"></script>
<script>
//for vtr status start
var socket = io();
socket.on('vtrstatus', function (data) {
$("#vtrcontrol1").contents().find("body").find("#vtrstatus").html(data.data1);
})
socket.on('getallcomports', function (data) {
$("#vtrcontrol1").contents().find("body").find("#cmbports").html('');
(data.data1).forEach(element => {
$("#vtrcontrol1").contents().find("body").find("#cmbports").append(new Option(element.path, element.path));
})
})
//for vtr status end
</script>