Created
January 11, 2017 19:53
-
-
Save hini-manan/c41e448954ed3c477e4f0432682d9e51 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=c41e448954ed3c477e4f0432682d9e51
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>I am always awesome!</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
{"enabledLibraries":["jquery"]} |
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(){ | |
$("h1").hide();}); | |
$("#appear").click(function(){ | |
$("h1").show();}); |
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; | |
background-color: teal; | |
} | |
#appear{ | |
margin: 20px; | |
background-color: teal; | |
} | |
h1{ | |
margin:0px; | |
font-size: 50px; | |
color: purple; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment