Skip to content

Instantly share code, notes, and snippets.

@fozzle
Created December 14, 2016 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fozzle/9568543ea044a4f124ed0c43081b673a to your computer and use it in GitHub Desktop.
Save fozzle/9568543ea044a4f124ed0c43081b673a to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=9568543ea044a4f124ed0c43081b673a
<!DOCTYPE html>
<html>
<head>
<title>Do Now 5.1.0</title>
</head>
<body>
<button id = "magic">Click Here</button>
<button id = "appear">Click Here to make words appear</button>
<h1>Make this text hide</h1>
</body>
</html>
$("#magic").click(function(){
// Make it so that when the button is clicked, the h1 text hides.
// See page 6 of your reference table for help.
// Your code wil go on line 5
});
#magic{
margin: 20px;
}
h1{
margin:0px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment