Skip to content

Commit 44862af

Browse files
committed
corrected error on hour
1 parent 4b64d1a commit 44862af

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

02 - JS + CSS Clock/index-START.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,13 @@
9090

9191
// HOUR
9292
var hour = date.getHours();
93-
var hourDegrees = ((hour / 24) * 360) + 90;
93+
var hourDegrees = ((hour / 12) * 360) + 90;
9494
hour_hand.style.transform = `rotate(${hourDegrees}deg)`;
9595

9696
}
9797

98-
99-
10098
window.setInterval(setDate, 1000);
10199

102-
103-
104100
</script>
105101
</body>
106102
</html>

0 commit comments

Comments
 (0)