CPNT 262 Day 5 - classList API and form events

Housekeeping

Trophies of the day


1. Spoiler Demo: Eat and Drink


2. Forms: text and number fields

To practice traditional forms you may use this url as the attribute value for action:

  • https://sait-wbdv.herokuapp.com/form-submit

Materials

Activities


3. CSS manipulation with classList

Terminology

Separation of concerns
The idea that each module or layer in an application should only be responsible for one thing and should not contain code that deals with other things.

Materials

Activity


4. Lab Time


Prep

DOM and classList

Forms and Javascript