This repository has been archived by the owner on Mar 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
111 lines (90 loc) · 3.39 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no, shrink-to-fit=no">
<title>LeoRover</title>
<meta name="application-name" content="LeoRover UI">
<meta name="apple-mobile-web-app-title" content="LeoRover UI">
<meta name="theme-color" content="#000000">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- icons -->
<link rel="shortcut icon" href="./img/logo.jpg">
<link rel="apple-touch-icon-precomposed" href="./img/logo.jpg">
<link rel="manifest" href="./manifest.webmanifest">
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/font.css" />
<script src="./js/jquery.min.js"></script>
<script src="./js/bootstrap.min.js"></script>
<script src="./js/roslib.min.js"></script>
<script src="./js/leo.js"></script>
<script src="./js/fullscreen.js"></script>
</head>
<body class="bg-custom">
<nav class="navbar navbar-expand-md bg-bar">
<div class="container-fluid">
<div class="col-2 navbar-brand" href="#">
<img class="rounded" src="./img/logoLeo.png" alt="Logo" style="width: 70px; height: 40px;"/>
</div>
<div class="col-3" >
<div id="batteryID" class="center-fit" style="width: 70px; height: 40px; color: aliceblue; text-align: center;">Voltage: 0V</div>
</div>
<div class="col-2 text-center">
<button class="bg-dark btn-sm mx-auto" style="width: 45px; height: 45px;" type="button" onclick="fullScreen()">
<img class="rounded img-fluid" src="img/nav-bar-fullscreen.svg" alt="FullScreen" style="width: 25px; height: 25px;"/>
</button>
</div>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
<span class="navbar-toggler-icon"></span>
</button>
<div class="col-5 collapse navbar-collapse ml-auto" id="collapsibleNavbar">
<ul class="navbar-nav ml-auto">
<li class="nav-item ml-auto">
<button type="button" class="btn btn-warning btn-sm custom-btn mt-2 ml-3" onclick="systemReboot()">Reboot</button>
</li>
<!-- <li class="nav-item ml-auto">
<button type="button" class="btn btn-warning btn-sm custom-btn mt-2 ml-3" onclick="streamReboot()">Reboot stream</button>
</li> -->
<li class="nav-item ml-auto">
<button type="button" class="btn btn-danger btn-sm custom-btn mt-2 ml-3" onclick="turnOff()">Turn off</button>
</li>
</ul>
</div>
</div>
</nav>
<div class="container ml-3" style="color: #ffffff">
<div >
<label class="switch">
<input type="checkbox" id="relay-1" onclick="rel1Trig()">
<span class="slider"></span>
</label>
Relay 1
</div>
<div>
<label class="switch">
<input type="checkbox" id="relay-2" onclick="rel2Trig()">
<span class="slider"></span>
</label>
Relay 2
</div>
<div>
<label class="switch">
<input type="checkbox" id="relay-3" onclick="rel3Trig()">
<span class="slider"></span>
</label>
Relay 3
</div>
<div>
<label class="switch">
<input type="checkbox" id="relay-4" onclick="rel4Trig()">
<span class="slider"></span>
</label>
Relay 4
</div>
</div>
</body>
</html>