Visitar URL original
small mistake :) · Pull Request #31 · wesbos/JavaScript30 · GitHub
Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
small mistake :)
  • Loading branch information
Demid Borodin
Demid Borodin authored Dec 11, 2016
commit e51db64e7b68c5d69fb821e9ea5b097423d75727
2 changes: 1 addition & 1 deletion 02 - JS + CSS Clock/index-FINISHED.html
Original file line number Diff line number Diff line change
Expand Up @@ -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)`;
}

Expand Down