Created
December 15, 2016 18:38
-
-
Save sheafk/a91f1aeb9315259dfd66333d804716c5 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=a91f1aeb9315259dfd66333d804716c5
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
{"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(); | |
//your code for the do now goes on line 3 | |
}); | |
$("#appear").click(function() { | |
$("h1").html("<p>I have arrived!</p>"); | |
}); |
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