Skip to content

Instantly share code, notes, and snippets.

@e-l-i-s-e
Last active May 3, 2019 14:36
Show Gist options
  • Select an option

  • Save e-l-i-s-e/298724243c8c8a65599e1b0b3a3bf2ee to your computer and use it in GitHub Desktop.

Select an option

Save e-l-i-s-e/298724243c8c8a65599e1b0b3a3bf2ee to your computer and use it in GitHub Desktop.

The DOM

Objective

Students will learn about the Document Object Model (DOM) and practice interacting with it using the developer tools and JavaScript, first in the browser console then using scripts.

In the workshop, students will create a jQuery-like class and methods that manipulate the DOM

Pre-work

Optional Pre-work

In-class

Instructor Demo

  • Instructor should walk through the "Manipulating the DOM" lab with students, clarifying any parts of the tooling as questions arise.
  • Array-like objects and Array.from
  • Look at some DOM properties in the console
    • document.head
    • document.body
    • classList
    • window.innerHeight
    • window.innerWidth

Tutorial

Review video

Notes

  • The original gist for this workshop can be found here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment