Created
February 28, 2017 05:16
-
-
Save alexpelan/88b30e17320e4eeecf4a0c0f0ddbb0e6 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=88b30e17320e4eeecf4a0c0f0ddbb0e6
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> | |
| <div> | |
| <span>Your Name: </span> | |
| <input type="text" id = "name"> | |
| </div> | |
| <button>submit</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. Create a click handler for the button | |
| 2. Inside the click handler, create a variable named user | |
| 3. Assign the variable the value of the name input box | |
| 4. Append "Hello" plus user to the paragraph tag | |
| */ |
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: 30px; | |
| padding: 20px; | |
| } | |
| div { | |
| font-size: 30px; | |
| padding: 20px; | |
| } | |
| input { | |
| height: 30px; | |
| width: 200px; | |
| } | |
| p { | |
| font-size: 30px; | |
| color: green; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment