-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
129 lines (127 loc) · 3.18 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Shapes</title>
<style>
body {
background: #333;
margin: 0;
}
canvas {
image-rendering: pixelated;
/*outline: 1px solid rgba(100, 100, 100, 0.1);*/
margin-right: 0;
padding:0;
margin-top: 0;
margin-bottom: 0;
}
.c-container {
position: relative;
width: 120px;
height: 220px;
float: left;
/*outline: 1px solid aliceblue;*/
}
.c-container:first-of-type {
display: none;
}
.temp {
display: inline-block;
padding: 5px 0;
font-size: 200%;
}
.c-container > p {
position: absolute;
top: 0;
right: 0;
padding: 0;
margin: 0;
font-family: sans-serif;
font-size: 11px;
color: white;
pointer-events: none;
user-select: none;
}
.c-container:not(.READY) {
background: rgba(50, 0, 240, 0.7);
}
.c-container.FRONTAL_LOCK {
background: rgba(0, 200, 0, 0.5);
}
.c-container.STABLE_LOCK {
background: rgba(0, 200, 0, 0.8);
}
.c-container.MEASURED {
background: rgba(0, 200, 0, 0.1);
}
.c-container.MISSING_THERMAL_REF {
background: rgba(200, 200, 0, 0.1);
}
.c-container > canvas {
position: absolute;
top: 0;
left: 0;
}
#drop {
width: 100vw;
height: 100vh;
}
#instructions {
color: white;
font-family: sans-serif;
text-align: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.text-state {
color: white;
font-family: sans-serif;
user-select: none;
pointer-events: none;
font-size: 10px;
position: absolute;
top: 165px;
padding: 0 2px;
}
.on {
opacity: 1;
}
.off {
opacity: 0;
}
canvas.histogram {
top: 160px;
}
button.active {
opacity: 1;
}
button:not(.active) {
opacity: 0.5;
}
body {
position: absolute;
}
nav {
position: sticky;
top: 0;
z-index: 1000;
}
</style>
<script src="/index.js" type="module"></script>
</head>
<body>
<nav>
<button id="toggle-bg" class="active">background</button>
<button id="toggle-motion" class="active">motion</button>
<button id="toggle-threshold" class="active">threshold</button>
<button id="toggle-edges-2" class="active">motion + threshold</button>
<button id="toggle-analysis" class="active">analysis</button>
</nav>
<div id="drop">
<p id="instructions">Drop a CPTV file here</p>
</div>
</body>
</html>