Update index.html
Browse files- index.html +14 -12
index.html
CHANGED
@@ -22,23 +22,23 @@
|
|
22 |
|
23 |
h1 {
|
24 |
color: gold;
|
25 |
-
text-shadow: 2px 2px 4px rgba(255,215,0,0.5);
|
26 |
}
|
27 |
|
28 |
.main-container {
|
29 |
display: flex;
|
30 |
width: 100%;
|
31 |
-
max-width:
|
32 |
}
|
33 |
|
34 |
.episode-list {
|
35 |
width: 150px;
|
36 |
-
margin-right:
|
37 |
}
|
38 |
|
39 |
.episode-list label {
|
40 |
display: block;
|
41 |
-
margin-bottom:
|
42 |
color: #ddd;
|
43 |
}
|
44 |
|
@@ -53,8 +53,8 @@
|
|
53 |
}
|
54 |
|
55 |
#plotDiv {
|
56 |
-
width:
|
57 |
-
height:
|
58 |
}
|
59 |
|
60 |
video {
|
@@ -65,7 +65,7 @@
|
|
65 |
.controls {
|
66 |
display: flex;
|
67 |
justify-content: center;
|
68 |
-
margin-top:
|
69 |
}
|
70 |
|
71 |
button {
|
@@ -78,7 +78,8 @@
|
|
78 |
cursor: pointer;
|
79 |
}
|
80 |
|
81 |
-
.checkbox-container {
|
|
|
82 |
margin-bottom: 20px;
|
83 |
}
|
84 |
|
@@ -89,7 +90,7 @@
|
|
89 |
left: 50%;
|
90 |
transform: translate(-50%, -50%);
|
91 |
background-color: rgba(0, 0, 0, 0.7);
|
92 |
-
color:
|
93 |
padding: 20px;
|
94 |
border-radius: 5px;
|
95 |
z-index: 1000;
|
@@ -113,6 +114,7 @@
|
|
113 |
|
114 |
<div class="content-container">
|
115 |
<div class="checkbox-container">
|
|
|
116 |
<label>
|
117 |
<input type="radio" name="videoOption" value="fold_towels" checked> Fold towels
|
118 |
</label>
|
@@ -197,7 +199,7 @@
|
|
197 |
let frames;
|
198 |
function processData(results) {
|
199 |
console.log("Processing data:", results);
|
200 |
-
const motion_capture_data = results.data.filter((_, index) => index %
|
201 |
frames = motion_capture_data.map((row, index) => ({
|
202 |
name: index.toString(),
|
203 |
data: [{
|
@@ -206,7 +208,7 @@
|
|
206 |
z: getCoordinates(row, 'z'),
|
207 |
mode: 'markers',
|
208 |
type: 'scatter3d',
|
209 |
-
marker: { size:
|
210 |
}]
|
211 |
}));
|
212 |
if (frames.length === 0) {
|
@@ -289,4 +291,4 @@
|
|
289 |
</script>
|
290 |
</body>
|
291 |
|
292 |
-
</html>
|
|
|
22 |
|
23 |
h1 {
|
24 |
color: gold;
|
25 |
+
text-shadow: 2px 2px 4px rgba(255, 215, 0, 0.5);
|
26 |
}
|
27 |
|
28 |
.main-container {
|
29 |
display: flex;
|
30 |
width: 100%;
|
31 |
+
max-width: 1500px;
|
32 |
}
|
33 |
|
34 |
.episode-list {
|
35 |
width: 150px;
|
36 |
+
margin-right: 0px;
|
37 |
}
|
38 |
|
39 |
.episode-list label {
|
40 |
display: block;
|
41 |
+
margin-bottom: 10px;
|
42 |
color: #ddd;
|
43 |
}
|
44 |
|
|
|
53 |
}
|
54 |
|
55 |
#plotDiv {
|
56 |
+
width: 440px;
|
57 |
+
height: 600px;
|
58 |
}
|
59 |
|
60 |
video {
|
|
|
65 |
.controls {
|
66 |
display: flex;
|
67 |
justify-content: center;
|
68 |
+
margin-top: 2px;
|
69 |
}
|
70 |
|
71 |
button {
|
|
|
78 |
cursor: pointer;
|
79 |
}
|
80 |
|
81 |
+
.checkbox-container label {
|
82 |
+
display: block;
|
83 |
margin-bottom: 20px;
|
84 |
}
|
85 |
|
|
|
90 |
left: 50%;
|
91 |
transform: translate(-50%, -50%);
|
92 |
background-color: rgba(0, 0, 0, 0.7);
|
93 |
+
color: rgb(255, 255, 255);
|
94 |
padding: 20px;
|
95 |
border-radius: 5px;
|
96 |
z-index: 1000;
|
|
|
114 |
|
115 |
<div class="content-container">
|
116 |
<div class="checkbox-container">
|
117 |
+
<h3>Tasks</h3>
|
118 |
<label>
|
119 |
<input type="radio" name="videoOption" value="fold_towels" checked> Fold towels
|
120 |
</label>
|
|
|
199 |
let frames;
|
200 |
function processData(results) {
|
201 |
console.log("Processing data:", results);
|
202 |
+
const motion_capture_data = results.data.filter((_, index) => index % 3 === 0);
|
203 |
frames = motion_capture_data.map((row, index) => ({
|
204 |
name: index.toString(),
|
205 |
data: [{
|
|
|
208 |
z: getCoordinates(row, 'z'),
|
209 |
mode: 'markers',
|
210 |
type: 'scatter3d',
|
211 |
+
marker: { size: 4, color: 'blue' }
|
212 |
}]
|
213 |
}));
|
214 |
if (frames.length === 0) {
|
|
|
291 |
</script>
|
292 |
</body>
|
293 |
|
294 |
+
</html>
|