-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathElektronica.html
60 lines (46 loc) · 1.68 KB
/
Elektronica.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
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
</head>
<body style="background-color: rgb(0,0,0);">
<img src="http://192.168.43.199:8081" /> <!--Enter the IP Address of your Raspberry Pi-->
<div style="float:right">
</div>
<center>
<h1><img src="https://lh3.googleusercontent.com/NTVwKYKqG38MEvOc8_QSNf0NPdrVVZld9baww8Q7TXDKhUYalNcxJJUSDb48kSCAV2Ab=s85" width="100" height="150">
<span style="color:#5C5C5C">Elektronica </span><span style="color:#139442"> 2K19</span></h1>
<h2 style="color: rgb(255, 104, 64);">Surveillance Robot</h2><br><br>
<a href="#" id="up" style="font-size:30px;text-decoration:none;"> 🢁🢁<br>Forward</a><br><br>
</center>
<a href="#" id="left" style="font-size:30px;text-decoration:none;"> 🢀🢀Left</a>
<a href="#" id="right" style="font-size:30px; text-decoration:none;"> Right 🢂🢂</a><br><br>
<center>
<a href="#" id="down" style="font-size:30px;text-decoration:none;"> Backward<br> 🢃🢃</a>
</center>
</div>
<script>
$( document ).ready(function(){
$("#down").on("mousedown", function() {
$.get('/down_side');
}).on('mouseup', function() {
$.get('/stop');
});
$("#up").on("mousedown", function() {
$.get('/up_side');
}).on('mouseup', function() {
$.get('/stop');
});
$("#left").on("mousedown", function() {
$.get('/left_side');
}).on('mouseup', function() {
$.get('/stop');
});
$("#right").on("mousedown", function() {
$.get('/right_side');
}).on('mouseup', function() {
$.get('/stop');
});
});
</script>
</body>
</html>