Skip to content

Commit 590a28a

Browse files
committed
Format
1 parent 55a8ea8 commit 590a28a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

exercises/02 - JS + CSS Clock/README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ Given a web page with an analog clock created with CSS, write the
1111

1212
The HTML file has 3 `div` elements which correspond with the second, minute, and
1313
hour hand on a clock
14-
15-
```html
16-
<!-- ...previous elements -->
17-
<div class="hand hour-hand"></div>
18-
<div class="hand min-hand"></div>
19-
<div class="hand second-hand"></div>
20-
<!-- next elements... -->
21-
```
14+
15+
```html
16+
<!-- ...previous elements -->
17+
<div class="hand hour-hand"></div>
18+
<div class="hand min-hand"></div>
19+
<div class="hand second-hand"></div>
20+
<!-- next elements... -->
21+
```
2222

2323
The necessary JavaScript code shouldn't be too crazy;
2424
we'll create references to these elements and dynamically
@@ -62,7 +62,7 @@ The necessary JavaScript code shouldn't be too crazy;
6262

6363
- Divide the current numerical value of the clock hand by it's max possible value to get the rotation as
6464
a percentage, then multiply the result of that by 360 (each hand can rotate 360 degrees) to convert
65-
the value from a percentage to an integer, and increase that result by another 90 degrees to compensate
65+
the value from a percentage to an integer, and increase that result by another 90 degrees to compensate
6666
for the shift originally applied by the CSS styling on page load.
6767

6868
```javascript

0 commit comments

Comments
 (0)