|
|
10 years ago | |
|---|---|---|
| .. | ||
| css | 10 years ago | |
| js | 10 years ago | |
| README.md | 10 years ago | |
| index.html | 10 years ago | |
README.md
WDI-PANTHALASSA
Title: Morning Exercise - Stopwatch w05d02
Type: Morning Exercise
Duration: "0:45"
Creator:
Original creators: WDI-Meeseeks, WDI-Archer, WDI-Funke
Adapted by: Thom Page & Kristyn Bryan
Course: WDIr Panthalassa
Competencies: Javascript, HTML, CSS
Prerequisites: Javascript, HTML, CSS
Morning Exercise
STOP! WATCH TIME!
Stopwatch time = partner time!
We will put you in pairs to work on this exercise. One of you should be the driver while the other is the navigator.
Lets write a browser stopwatch app. Here are the user stories.
- The user should be able to see the current amount of time that has gone by at any given point.
- The user should be able to start the stopwatch.
- the user should be able to stop the stopwatch.
- The user should be able to reset the stopwatch.
- Bonus: The user should be able to make and reset splits that appear somewhere on the page.
We have given you the starter file to use with a basic layout for the html so that you can focus on the Javascript. Before you start to code, organize your thoughts by asking these questions:
- What information am I going to need to store.
- What events will I need and how will I have them interact with the web page.
- What kind of funtions will I need in order to change the data?
Hint: When you get to the "reset" portion of your stopwatch, try Javascript's setInterval() method.
When time is up, remember to share your code with your partner.
