Created
March 30, 2015 06:13
-
-
Save anonymous/4b2422f463a3633e7fc2 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/qadisa
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> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
body { | |
font-family: Arial, sans-serif; | |
text-align: center; | |
padding-top: 50px; | |
} | |
div { | |
background: aquamarine; | |
width: 100px; | |
height: 100px; | |
margin: 30px auto; | |
padding: 20px; | |
border: solid 2px #555; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="box"> | |
<p>Example text.</p> | |
</div> | |
<script id="jsbin-javascript"> | |
var box = document.querySelector('.box'), | |
boxClone = box.cloneNode(), | |
boxClone2 = box.cloneNode(true); | |
document.body.appendChild(boxClone); | |
document.body.appendChild(boxClone2); | |
</script> | |
<script id="jsbin-source-css" type="text/css">body { | |
font-family: Arial, sans-serif; | |
text-align: center; | |
padding-top: 50px; | |
} | |
div { | |
background: aquamarine; | |
width: 100px; | |
height: 100px; | |
margin: 30px auto; | |
padding: 20px; | |
border: solid 2px #555; | |
}</script> | |
<script id="jsbin-source-javascript" type="text/javascript">var box = document.querySelector('.box'), | |
boxClone = box.cloneNode(), | |
boxClone2 = box.cloneNode(true); | |
document.body.appendChild(boxClone); | |
document.body.appendChild(boxClone2);</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: Arial, sans-serif; | |
text-align: center; | |
padding-top: 50px; | |
} | |
div { | |
background: aquamarine; | |
width: 100px; | |
height: 100px; | |
margin: 30px auto; | |
padding: 20px; | |
border: solid 2px #555; | |
} |
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
var box = document.querySelector('.box'), | |
boxClone = box.cloneNode(), | |
boxClone2 = box.cloneNode(true); | |
document.body.appendChild(boxClone); | |
document.body.appendChild(boxClone2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment