Anne-Charlotte commited on
Commit
3ec0c6b
·
verified ·
1 Parent(s): 66e2873

Update script.js

Browse files
Files changed (1) hide show
  1. script.js +80 -52
script.js CHANGED
@@ -1,58 +1,53 @@
1
  // Assembly Steps Data
2
- const YOUTUBE_VIDEO_ID = "_r0cHySFbeY";
3
 
4
  const stepsData = [
5
- { timestamp: "00:00:00", title: "Apply the foot pads." },
6
- { timestamp: "00:01:14", title: "Install the USB extension cable." },
7
- { timestamp: "00:02:55", title: "Mount the body PCB." },
8
- { timestamp: "00:04:30", title: "Connect the cables to the body PCB." },
9
- { timestamp: "00:05:05", title: "Insert the ball bearing." },
10
- { timestamp: "00:05:44", title: "Fit the body down assembly to the foot assembly." },
11
- { timestamp: "00:06:14", title: "Mount the base foot motor to the body turning unit." },
12
- { timestamp: "00:07:14", title: "Position the body turning assembly on the body down assembly." },
13
- { timestamp: "00:08:25", title: "Secure the body turning assembly to the body down assembly." },
14
- { timestamp: "00:10:15", title: "Screw the Stewart main plate in place." },
15
- { timestamp: "00:13:10", title: "Connect the base foot motor." },
16
- { timestamp: "00:14:13", title: "Screw the link rods onto the motor arms." },
17
- { timestamp: "00:18:05", title: "Connect Motors 1 and 2." },
18
- { timestamp: "00:18:44", title: "Connect Motors 2 and 3." },
19
- { timestamp: "00:19:31", title: "Connect Motors 4 and 5." },
20
- { timestamp: "00:20:19", title: "Connect Motors 5 and 6." },
21
- { timestamp: "00:20:53", title: "Insert all motors into the Stewart main plate." },
22
- { timestamp: "00:22:55", title: "Clip the motor cables into the body down assembly." },
23
- { timestamp: "00:24:46", title: "Screw the speaker into the tricap." },
24
- { timestamp: "00:25:39", title: "Position the tricap." },
25
- { timestamp: "00:27:01", title: "Connect Motors 3 and 4." },
26
- { timestamp: "00:27:44", title: "Route the cables." },
27
- { timestamp: "00:28:04", title: "Secure the tricap with screws." },
28
- { timestamp: "00:30:47", title: "Screw the bottom head onto the link rods." },
29
- { timestamp: "00:35:17", title: "Route the cables through the bottom head." },
30
- { timestamp: "00:35:49", title: "Route the cables through the head PCB." },
31
- { timestamp: "00:36:10", title: "Screw the head PCB in place." },
32
- { timestamp: "00:37:38", title: "Position the top shell." },
33
- { timestamp: "00:38:42", title: "Screw the top shell in place." },
34
- { timestamp: "00:41:08", title: "Place the lenses in the glasses holder." },
35
- { timestamp: "00:41:38", title: "Insert the fisheye lenses into the caps." },
36
- { timestamp: "00:42:14", title: "Snap the fisheye lenses into the glasses holder." },
37
- { timestamp: "00:43:07", title: "Position the Arducam camera." },
38
- { timestamp: "00:43:35", title: "Screw the Arducam camera in place." },
39
- { timestamp: "00:44:08", title: "Screw the glasses assembly onto the front head shell." },
40
- { timestamp: "00:45:51", title: "Plug in USB-C." },
41
- { timestamp: "00:46:06", title: "Attach the cases to the antenna motors." },
42
- { timestamp: "00:46:46", title: "Mount the motor assembly to the back head shell." },
43
- { timestamp: "00:50:11", title: "Connect the antenna motors." },
44
- { timestamp: "00:51:13", title: "Slide the back-head assembly onto the Reachy Mini body." },
45
- { timestamp: "00:51:45", title: "Screw the back head in place." },
46
- { timestamp: "00:53:35", title: "Attach the cable holder." },
47
- { timestamp: "00:54:29", title: "Connect the speaker and motor cables." },
48
- { timestamp: "00:55:22", title: "Connect the power and USB extension cables." },
49
- { timestamp: "00:55:48", title: "Connect the flexible printed cable to the top head PCB." },
50
- { timestamp: "00:56:23", title: "Slide the top-head assembly onto the back head." },
51
- { timestamp: "00:56:31", title: "Connect the flexible printed cable to the head PCB." },
52
- { timestamp: "00:57:18", title: "Plug the USB-C cable into the head PCB." },
53
- { timestamp: "00:58:09", title: "Attach the front head." },
54
- { timestamp: "00:59:20", title: "Assemble the antennas." },
55
- { timestamp: "01:00:00", title: "Attach the antennas to the head." }
56
  ];
57
 
58
  // Parse timestamp to seconds
@@ -87,6 +82,39 @@ const availableImages = {
87
  12: "assets/step12.jpg",
88
  13: "assets/step13.jpg",
89
  14: "assets/step14.jpg",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  };
91
 
