Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
copy-pasta typo
  • Loading branch information
beausmith committed Dec 14, 2016
commit bf3beed2d8d158ff4bc81eb3a8cea72e2effef28
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
4 changes: 2 additions & 2 deletions 02 - JS + CSS Clock/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
const minsDegrees = ((mins / 60) * 360) + 90;
minsHand.style.transform = `rotate(${minsDegrees}deg)`;

const hour = now.getMinutes();
const hourDegrees = ((mins / 12) * 360) + 90;
const hour = now.getHours();
const hourDegrees = ((hour / 12) * 360) + 90;
hourHand.style.transform = `rotate(${hourDegrees}deg)`;
}

Expand Down