-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
179 lines (146 loc) · 4.88 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Controlador RRFalcon</title>
<script src="https://use.fontawesome.com/1bce88a324.js"></script>
<script src="/client.js"></script>
<style>
body {
background-color: rgb(236, 236, 236);
font-family: sans-serif;
}
.box-shadow-container {
-webkit-box-shadow: 0px 0px 15px 1px rgba(0,0,0,0.75);
-moz-box-shadow: 0px 0px 15px 1px rgba(0,0,0,0.75);
box-shadow: 0px 0px 15px 1px rgba(0,0,0,0.75);
padding: 10px;
border-radius: 5px;
background-color: white;
}
/* .image-feed {
-webkit-box-shadow: 0px 0px 15px 1px rgba(0,0,0,0.75);
-moz-box-shadow: 0px 0px 15px 1px rgba(0,0,0,0.75);
box-shadow: 0px 0px 15px 1px rgba(0,0,0,0.75);
padding: 10px;
border-radius: 5px;
background-color: white;
} */
.title-container {
-webkit-box-shadow: 0px 0px 15px 1px rgba(0,0,0,0.75);
-moz-box-shadow: 0px 0px 15px 1px rgba(0,0,0,0.75);
box-shadow: 0px 0px 15px 1px rgba(0,0,0,0.75);
padding: 10px;
border-radius: 50px;
background-color: white;
font-size: 32px;
}
.column-centered {
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
}
.data-container {
display: flex;
flex-direction: column;
justify-content: center;
}
.command-container {
display: flex;
flex-direction: column;
justify-content: center;
width: 100%;
}
.arrow-icon-container {
margin: 5px;
padding: 10px;
border-radius: 50%;
width: fit-content;
height: fit-content;
}
.arrow-selected {
background-color: rgb(105, 105, 105);
}
</style>
</head>
<body>
<span style="
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
padding: 1%;">
<span class="title-container">
Controlador RRFalcon
</span>
<span style="display: flex; flex-direction: row; justify-content: space-around; width: 100%;">
<span class="box-shadow-container">
<span class="column-centered">
<h2>Feed da camera</h2>
<img id="video-feed" src="http://192.168.43.199:8000/stream.mjpg" style="width: 600px; height: 100%;">
</span>
</span>
<span class="column-centered">
<span class="box-shadow-container data-container">
<h2>Dados</h2>
<span>
Gas:<span id="datagas"></span>
</span>
<span id="datadht"></span>
</span>
<span class="box-shadow-container command-container">
<span>
<h2>Comandos</h2>
</span>
<span style="width: 100%; display: flex; flex-direction: row; justify-content: space-around;">
<span class="speed-container">
<strong>Velocidade:</strong><span id="speed-field">0</span>
</span>
<span style="width: 100%; display: flex; flex-direction: row; justify-content: center; align-items: flex-end;">
<span class="box-shadow-container arrow-icon-container" id="arrow-left">
<img src="/icons/left-arrow.png" style="width: 40px; height: 40px;">
</span>
<span style="display: flex; flex-direction: column;">
<span class="box-shadow-container arrow-icon-container" id="arrow-up">
<img src="/icons/left-arrow.png" style="width: 40px; height: 40px; transform: rotate(90deg);">
</span>
<span class="box-shadow-container arrow-icon-container" id="arrow-down">
<img src="/icons/left-arrow.png" style="width: 40px; height: 40px; transform: rotate(-90deg);">
</span>
</span>
<span class="box-shadow-container arrow-icon-container" id="arrow-right">
<img src="/icons/left-arrow.png" style="width: 40px; height: 40px; transform: rotate(180deg);">
</span>
</span>
</span>
</span>
</span>
</span>
<span style="
width: 100%;
display: flex;
flex-direction: row;
justify-content: center;
">
<span style="
display: flex;
flex-direction: row;
justify-content: center;
align-items: center">
<input id="input-endereco" type="text" placeholder="Endereço do rapberry">
<button id="botao-endereco" style="margin-left: 5px">Mudar endereço</button>
<h5 style="margin-left: 8px">Atual:</h5>
<h5 id="field-endereco" style="margin-left: 5px"></h5>
</span>
</span>
</span>
</body>
</html>