From 0391e68c63e1466f8fbbe7a334d093f266be5a3f Mon Sep 17 00:00:00 2001 From: Sergiy Dybskiy Date: Tue, 13 Dec 2016 18:13:02 -0500 Subject: [PATCH 1/2] fix hour hand position --- 02 - JS + CSS Clock/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/02 - JS + CSS Clock/index.html b/02 - JS + CSS Clock/index.html index 1c777557da..52e6ed8a15 100644 --- a/02 - JS + CSS Clock/index.html +++ b/02 - JS + CSS Clock/index.html @@ -85,7 +85,7 @@ minsHand.style.transform = `rotate(${minsDegrees}deg)`; const hour = now.getMinutes(); - const hourDegrees = ((mins / 12) * 360) + 90; + const hourDegrees = ((hour / 12) * 360) + 90; hourHand.style.transform = `rotate(${hourDegrees}deg)`; } From 9ee39737dac127afd7c2fbf6b2d8c0b441a204f5 Mon Sep 17 00:00:00 2001 From: Sergiy Dybskiy Date: Tue, 13 Dec 2016 18:15:24 -0500 Subject: [PATCH 2/2] Update index-FINISHED.html --- 02 - JS + CSS Clock/index-FINISHED.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)`; }