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.
<main lang="de">
<h1>Allgemeine Erklärung der Menschenrechte</h1>
<section>
<img src="https://upload.wikimedia.org/wikipedia/commons/d/d3/HumanRightsLogo.svg" alt="" role="none presentation"/>
<div>
<h2>Artikel 1</h2>
<p>Alle Menschen sind frei und gleich an Würde und Rechten geboren. Sie sind mit Vernunft und Gewissen begabt und sollen einander im Geiste der Brüderlichkeit begegnen.</p>
</div>
</section>
<section>
<img src="https://upload.wikimedia.org/wikipedia/commons/d/d3/HumanRightsLogo.svg" alt="" role="none presentation"/>
<div>
<h2>Artikel 2</h2>
<p>Jeder hat Anspruch auf alle in dieser Erklärung verkündeten Rechte und Freiheiten, ohne irgendeinen Unterschied, etwa nach Rasse, Hautfarbe, Geschlecht, Sprache, Religion, politischer oder sonstiger Anschauung, nationaler oder sozialer Herkunft, Vermögen, Geburt oder sonstigem Stand.</p>
<p>Des weiteren darf kein Unterschied gemacht werden auf Grund der politischen, rechtlichen oder internationalen Stellung des Landes oder Gebietes, dem eine Person angehört, gleichgültig ob dieses unabhängig ist, unter Treuhandschaft steht, keine Selbstregierung besitzt oder sonst in seiner Souveränität eingeschränkt ist.</p>
</div>
</section>
<section>
<img src="https://upload.wikimedia.org/wikipedia/commons/d/d3/HumanRightsLogo.svg" alt="" role="none presentation"/>
<div>
<h2>Artikel 3</h2>
<p>Jeder hat das Recht auf Leben, Freiheit und Sicherheit der Person.</p>
</div>
</section>
<section>
<img src="https://upload.wikimedia.org/wikipedia/commons/d/d3/HumanRightsLogo.svg" alt="" role="none presentation"/>
<div>
<h2>Artikel 4</h2>
<p>Niemand darf in Sklaverei oder Leibeigenschaft gehalten werden; Sklaverei und Sklavenhandel in allen ihren Formen sind verboten.</p>
</div>
</section>
<section>
<img src="https://upload.wikimedia.org/wikipedia/commons/d/d3/HumanRightsLogo.svg" alt="" role="none presentation"/>
<div>
<h2>Artikel 5</h2>
<p>Niemand darf der Folter oder grausamer, unmenschlicher oder erniedrigender Behandlung oder Strafe unterworfen werden.</p>
</div>
</section>
</main>
html
{
font: 1.25em/1.4 Cambria, serif;
}
body
{
max-width: 25em;
margin: auto;
padding: 0 1em;
}
h1
{
font-size: 1.4em;
line-height: 1;
}
h2
{
margin: 0;
font-size: 1em;
}
section
{
margin: 1.4em 0 2.8em;
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
}
section > img
{
display: block;
margin: auto;
}
p
{
margin: 0;
}
@media (max-width: 19em)
{
h1
{
font-size: 1.3em;
line-height: 1.1;
hyphens: auto;
}
h2
{
margin-top: 1.4em;
}
}
@media (min-width: 35em)
{
section
{
display: flex;
align-items: flex-start;
}
section:nth-of-type(even)
{
flex-direction: row-reverse;
}
section::before
{
content: '';
flex: 0 0 2em;
}
section > img
{
order: -1;
margin: 0;
flex: 0 0 6em;
}
section > div
{
flex: 1
}
}
Also see: Tab Triggers