Skip to content

Instantly share code, notes, and snippets.

@kirsten
Created December 1, 2016 01:43
Show Gist options
  • Save kirsten/b76589d0133321c1ead781a0dc969ee2 to your computer and use it in GitHub Desktop.
Save kirsten/b76589d0133321c1ead781a0dc969ee2 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=b76589d0133321c1ead781a0dc969ee2
<!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>
{"enabledLibraries":["jquery"]}
// 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!"
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