Created
February 28, 2017 05:11
-
-
Save alexpelan/e4f553ec9957eb5d911d0e925b5da592 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=e4f553ec9957eb5d911d0e925b5da592
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>Welcome To Javascript Variables</title> | |
| </head> | |
| <body> | |
| <h1>Welcome to Javascript</h1> | |
| <button>CLICK ME</button> | |
| <p></p> | |
| </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
| /* | |
| Directions: | |
| 1. Click the "Click Me" button | |
| 2. Change the Javascript code below to say that you are the greatest after you click the button. | |
| */ | |
| // Who is the greatest? Remember to use "quotation marks"! | |
| var name = "ScriptEd"; | |
| // When button gets clicked, change some HTML | |
| $("button").click( function(){ | |
| $("p").html(name + " IS THE GREATEST WOOOOOOOHHHH!!111!"); | |
| }); |
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
| body { | |
| text-align: center; | |
| } | |
| button { | |
| font-size: 50px; | |
| padding: 20px; | |
| } | |
| p { | |
| font-size: 30px; | |
| color: green; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment