Javascript Part 2 --> DOM Manipulation
Below you will find a list of exercises for the students to complete during Javascript Part 2. These exercises are focused on having the students create functions to manipulate the DOM and prepare for their final project.
Carousel -- (Advanced)
- A scrolling carousel (automatically cycle through images)
Changing Header -- (Intermediate)
- A changing text header (cycle through marketing-style slogans, e.g. "CoolService is loved by _______" (freelancers / go-getters / artists / bosses / athletes etc.)).
Tabbed Content -- (Intermediate)
- Tabbed content (click to change view)
Modal -- (Intermediate)
- Expanding content (click to open) Introduced a new way of using a function, with the keyword this
Form Input -- (Basic)
- Something with reading a form input and changing the page content accordingly
Change Background -- (Basic)
- Something with manipulating CSS styles, e.g. add a class .
Local Storage -- (Advanced)
- To follow up on dark theme idea, using localstorage would be an advanced use case to avoid losing state on refresh; probably that's too much for this group tho.(would be esp. cool with a transition prop). Oh! Dark theme? That works
Scrolling -- (Intermediate)
- Doing something on window resize, or scroll, not sure what