Created
May 19, 2015 13:27
-
-
Save Enigmatrix/fcb645c1e5ff61359d58 to your computer and use it in GitHub Desktop.
SayIt // source http://jsbin.com/yoxawi
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> | |
<head> | |
<meta charset="utf-8"> | |
<title>SayIt</title> | |
<link rel="stylesheet" href="styles.css"> | |
<script src="scripts.js"></script> | |
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'> | |
<style id="jsbin-css"> | |
body{ | |
font-family: 'Open Sans', sans-serif; | |
background-color: #2196f3; | |
} | |
.header{ | |
top: 0; | |
left: 0; | |
font-size: 3em; | |
text-align:center; | |
background-color: #1565c0; | |
color: #FFFFFF; | |
width: 100%; | |
line-height: 100px; | |
margin: 0px; | |
position: absolute; | |
} | |
#headerspan{ | |
display: inline-block; | |
vertical-align: middle; | |
line-height: normal; | |
} | |
#inputspan{ | |
left: 0; | |
margin-top: -100px; | |
position: absolute; | |
text-align: center; | |
top: 45%; | |
width: 100%; | |
} | |
textarea{ | |
font-family: 'Open Sans', sans-serif; | |
font-size: 16px; | |
padding-top: 20px; | |
padding-bottom: 20px; | |
padding-left: 20px; | |
padding-right: 20px; | |
width: 50%; | |
resize: none; | |
border: solid 2px #E5E5E5; | |
} | |
#btn { | |
box-shadow: 0px 3px 6px #111111; | |
margin-top: 20px; | |
border-radius: 6px; | |
color: #ffffff; | |
font-size: 20px; | |
background: #ff4081; | |
padding: 10px 40px 10px 40px; | |
text-decoration: none; | |
border: none; | |
} | |
#btn:hover { | |
background: #f50057; | |
text-decoration: none; | |
box-shadow: 0px 4px 6px #111111; | |
} | |
#btn:active{ | |
background: #c51162; | |
text-decoration: none; | |
box-shadow: 0px 4px 6px #111111; | |
} | |
</style> | |
</head> | |
<body> <div class="header"><span id="headerspan">Say Something. <br>I care about what you want to say.</span></div> | |
<span id="inputspan"> | |
<textarea id="text" name="Text1" cols="40" rows="10"></textarea> | |
<br> | |
<input id="btn" type="button" value="SAY IT" onclick="changeText()"> | |
</span> | |
<script id="jsbin-javascript"> | |
function changeText () { | |
document.getElementById('inputspan').style.color = "white"; | |
document.getElementById('inputspan').style.fontSize = "3em"; | |
document.getElementById('inputspan').innerHTML = "Suprise! I don't care!"; | |
} | |
</script> | |
<script id="jsbin-source-css" type="text/css">body{ | |
font-family: 'Open Sans', sans-serif; | |
background-color: #2196f3; | |
} | |
.header{ | |
top: 0; | |
left: 0; | |
font-size: 3em; | |
text-align:center; | |
background-color: #1565c0; | |
color: #FFFFFF; | |
width: 100%; | |
line-height: 100px; | |
margin: 0px; | |
position: absolute; | |
} | |
#headerspan{ | |
display: inline-block; | |
vertical-align: middle; | |
line-height: normal; | |
} | |
#inputspan{ | |
left: 0; | |
margin-top: -100px; | |
position: absolute; | |
text-align: center; | |
top: 45%; | |
width: 100%; | |
} | |
textarea{ | |
font-family: 'Open Sans', sans-serif; | |
font-size: 16px; | |
padding-top: 20px; | |
padding-bottom: 20px; | |
padding-left: 20px; | |
padding-right: 20px; | |
width: 50%; | |
resize: none; | |
border: solid 2px #E5E5E5; | |
} | |
#btn { | |
box-shadow: 0px 3px 6px #111111; | |
margin-top: 20px; | |
border-radius: 6px; | |
color: #ffffff; | |
font-size: 20px; | |
background: #ff4081; | |
padding: 10px 40px 10px 40px; | |
text-decoration: none; | |
border: none; | |
} | |
#btn:hover { | |
background: #f50057; | |
text-decoration: none; | |
box-shadow: 0px 4px 6px #111111; | |
} | |
#btn:active{ | |
background: #c51162; | |
text-decoration: none; | |
box-shadow: 0px 4px 6px #111111; | |
}</script> | |
<script id="jsbin-source-javascript" type="text/javascript">function changeText () { | |
document.getElementById('inputspan').style.color = "white"; | |
document.getElementById('inputspan').style.fontSize = "3em"; | |
document.getElementById('inputspan').innerHTML = "Suprise! I don't care!"; | |
}</script></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
body{ | |
font-family: 'Open Sans', sans-serif; | |
background-color: #2196f3; | |
} | |
.header{ | |
top: 0; | |
left: 0; | |
font-size: 3em; | |
text-align:center; | |
background-color: #1565c0; | |
color: #FFFFFF; | |
width: 100%; | |
line-height: 100px; | |
margin: 0px; | |
position: absolute; | |
} | |
#headerspan{ | |
display: inline-block; | |
vertical-align: middle; | |
line-height: normal; | |
} | |
#inputspan{ | |
left: 0; | |
margin-top: -100px; | |
position: absolute; | |
text-align: center; | |
top: 45%; | |
width: 100%; | |
} | |
textarea{ | |
font-family: 'Open Sans', sans-serif; | |
font-size: 16px; | |
padding-top: 20px; | |
padding-bottom: 20px; | |
padding-left: 20px; | |
padding-right: 20px; | |
width: 50%; | |
resize: none; | |
border: solid 2px #E5E5E5; | |
} | |
#btn { | |
box-shadow: 0px 3px 6px #111111; | |
margin-top: 20px; | |
border-radius: 6px; | |
color: #ffffff; | |
font-size: 20px; | |
background: #ff4081; | |
padding: 10px 40px 10px 40px; | |
text-decoration: none; | |
border: none; | |
} | |
#btn:hover { | |
background: #f50057; | |
text-decoration: none; | |
box-shadow: 0px 4px 6px #111111; | |
} | |
#btn:active{ | |
background: #c51162; | |
text-decoration: none; | |
box-shadow: 0px 4px 6px #111111; | |
} |
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
function changeText () { | |
document.getElementById('inputspan').style.color = "white"; | |
document.getElementById('inputspan').style.fontSize = "3em"; | |
document.getElementById('inputspan').innerHTML = "Suprise! I don't care!"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment