Skip to content

Instantly share code, notes, and snippets.

@janecakemaster
Created December 8, 2016 18:29
Show Gist options
  • Save janecakemaster/d0f3de9a188165727f60c62498c9b73e to your computer and use it in GitHub Desktop.
Save janecakemaster/d0f3de9a188165727f60c62498c9b73e to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=d0f3de9a188165727f60c62498c9b73e
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<!-- here's the html element you need to select -->
<div id="box">i'm a box</div>
<button id="clicker">change</button>
</body>
</html>
{"enabledLibraries":["jquery"]}
// do now: create a click handler to change the
// text in the box to whatever you want
//
// check out the reference table or
// the slides to jog your memory
// DO NOW CODE GOES HERE
/* some default styling for the box
so you can see it on the page */
#box {
width: 200px;
height: 200px;
border: 1px solid black;
margin: 1rem;
font-size: 2rem;
}
#clicker {
margin: 1rem;
font-size: 2rem;
}
.red {
background-color: red;
}
.blue {
background-color: blue;
}
.serif {
font-family: serif;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment