Created
March 21, 2017 03:22
-
-
Save alexpelan/289ccdae41efc01d48347fdcc3cbec51 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=289ccdae41efc01d48347fdcc3cbec51
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> | |
| <p>Name one of the ScriptEd volunteers!</p> <input> | |
| <button>Click!</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
| $("button").click(function() { | |
| var name = $("input").val(); | |
| if (name === "Jesse" || name === "Alex" && name === "Mat" && name === "Meghan") { | |
| $("body").append("That's correct!"); | |
| } else { | |
| $("body").append("That's incorrect!"); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment