scrimba
The Weekly Web Dev Challenge
The Weekly Web Dev Challenge: Time Will Tell ๐Ÿ•ฐ
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

The Weekly Web Dev Challenge: Time Will Tell ๐Ÿ•ฐ
AboutCommentsNotes
The Weekly Web Dev Challenge: Time Will Tell ๐Ÿ•ฐ
Expand for more info
index.js
run
preview
console
import { now } from './utility.js'

const getClockTemplate = id => `<div id="clock-${id}"" class="clock">
<div class="hand second-hand" id="clock-${id}-second-hand"></div>
<div class="hand minute-hand" id="clock-${id}-minute-hand"></div>
<div class="hand hour-hand" id="clock-${id}-hour-hand"></div>
<div class="clock-center"></div>
</div>`

const startClock = () => {
document.body.innerHTML = getClockTemplate(0)
}

startClock()

/*
Description:
Your job is to fix this broken clock!
Right now it's only right twice a day.

Skills:
CSS Transforms, JavaScript Dates, setTimeout()/setInterval(), HTML/CSS in JavaScript
*/
Console
/index.html
-2:54