-
Notifications
You must be signed in to change notification settings - Fork 0
/
vision_view.html
62 lines (59 loc) · 1.82 KB
/
vision_view.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FRC 2053 Vision View Page</title>
<style>
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #f0f0f0;
}
.image-grid {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
width: 100vw; /* Fill the entire width of the viewport */
height: 100vh; /* Fill the entire height of the viewport */
padding: 20px; /* Optional: Add padding to the grid */
box-sizing: border-box; /* Include padding in the width and height */
}
.image-item {
width: calc(50% - 10px); /* 50% width with gap between items */
height: calc(50vh - 10px); /* 50% height with gap between items */
overflow: hidden;
}
.image-item img {
width: 100%;
height: 100%;
object-fit: scale-down; /* Maintain aspect ratio while covering the container */
display: block;
}
</style>
</head>
<body>
<main>
<h1>Camera Streams</h1>
<div class="image-grid">
<div class="image-item">
<img src="http://localhost:1182/stream.mjpg" alt="FL CAM">
</div>
<div class="image-item">
<img src="http://localhost:1184/stream.mjpg" alt="FR CAM">
</div>
<div class="image-item">
<img src="http://localhost:1186/stream.mjpg" alt="BL CAM">
</div>
<div class="image-item">
<img src="http://localhost:1188/stream.mjpg" alt="BR CAM">
</div>
</div>
</main>
</body>
</html>