Created
December 7, 2016 23:48
-
-
Save RCTumolac/7229ab700e8291e0012624eff2d8090f to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=7229ab700e8291e0012624eff2d8090f
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>Name Exercise</title> | |
</head> | |
<body> | |
<h1> What is your name? </h1> | |
<input id = "Place" placeholder = "Your name here"> | |
<button id = "Button" > Say Hello! </button> | |
<p></p> | |
<img src = "http://img11.deviantart.net/55e0/i/2013/053/1/3/please_give_me_points_by_ninjas_r_us_comics-d5vsjtt.png" /> | |
</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 = $("#Place").val(); | |
$("p").append("<p> Hi "+ Name +"</p>"); | |
}); |
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
#Place{ | |
height: 20px; | |
width: 170px; | |
color: gray; | |
border-style: solid; | |
border-color: black; | |
float: left; | |
border-width: 0.5px; | |
} | |
#Button{ | |
height: 20px; | |
width: 75px; | |
border-color: black; | |
border-style: solid; | |
float: left; | |
border-width: 0.5px; | |
} | |
p{ | |
font-size: 50px; | |
font-family: impact; | |
display: block; | |
clear: left; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment