forked from thelastoutpostworkshop/microcontroller_devkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
97 lines (90 loc) · 3.74 KB
/
index.html
File metadata and controls
97 lines (90 loc) · 3.74 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Responsive Image with Indicators</title>
<style>
body,
html {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh; /* Minimum height to fill the viewport */
background-color: #f0f0f0; /* For better visibility */
}
.image-container {
position: relative;
display: inline-block;
max-width: 100%; /* Ensure container doesn't overflow */
max-height: 100vh; /* Max height to fit in viewport */
overflow: hidden; /* Hide any overflow */
}
.image-container img {
max-width: 100%; /* Max width to fit in container */
max-height: 100vh; /* Max height to fit in viewport */
height: auto; /* Maintain aspect ratio */
display: block; /* Remove any default inline spacing */
}
.indicator {
position: absolute;
background-color: lightgreen;
width: 1vw;
height: 1vw;
border-radius: 50%;
padding: 5px;
padding: 5px;
transform: translate(-50%, -50%);
}
.centered-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #f9f5f5; /* Text color */
font-size: 1vw; /* Responsive font size */
text-align: center;
background-color: rgba(8, 145, 213, 0.9); /* Blue background with 90% opacity */
padding: 10px; /* Padding around the text */
border-radius: px; /* Rounded corners */
border: 5px solid darkblue; /* Red border */
font-weight: bold;
font-family: Arial, sans-serif; /* Arial font */
}
</style>
</head>
<body>
<div class="image-container">
<img src="devboards_images/ESP32_D1_R32.png" alt="Placeholder Image" />
<div class="centered-text">Sampling Interval is 100ms</div>
<div class="indicator" style="top: 45.7%; left: 5%"></div>
<div class="indicator" style="top: 56%; left: 14.5%"></div>
<div class="indicator" style="top: 59.4%; left: 14.5%"></div>
<div class="indicator" style="top: 63%; left: 14.5%"></div>
<div class="indicator" style="top: 76.7%; left: 5%"></div>
<div class="indicator" style="top: 80.2%; left: 5%"></div>
<div class="indicator" style="top: 83.6%; left: 5%"></div>
<div class="indicator" style="top: 87%; left: 5%"></div>
<div class="indicator" style="top: 90.4%; left: 5%"></div>
<div class="indicator" style="top: 94%; left: 5%"></div>
<div class="indicator" style="top: 32%; left: 97%"></div>
<div class="indicator" style="top: 35.4%; left: 97%"></div>
<div class="indicator" style="top: 45.7%; left: 97%"></div>
<div class="indicator" style="top: 49.2%; left: 97%"></div>
<div class="indicator" style="top: 52.5%; left: 97%"></div>
<div class="indicator" style="top: 56%; left: 97%"></div>
<div class="indicator" style="top: 59.5%; left: 97%"></div>
<div class="indicator" style="top: 63%; left: 97%"></div>
<div class="indicator" style="top: 69.8%; left: 97%"></div>
<div class="indicator" style="top: 73.3%; left: 97%"></div>
<div class="indicator" style="top: 76.7%; left: 97%"></div>
<div class="indicator" style="top: 80.2%; left: 97%"></div>
<div class="indicator" style="top: 83.7%; left: 97%"></div>
<div class="indicator" style="top: 87.2%; left: 97%"></div>
<div class="indicator" style="top: 90.5%; left: 97%"></div>
<div class="indicator" style="top: 93.7%; left: 97%"></div>
</div>
</body>
</html>