previous page

 

next page

Lab 8/9 Conditionals

Implementing - calculating time difference



When we click on the time zone, we want the box to be filled in
How do we make something happen when we click? (Use events)
What do we want to happen when we click?
Get the time and am/pm the user entered, calculate the new time and put it in the box

How do we calculate the new time?
Start easy – just add/subtract
But then we need to change it if it’s <1 or > 12

 

Go to the Catalyst quiz and answer the next question, then return to these directions to continue the lab. (Hint: Keep both the quiz and the lab open and use Alt-Tab to toggle between them.)

Next, you'll create a CSS file for this page

previous page   next page