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.
<!-- :( I left this a little too late -->
<div class="container">
<header>
<h1>diversy<span>cake</span></h1>
<section class="logo">Caketown Cakes</section>
</header>
<img src="http://cdn.shopify.com/s/files/1/0362/1653/products/Pink_Flamingo_Birthday_Cake_01_grande.jpg?v=1476124426" alt="Pink and white chocolate cake" />
<img src="https://www.wishacupcake.com/wp-content/uploads/2016/12/chocolate-truffle-cake-dark-chocolate-cake-chocolate-sponge-cake.jpg" alt="Raspberry and chocolate cake" />
<img src="https://i.ytimg.com/vi/EJA5nU9L6zU/maxresdefault.jpg" alt="Chocolate cake" />
<img src="https://i0.wp.com/files.hungryforever.com/wp-content/uploads/2017/06/29130737/simple-carrot-cake-recipes.jpg?w=1269&strip=all&quality=80" alt="Carrot cake" />
<img src="http://img.taste.com.au/MV1msD-o/w720-h480-cfill-q80/taste/2016/11/pinata-party-cake-100115-1.jpeg" alt="Smartie cake" />
</div>
body {
font-family: sans-serif;
background-color: #222;
}
.container {
height: 90vh; width: 80vw; max-width: 600px;
margin: 4vh auto;
display: grid;
grid-template-rows: repeat(6,15vh);
grid-auto-rows: repeat(6,15vh);
}
.container header {
grid-row:3/4;
display: grid;
grid-auto-flow: column;
align-items: center;
background-color: #f4f4f4;
}
.container header section {
grid-column: 1/2;
padding: 20px;
}
.container header h1 {
grid-column: 2/3;
justify-self: end;
padding: 20px;
font-size: 140%;
}
.container header h1 span {color: fuchsia;}
.container img {
height: 15vh; width: 100%;
object-fit: none;
filter: brightness(1.2) opacity(0.7) grayscale(50%);
}
Also see: Tab Triggers