Skip to content

Commit 04d2b99

Browse files
committed
update readme
1 parent 7e7c397 commit 04d2b99

2 files changed

Lines changed: 10 additions & 15 deletions

File tree

‎exercises/03 - CSS Variables/index.html‎

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@
3838
margin-bottom: 50px;
3939
}
4040

41-
a {
42-
color: var(--base);
43-
text-decoration: none;
44-
}
45-
4641
input {
4742
width:100px;
4843
}
@@ -66,16 +61,16 @@ <h2>Update CSS Variables with <span class='hl'>JS</span></h2>
6661
<img src="https://source.unsplash.com/7bwQXzbF6KE/800x500">
6762

6863
<script>
69-
const inputs = document.querySelectorAll('.controls input');
64+
const inputs = document.querySelectorAll('.controls input');
7065

71-
function handleUpdate() {
72-
const suffix = this.dataset.sizing || '';
73-
document.documentElement.style.setProperty(`--${this.name}`, this.value + suffix)
74-
}
66+
function handleUpdate() {
67+
const suffix = this.dataset.sizing || '';
68+
document.documentElement.style.setProperty(`--${this.name}`, this.value + suffix)
69+
}
7570

76-
inputs.forEach(input => input.addEventListener('change', handleUpdate));
77-
inputs.forEach(input => input.addEventListener('mousemove', handleUpdate));
78-
</script>
71+
inputs.forEach(input => input.addEventListener('change', handleUpdate));
72+
inputs.forEach(input => input.addEventListener('mousemove', handleUpdate));
73+
</script>
7974

8075
</body>
8176

‎readme.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ The starter files include solutions to most challenges, so this isn't really mea
1919

2020
## Table Of Contents
2121

22-
1. [x] ~~[JavaScript Drum Kit](./exercises/01\ -\ JavaScript\ Drum\ Kit)~~
22+
1. [x] ~~[JavaScript Drum Kit](./exercises/01\ -\ JavaScript\ Drum\ Kit/)~~
2323
2. [x] ~~[JS + CSS Clock](./exercises/02\ -\ JS\ +\ CSS\ Clock/)~~
24-
3. [x] ~~[CSS Variables](./exercises/03\ -\ CSS\ Variables)~~
24+
3. [x] ~~[CSS Variables](./exercises/03\ -\ CSS\ Variables/)~~
2525
4. [ ] Array Cardio, Day 1
2626
5. [ ] Flex Panel Gallery
2727
6. [ ] Type Ahead

0 commit comments

Comments
 (0)