92
  function getStepImage(stepId) {
 
1
  // Assembly Steps Data
2
+ const YOUTUBE_VIDEO_ID = "XGMdd38vHd0";
3
 
4
  const stepsData = [
5
+ { timestamp: "00:16", title: "Set all parts aside" },
6
+ { timestamp: "00:30", title: "Stick Foot Pads" },
7
+ { timestamp: "01:22", title: "Fix the USB Extension Cable and add the protective sleeve" },
8
+ { timestamp: "02:58", title: "Insert the Power Board" },
9
+ { timestamp: "03:17", title: "Fix the Power Board" },
10
+ { timestamp: "04:06", title: "Connect the cables to the Power Board" },
11
+ { timestamp: "05:26", title: "Position the Bottom Assembly" },
12
+ { timestamp: "07:20", title: "Fix the Foot Assembly to the Bottom Assembly" },
13
+ { timestamp: "08:15", title: "Connect the Foot Motor" },
14
+ { timestamp: "09:15", title: "Screw the link rods onto the motors' arms" },
15
+ { timestamp: "12:22", title: "Connect Motor 1 to 2" },
16
+ { timestamp: "13:11", title: "Connect Motor 2 to 3" },
17
+ { timestamp: "13:36", title: "Connect Motor 4 to 5" },
18
+ { timestamp: "13:55", title: "Connect Motor 5 to 6" },
19
+ { timestamp: "14:27", title: "Insert all motors into the Bottom Assembly" },
20
+ { timestamp: "15:54", title: "Clip the motors' cables into the Bottom Assembly" },
21
+ { timestamp: "19:00", title: "Position the Tricap" },
22
+ { timestamp: "19:20", title: "Route the cables" },
23
+ { timestamp: "19:51", title: "Connect Motor 3 to 4" },
24
+ { timestamp: "20:40", title: "Route the cables" },
25
+ { timestamp: "22:50", title: "Check rotation" },
26
+ { timestamp: "24:36", title: "Screw the Tricap" },
27
+ { timestamp: "26:05", title: "Screw the Bottom Head onto the link rods" },
28
+ { timestamp: "30:00", title: "Route the cables through the Bottom Head" },
29
+ { timestamp: "30:53", title: "Connect the flexible camera cable (step for reference only)" },
30
+ { timestamp: "31:02", title: "Route the cables through the Head PCB" },
31
+ { timestamp: "31:25", title: "Screw the Head PCB" },
32
+ { timestamp: "32:31", title: "Position the Top Shell" },
33
+ { timestamp: "33:02", title: "Screw the Top Shell" },
34
+ { timestamp: "34:29", title: "Place the lenses in the Glasses Holder" },
35
+ { timestamp: "34:39", title: "Insert the Fisheye Lenses into the caps" },
36
+ { timestamp: "35:00", title: "Snap the Fisheye Lenses" },
37
+ { timestamp: "35:47", title: "Screw the Glasses Assembly onto the Front Head Shell" },
38
+ { timestamp: "36:49", title: "Attach the cases to Antennas' motors" },
39
+ { timestamp: "37:07", title: "Fix Antennas' Assembly to Back Head Shell" },
40
+ { timestamp: "38:39", title: "Connect the Antennas' motors" },
41
+ { timestamp: "39:02", title: "Slide the Back Head Assembly onto the Reachy Mini body" },
42
+ { timestamp: "39:22", title: "Screw the Back Head" },
43
+ { timestamp: "40:07", title: "Fix the Cable Holder" },
44
+ { timestamp: "41:53", title: "Connect Speaker and Motors' Cables" },
45
+ { timestamp: "42:17", title: "Connect Power and USB Extension Cables" },
46
+ { timestamp: "42:33", title: "Slide the Top Head Assembly onto the Back Head" },
47
+ { timestamp: "42:49", title: "Connect the Flexible Printed Cable to the Head PCB" },
48
+ { timestamp: "42:58", title: "Connect the Flexible Camera Cable on the Front Head" },
49
+ { timestamp: "43:50", title: "Fix the Front Head" },
50
+ { timestamp: "45:03", title: "Fix the Antennas" },
 
 
 
 
 
51
  ];
52
 
53
  // Parse timestamp to seconds
 
82
  12: "assets/step12.jpg",
83
  13: "assets/step13.jpg",
84
  14: "assets/step14.jpg",
85
+ 15: "assets/step15.jpg",
86
+ 16: "assets/step16.jpg",
87
+ 17: "assets/step17.jpg",
88
+ 18: "assets/step18.jpg",
89
+ 19: "assets/step19.jpg",
90
+ 20: "assets/step20.jpg",
91
+ 21: "assets/step21.jpg",
92
+ 22: "assets/step22.jpg",
93
+ 23: "assets/step23.jpg",
94
+ 24: "assets/step24.jpg",
95
+ 25: "assets/step25.jpg",
96
+ 26: "assets/step26.jpg",
97
+ 27: "assets/step27.jpg",
98
+ 28: "assets/step28.jpg",
99
+ 29: "assets/step29.jpg",
100
+ 30: "assets/step30.jpg",
101
+ 31: "assets/step31.jpg",
102
+ 32: "assets/step32.jpg",
103
+ 33: "assets/step33.jpg",
104
+ 34: "assets/step34.jpg",
105
+ 35: "assets/step35.jpg",
106
+ 36: "assets/step36.jpg",
107
+ 37: "assets/step37.jpg",
108
+ 38: "assets/step38.jpg",
109
+ 39: "assets/step39.jpg",
110
+ 40: "assets/step40.jpg",
111
+ 41: "assets/step41.jpg",
112
+ 42: "assets/step42.jpg",
113
+ 43: "assets/step43.jpg",
114
+ 44: "assets/step44.jpg",
115
+ 45: "assets/step45.jpg",
116
+ 46: "assets/step46.jpg",
117
+ 47: "assets/step47.jpg",
118
  };
119
 
120
  function getStepImage(stepId) {