Skip to content

Instantly share code, notes, and snippets.

@timsgardner
Created February 6, 2017 22:06
Show Gist options
  • Save timsgardner/6b5f82cf80df0e945e8f20f60a88ea44 to your computer and use it in GitHub Desktop.
Save timsgardner/6b5f82cf80df0e945e8f20f60a88ea44 to your computer and use it in GitHub Desktop.
lab instructions

LAB!!!

FROM A NEW JAVASCRIPT FILE:

  • Make a grid of empty divs (optionally using flexbox) (if you aren't using flexbox, you don't have to make a grid, a column of divs will do)

  • Make a clickable palette of elements, each of which shows a color

  • When each of these elements is clicked, it should set a variable called "currentColor" to the color of the clicked element

  • When we click an element in the grid, have its background color change to currentColor

  • Can store data in the DOM or in a Javascript data structure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment