-
+
-
- .controls {
- margin-bottom: 50px;
- }
+
+ // Set the property with the given name (input name) with the value of the input
+ // document gets us to :root
+ // setProperty sets a property on :root
+ document.documentElement.style.setProperty(
+ `--${this.name}`,
+ this.value + suffix
+ );
+ }
-
+ // Loop through each element of the node list (input) and handle update
+ inputs.forEach((input) => input.addEventListener("change", handleUpdate));
+ // Listens for mouse movement instead of just when let go
+ inputs.forEach((input) =>
+ input.addEventListener("mousemove", handleUpdate)
+ );
+
+
diff --git a/04 - Array Cardio Day 1/index-START.html b/04 - Array Cardio Day 1/index-START.html
index d19181b6b4..a2a6cf86e3 100644
--- a/04 - Array Cardio Day 1/index-START.html
+++ b/04 - Array Cardio Day 1/index-START.html
@@ -1,59 +1,182 @@
-
-
- Array Cardio 💪
-
-
-