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.
<div class="grid">
<section class="sec01 grid_item">
<header class="sec_header sec_header01">
<h2 class="sec_header_inner">section01_header</h2>
</header>
<section class="sec_body">section01_contents</section>
</section>
<section class="sec02">
<header class="sec_header grid">
<h2 class="sec_header_inner grid_item">section02_header</h2>
</header>
<div class="grid">
<div class="sec_body grid_item">section02_contents</div>
</div>
</section>
<section class="sec03">
<header class="sec_header grid">
<h2 class="sec_header_inner grid_item">section03_header</h2>
</header>
<div class="grid">
<div class="sec_body grid_item">section03_contents</div>
</div>
</section>
<aside class="side">sidebar</aside>
</div>
@charset "UTF-8";
*,
*:before,
*:after {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.side {
background-color: #f099fa;
padding: 20px;
}
.sec_header {
/* color: #fff; */
background-color: #9AFF8F;
}
.sec_header_inner {
margin: 0;
padding: 20px;
background-color: rgba(255, 255, 255, 0.3);
}
.sec_body {
background-color: #FFF28F;
height: 100px;
padding: 20px;
}
@media screen and (min-width: 600px) {
.grid {
display: grid;
grid-template-columns: 1fr minmax(444px, 740px) minmax(24px, 40px) minmax(
132px,
220px
) 1fr;
/* grid-template-rows: auto auto auto; */
display: -ms-grid;
-ms-grid-columns: 1fr minmax(444px, 740px) minmax(24px, 40px)
minmax(132px, 220px) 1fr;
/* -ms-grid-rows: auto auto auto; */
}
.grid_item {
/* grid-row: 1; */
grid-column: 2;
/* -ms-grid-row: 1; */
-ms-grid-column: 2;
}
.sec02,
.sec03 {
grid-row: 2;
grid-column: 1 / -1;
-ms-grid-row: 2;
/* -ms-grid-column: 1; */
-ms-grid-column-span: 5;
}
.sec03 {
grid-row: 3;
-ms-grid-row: 3;
}
.side {
/* grid-row: 1; */
grid-column: 4;
/* -ms-grid-row: 1; */
-ms-grid-column: 4;
}
}
Also see: Tab Triggers