From 47aa6abd171a972072a3013d074c5ba57e594aa0 Mon Sep 17 00:00:00 2001 From: Tyler Lawson Date: Thu, 18 Feb 2021 21:29:18 -0500 Subject: [PATCH] 2 done --- 02 - JS and CSS Clock/index-START.html | 126 ++++++++++++++----------- 1 file changed, 71 insertions(+), 55 deletions(-) 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); + + -- knotmirror 0.0.1