JavaScript preprocessors can help make authoring JavaScript easier and more convenient. For instance, CoffeeScript can help prevent easy-to-make mistakes and offer a cleaner syntax and Babel can bring ECMAScript 6 features to browsers that only support ECMAScript 5.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
HTML Settings
Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.
<body>
<div id="wrapper">
<div id="root-left">
<div class="branch-inverse l1">
<div class="entry-inverse"><span class="label-inverse">Parent 1</span>
<div class="branch-inverse l2">
<div class="entry-inverse"><span class="label-inverse">Grand Parent 1</span>
<div class="branch-inverse l3">
<div class="entry-inverse sole"><span class="label-inverse">Grand Grand Parent 1</span></div>
</div>
</div>
<div class="entry-inverse"><span class="label-inverse">Grand Parent 2</span></div>
</div>
</div>
<div class="entry-inverse"><span class="label-inverse">Parent 2</span>
<div class="branch-inverse l2">
<div class="entry-inverse sole"><span class="label-inverse">Grand Parent 1</span></div>
</div>
</div>
</div>
</div>
<div id="main-root"><span class="label">Root</span></div>
<div id="root-right">
<!-- <span class="label">Root</span> -->
<div class="branch l1">
<div class="entry"><span class="label">Child 1</span>
<div class="branch l2">
<div class="entry"><span class="label">Grand Child 1</span></div>
<div class="entry"><span class="label">Grand Child 2</span></div>
</div>
</div>
<div class="entry"><span class="label">Child 2</span>
<div class="branch l2">
<div class="entry"><span class="label">Grand Child 1</span></div>
<div class="entry"><span class="label">Grand Child 2</span>
<div class="branch l3">
<div class="entry sole"><span class="label">Grand G Child 1</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
body, html {
height: 100%;
width: 100%;
}
*, *:before, *:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
#family-graph {
width: 100%;
height: 100%;
}
#wrapper {
margin-top: 50px;
position: relative;
}
#root-left {
position: relative;
display: table-cell;
vertical-align: middle;
}
#root-right {
position: relative;
display: table-cell;
vertical-align: middle;
}
#main-root {
position: relative;
display: table-cell;
vertical-align: middle;
min-width: 150px;
}
/*right tree*/
.branch {
position: relative;
margin-left: 250px;
}
.branch:before {
content: "";
width: 50px;
border-top: 2px solid magenta;
position: absolute;
left: -100px;
top: 50%;
margin-top: 1px;
}
.entry {
position: relative;
min-height: 60px;
display: block;
}
.entry:before {
content: "";
height: 100%;
position: absolute;
border-left: 2px solid black;
width: 50px;
left: -50px;
}
.entry:after {
content: "";
width: 50px;
border-top: 2px solid aqua;
position: absolute;
left: -50px;
top: 50%;
margin-top: 1px;
}
.label {
display: block;
min-width: 150px;
padding: 5px 10px;
line-height: 20px;
text-align: center;
border: 2px solid silver;
border-radius: 5px;
position: absolute;
left: 0;
top: 50%;
margin-top: -15px;
overflow-wrap: break-word;
background-color: lightblue;
}
/* left tree */
.branch-inverse {
position: relative;
margin-right: 250px;
}
.branch-inverse:before {
content: "";
width: 50px;
border-top: 2px solid magenta;
position: absolute;
right: -100px;
top: 50%;
margin-top: 1px;
}
.entry-inverse {
position: relative;
min-height: 60px;
min-width: 150px;
}
.entry-inverse:after {
content: "";
width: 50px;
border-top: 2px solid aqua;
position: absolute;
right: -50px;
top: 50%;
margin-top: 1px;
}
.entry-inverse:before {
content: "";
height: 100%;
border-right: 2px solid black;
position: absolute;
right: -50px;
}
.label-inverse {
display: block;
min-width: 150px;
padding: 5px 10px;
line-height: 20px;
text-align: center;
border: 2px solid silver;
border-radius: 5px;
position: absolute;
right: 0;
top: 50%;
margin-top: -15px;
overflow-wrap: break-word;
background-color: lightblue;
}
Also see: Tab Triggers