-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
78 lines (63 loc) · 1.96 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="jquery.js"></script>
<script>
$(function() {
var server_url, mousein, mouseout, delta;
// Modify this to your needs
server_url = "http://192.168.0.68:8080/ptz/setPTZ.php?force="
$('.MOV').mousedown(function() {
mousein = (new Date()).getTime()
//alert('in');
});
$('.MOV').mouseup(function() {
mouseout = (new Date()).getTime()
delta = mouseout - mousein;
if (delta < 200)
force = 1;
else if (delta < 500)
force = 7;
else if (delta < 1000)
force = 31;
else if (delta < 1500)
force = 47;
else
force = 63;
id = $(this).attr('id');
$.get(server_url + force + "&mov="+id, function(data) {});
});
});
</script>
</head>
<body bgcolor="#008000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<table id="Table_01" width="96" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td colspan="1"><img src="cam_left_top.png" width="32" height="30" /></td>
<td colspan="1" class="MOV" id="up">
<img src="camup.png" width="52" height="30" />
</td>
<td colspan="1"><img src="cam_right_top.png" width="30" height="30" /></td>
</tr>
<tr>
<td colspan="1" class="MOV" id="left">
<img src="camleft.png" width="32" height="52" />
</td>
<td colspan="1"><img src="camcenter_up.png" width="52" height="26" class="MOV" id="in"/><br/>
<img src="camcenter_down.png" width="52" height="26" class="MOV" id="out"/></td>
<td colspan="1" class="MOV" id="right">
<img src="camright.png" width="30" height="52" />
</td>
</tr>
<tr>
<td colspan="1"><img src="cam_left_bottom.png" width="32" height="32" /></td>
<td colspan="1" class="MOV" id="down">
<img src="camdown.png" width="52" height="32" />
</td>
<td colspan="1"><img src="cam_right_bottom.png" width="30" height="32" /></td>
</tr>
</tbody>
</table>
</body>
</html>