Created
December 6, 2016 23:47
-
-
Save jackrr/37bf7765239372a68e72669f0967a685 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=37bf7765239372a68e72669f0967a685
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> | |
| <!-- DO NOT CHANGE THE HTML!! :) !! --> | |
| <h1>Shapes</h1> | |
| <div id="square" class="shape"></div> | |
| <div id="circle1" class="shape circle"></div> | |
| <div id="circle2" class="shape circle"></div> | |
| <br> | |
| <button id="reveal">Reveal Shapes</button> | |
| <!-- DO NOT CHANGE THE HTML!! :) !! --> | |
| </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
| // 1. Make the circles disappear when you click the square | |
| // 2. Make the square disappear when you click a circle | |
| // 3. Make all the shapes appear again when you click the "Reveal Shapes" button | |
| // **BONUS**: When a shape is clicked, make it turn red (but not the others!!) |
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
| .shape { | |
| height: 80px; | |
| width: 80px; | |
| margin-right: 20px; | |
| background-color: black; | |
| display: inline-block; | |
| } | |
| .circle { | |
| border-radius: 50%; | |
| } | |
| button { | |
| margin-top: 20px; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment