File tree 1 file changed +9
-9
lines changed
exercises/02 - JS + CSS Clock
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,14 @@ Given a web page with an analog clock created with CSS, write the
11
11
12
12
The HTML file has 3 ` div ` elements which correspond with the second, minute, and
13
13
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
+ ```
22
22
23
23
The necessary JavaScript code shouldn't be too crazy;
24
24
we'll create references to these elements and dynamically
@@ -62,7 +62,7 @@ The necessary JavaScript code shouldn't be too crazy;
62
62
63
63
- Divide the current numerical value of the clock hand by it's max possible value to get the rotation as
64
64
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
66
66
for the shift originally applied by the CSS styling on page load.
67
67
68
68
```javascript
You can’t perform that action at this time.
0 commit comments