Skip to content

Instantly share code, notes, and snippets.

@sheafk
Created December 15, 2016 18:38
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 sheafk/a91f1aeb9315259dfd66333d804716c5 to your computer and use it in GitHub Desktop.
Save sheafk/a91f1aeb9315259dfd66333d804716c5 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=a91f1aeb9315259dfd66333d804716c5
<!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>
{"enabledLibraries":["jquery"]}
$("#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>");
});
#magic{
margin: 20px;
}
h1{
margin:0px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment