Skip to content

Instantly share code, notes, and snippets.

Created March 30, 2015 06:13
Show Gist options
  • Save anonymous/4b2422f463a3633e7fc2 to your computer and use it in GitHub Desktop.
Save anonymous/4b2422f463a3633e7fc2 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/qadisa
<!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>
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;
}
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