To start the exercise, start a simple http server on local from the clockSkeleton folder.
This exercise is designed to test candidates on their ability to:
- Cooperate in a team-like environment
- Understand simple feature stories
- Reason in order to accomplish small successive tasks
- Adapt to an already existing small code base (in html and javascript)
- Look for informations efficiently
You joined a team overly hyped by a bad clock website. Everything about the product sucks, but the Product team rocks! They provided the Dev team with specific user stories to ease the development process.
As a user, I want to access the app to see the time. And be able to switch from "clock" mode to "timer" mode easily. I also need to be able to stop the clock in both mode, and to reset the timer.
As a user, I want to see a 24h digital clock based on my timezone on the main page of the app. The digit watch dial should be updated every second and synchronised with the analog clock. The "hour", "minute" and "second" sections must be composed of two digits integers.
ex: 15:02:54 and not 15.1:2:54
As a user, I want to see an analog clock based on my timezone on the main page of the app. The watch dial should be updated every second and synchronised with the digital clock. The "hour" hand should take the minutes into account and be updated every second. Same goes for the "minute' hand with the seconds.
As a user I want to switch back and forth between a "clock" mode and a "timer" mode by clicking on "Clock / Timer". For now, the timer mode can be initialised and kept at 0 seconds.
As a user I want to be able to access a timer. The timer mode should always start at 0 and be updated 10 times per second, with a fluid movement for the "second" hand. Both the analog and the digital clock should switch modes and be updated synchronously.
As a user I want to be able to stop the clock and the timer mode by clicking on a "stop" button. Clicking back on it should start the timer back were it stopped and set the clock to the current time.
As a user I want to be able to reset the timer on "timer" mode by clicking on a "reset" button. Clicking on it resets the timer to 0.