Created
December 1, 2016 01:43
-
-
Save kirsten/b76589d0133321c1ead781a0dc969ee2 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=b76589d0133321c1ead781a0dc969ee2
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>jQuery Rules</title> | |
</head> | |
<body> | |
<button id="change-color">Click me to change the page background color.</button> | |
</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
// When the button is clicked, use jQuery to... | |
// 1. Change the page background color (your color choice!) | |
// 2. Change the text inside the button to say "Thanks!" | |
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
body { | |
background: gray; | |
text-align: center; | |
} | |
#change-color { | |
font-size: 18px; | |
margin-top: 100px; | |
padding: 30px; | |
width: 300px; | |
text-align: center; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment