Skip to content

Instantly share code, notes, and snippets.

@vanderhoop
Last active August 29, 2015 14:07
Show Gist options
  • Select an option

  • Save vanderhoop/db7a440305f19c1ad055 to your computer and use it in GitHub Desktop.

Select an option

Save vanderhoop/db7a440305f19c1ad055 to your computer and use it in GitHub Desktop.

The Wasteland

We just started using jQuery to to the barren landscape as a class. Now it's your turn. Keep going.

Directions

  1. Create a div element and save it to the variable waldo.
  2. Give this div the id of waldo.
  3. Append the div to the <body> tag.
  4. Create a ul element and save it to a sensibly named variable.
  5. Uncomment the birds array. Iterate through the array, and create an li for each bird. Give each <li> the class of 'bird' and the text value of the bird's name. Append an li with the class of 'bird' to the ul.
  6. append the ul to the DOM.
  7. Add 5 more elements (each of a different tag) to the DOM so that the wasteland is lush. Feel free to get creative with the css.
  8. Once the wasteland is no longer a wasteland, change the span tag's text to 'Teeming Funland'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment