()
| 3 | let hoursHand = document.querySelector(".hours-hand"); |
| 4 | |
| 5 | function getTime(){ |
| 6 | let now = new Date(); |
| 7 | let seconds = now.getSeconds() |
| 8 | let minutes = now.getMinutes() |
| 9 | let hours = now.getHours() |
| 10 | |
| 11 | let timeInterval = 6; |
| 12 | |
| 13 | secondsHand.style.transform = 'rotate(' + (seconds * timeInterval) + 'deg)'; |
| 14 | minutesHand.style.transform = 'rotate(' + (minutes* timeInterval + seconds/10) + 'deg)'; |
| 15 | hoursHand.style.transform = 'rotate(' + (hours*30 + minutes/2) + 'deg)'; |
| 16 | |
| 17 | } |
| 18 | setInterval(getTime, 100) |
| 19 |
nothing calls this directly
no outgoing calls
no test coverage detected