diff --git a/02 - JS and CSS Clock/index-START.html b/02 - JS and CSS Clock/index-START.html index 7a6d27d..a3f2787 100644 --- a/02 - JS and CSS Clock/index-START.html +++ b/02 - JS and CSS Clock/index-START.html @@ -1,12 +1,10 @@ - - - JS + CSS Clock - - - - + + + JS + CSS Clock + +
@@ -15,60 +13,78 @@
+ - + - + const hour = now.getHours(); + const hourDeg = (hour / 12) * 360; + minHand.style.transform = `rotate(${hourDeg + 90}deg)`; + } + setInterval(setDate, 1000); + +