Created
December 14, 2016 21:57
-
-
Save fozzle/9568543ea044a4f124ed0c43081b673a to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=9568543ea044a4f124ed0c43081b673a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#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 | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#magic{ | |
margin: 20px; | |
} | |
h1{ | |
margin:0px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment