From bf3beed2d8d158ff4bc81eb3a8cea72e2effef28 Mon Sep 17 00:00:00 2001 From: Beau Smith Date: Wed, 14 Dec 2016 19:02:58 +0530 Subject: [PATCH 1/2] copy-pasta typo --- 02 - JS + CSS Clock/index-FINISHED.html | 2 +- 02 - JS + CSS Clock/index.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/02 - JS + CSS Clock/index-FINISHED.html b/02 - JS + CSS Clock/index-FINISHED.html index d4cb3b56a8..db653a5340 100644 --- a/02 - JS + CSS Clock/index-FINISHED.html +++ b/02 - JS + CSS Clock/index-FINISHED.html @@ -85,7 +85,7 @@ minsHand.style.transform = `rotate(${minsDegrees}deg)`; const hour = now.getHours(); - const hourDegrees = ((mins / 12) * 360) + 90; + const hourDegrees = ((hour / 12) * 360) + 90; hourHand.style.transform = `rotate(${hourDegrees}deg)`; } diff --git a/02 - JS + CSS Clock/index.html b/02 - JS + CSS Clock/index.html index 1c777557da..ae8908f3c9 100644 --- a/02 - JS + CSS Clock/index.html +++ b/02 - JS + CSS Clock/index.html @@ -84,8 +84,8 @@ const minsDegrees = ((mins / 60) * 360) + 90; minsHand.style.transform = `rotate(${minsDegrees}deg)`; - const hour = now.getMinutes(); - const hourDegrees = ((mins / 12) * 360) + 90; + const hour = now.getHours(); + const hourDegrees = ((hour / 12) * 360) + 90; hourHand.style.transform = `rotate(${hourDegrees}deg)`; } From 30e040061469ce2db113688f84bd9492ada87838 Mon Sep 17 00:00:00 2001 From: Beau Smith Date: Wed, 14 Dec 2016 20:43:52 +0530 Subject: [PATCH 2/2] Only START and FINISHED files are necessary. --- 02 - JS + CSS Clock/index.html | 96 ---------------------------------- 1 file changed, 96 deletions(-) delete mode 100644 02 - JS + CSS Clock/index.html diff --git a/02 - JS + CSS Clock/index.html b/02 - JS + CSS Clock/index.html deleted file mode 100644 index ae8908f3c9..0000000000 --- a/02 - JS + CSS Clock/index.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - JS + CSS Clock - - - - -
-
-
-
-
-
-
- - - - - - -