Created
December 8, 2016 18:29
-
-
Save janecakemaster/d0f3de9a188165727f60c62498c9b73e to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=d0f3de9a188165727f60c62498c9b73e
This file contains hidden or 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>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> |
This file contains hidden or 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 hidden or 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
// 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 | |
This file contains hidden or 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
/* 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