File tree Expand file tree Collapse file tree
exercises/02 - JS + CSS Clock Expand file tree Collapse file tree 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
1111
1212The 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
2323The 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
You can’t perform that action at this time.
0 commit comments