Created
October 29, 2017 21:14
-
-
Save greeneggsandmushrooms/3697eda38b47449f05e117c8d9f6520e to your computer and use it in GitHub Desktop.
35 Bin // source http://jsbin.com/degivot
This file contains 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>35 Bin</title> | |
<style id="jsbin-css"> | |
p{ | |
color:red; | |
} | |
</style> | |
</head> | |
<body> | |
<p id="paragraphText">This is awesome </p> | |
<button onclick="changeTheText()">Change the text</button> | |
<input type="text" id="changeUserText"> | |
<p id="paragraphText">This is another paragraph</p> | |
<p id="paragraphText">This is awesome </p> | |
<script id="jsbin-javascript"> | |
var coolNumber = 3; | |
function changeTheText(){ | |
document.getElementById("paragraphText").style.color="orange"; | |
var changeTextVariable = document.getElementById("changeUserText").value; | |
document.getElementById("paragraphText").innerHTML = changeTextVariable; | |
} | |
</script> | |
<script id="jsbin-source-css" type="text/css">p{ | |
color:red; | |
} | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">var coolNumber = 3; | |
function changeTheText(){ | |
document.getElementById("paragraphText").style.color="orange"; | |
var changeTextVariable = document.getElementById("changeUserText").value; | |
document.getElementById("paragraphText").innerHTML = changeTextVariable; | |
} | |
</script></body> | |
</html> |
This file contains 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
p{ | |
color:red; | |
} |
This file contains 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
var coolNumber = 3; | |
function changeTheText(){ | |
document.getElementById("paragraphText").style.color="orange"; | |
var changeTextVariable = document.getElementById("changeUserText").value; | |
document.getElementById("paragraphText").innerHTML = changeTextVariable; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment