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="card card-001 card-lmdj">
<div class="card__wrapper">
<aside class="card__aside">
<h1 class="card__aside__parent-title">
<section class="card__aside__title"><span class="card__aside__title__first">C<span class="card__aside__title__logo"><span class="card__aside__title__logo__inner">o</span></span>up</span><span class="card__aside__title__second">critique</span></section>
</h1><img class="card__aside__logo" src="https://www.coup-critique.com/media/images/logo_white.png" alt="Coup critique">
<h2 class="card__aside__category"><span class="card__aside__category__title">Le Mot du Jour</span> <span class="card__aside__category__number">#001</span></h2>
</aside>
<header class="card__header">
<div class="card__header__title">
<h1>Risque</h1>
</div>
</header>
<section class="card__content">
<div class="card__content__lead">
<p class="is-center"><strong>Le risque désigne le potentiel nuisible</strong></p>
<p class="is-far">Il est la résultante de deux facteurs :</p>
<ul>
<li>
<p><strong>Le danger :</strong> Dégâts occasionnés.</p>
</li>
<li>
<p><strong>L'exposition :</strong> Probabilité d'application de ces dégâts.</p>
</li>
</ul>
<h2><strong>Risque =</strong> Danger <em>x</em> Exposition</h2>
<p class="is-right"><img src="https://www.coup-critique.com/media/images/upload/mdj-001-1.jpg" alt="Number"></p>
<p><strong>Il est fréquent de confondre risque et danger :</strong></p>
<p>Si un évènement peut avoir des conséquences graves, les individus ont tendance à se focaliser sur le danger (ex : crash aérien) sans prendre en compte sa probabilité de survenue (plus de 100 000 vols commerciaux sans accident chaque jour).</p>
<p
class="is-center"><strong>Utiliser la peur créée par cette confusion est un bon moyen de manipulation ou de faire accepter aux gens des assurances inutiles, des lois restreignant la liberté d'expression, etc.</strong></p>
</div>
<ul class="card__content__list">
<li class="card__content__list__item">
<h2>Études de cas</h2>
</li>
<li class="card__content__list__item">
<h3>Vaccination</h3>
<h4>Danger :</h4>
<p>Élevé en cas d'allergie à l'un des constituants. Complications rarissimes.</p>
<h4>Exposition :</h4>
<p>Minime, ces allergies sont rares et dépistables.</p>
<h4>Risque :</h4>
<p>Négligeable.</p>
</li>
<li class="card__content__list__item">
<h3>Petit orteil contre meuble</h3>
<h4>Danger :</h4>
<p>Douleur atroce mais séquelles peu probales.</p>
<h4>Exposition :</h4>
<p>À chaque envie nocturne d'uriner ou de boire.</p>
<h4>Risque :</h4>
<p>Important, doit être pris en compte au quotidien.</p>
</li>
</ul>
</section>
<footer class="card__footer">
<div class="card__footer__credit">
<h2>Crédits</h2>
<ul>
<li>Texte et design : <a href="https://www.facebook.com/pg/CoupEspritCritique/" target="_blank">Monsieur Z</a></li>
<li>Mise en page : <a href="https://www.lesieur.name/zetetique/" target="_blank">Z'êtes Éthique</a></li>
</ul>
</div>
<div class="card__footer__about">
<h2>À propos</h2>
<ul>
<li>v1.1.0</strong>
</li>
<li><a href="https://www.facebook.com/CoupEspritCritique/" target="_blank">fb.me/CoupEspritCritique</a></li>
</ul>
</div>
</footer>
</div>
</div>
@font-face {
font-family: 'Destroy';
src: url('https://cdn.rawgit.com/Haeresis/BookAtlas/develop/assets/fonts/Destroy.eot?#iefix') format('embedded-opentype'), url('https://cdn.rawgit.com/Haeresis/BookAtlas/develop/assets/fonts/Destroy.woff') format('woff'), url('https://cdn.rawgit.com/Haeresis/BookAtlas/develop/assets/fonts/Destroy.ttf') format('truetype'), url('https://cdn.rawgit.com/Haeresis/BookAtlas/develop/assets/fonts/Destroy.svg#Destroy') format('svg');
font-weight: normal;
font-style: normal;
}
body
background-color #000
margin 0
padding 0
font-family 'Open Sans', Arial, sans-serif
.card
line-height 1.15
position absolute
color #fff
height 100%
width 100%
strong
font-style italic
^[0].card-cc ^[1..1]
color #ff00fb
^[0].card-mcem ^[1..1]
color #04fdff
^[0].card-aqtc ^[1..1]
color #07f40f
^[0].card-lmdj ^[1..1]
color #ffdd40
ul
margin 0
padding 0
list-style-type none
&__wrapper
overflow-y scroll
height 100%
width 100%
&__aside
&__content
&__header
&__footer
font-family 'Open Sans', Arial, sans-serif
max-width 100vmin
margin-left auto
margin-right auto
&__content
&__header
&__footer
position relative
z-index 2
a
text-decoration none
&:hover
text-decoration underline
^[0].card-cc ^[1..1]
color #ff00fb
^[0].card-mcem ^[1..1]
color #04fdff
^[0].card-aqtc ^[1..1]
color #07f40f
^[0].card-lmdj ^[1..1]
color #ffdd40
&__aside
display flex
justify-content space-between
order 1
&__parent-title
cursor pointer
order 2
margin 1.2vmin 1.6vmin
&__category
font-size 2.2vmin
margin 1.6vmin
text-transform uppercase
order 1
font-family Destroy
text-shadow 0.1vmin 0.1vmin 0.1vmin #444, -0.1vmin 0.1vmin 0.1vmin #444, 0.1vmin -0.1vmin 0.1vmin #444, -0.1vmin -0.1vmin 0.1vmin #444
&__logo
position absolute
top 50%
left 50%
z-index 1
transform translate(-50%, -50%)
opacity 0.2
width 70vmin
&__title
text-transform uppercase
font-size 2.2vmin
text-shadow 0.1vmin 0.1vmin 0.1vmin #d26769, -0.1vmin 0.1vmin 0.1vmin #d26769, 0.1vmin -0.1vmin 0.1vmin #d26769, -0.1vmin -0.1vmin 0.1vmin #d26769
color #fff
font-family Destroy
&__logo
background-position center -0.5vmin;
background-size 4vmin
background-image url('https://www.coup-critique.com/media/images/logo_white.png')
width 2.6vmin
height 2.6vmin
vertical-align middle
display inline-block
&__inner
display none
&__second
display block
margin-left 2vmin
&__footer
display flex
justify-content space-between
order 4
margin-top 24px
h2
margin .1vmin 0
font-size 1.6vmin
li
margin .1vmin 0
font-size 1.2vmin
&__credit
margin 0 1.6vmin 1.6vmin 1.6vmin
&__about
margin 0 1.6vmin 1.6vmin 1.6vmin
text-align right
&__header
h1
text-align center
font-size 6.2vmin
text-transform uppercase
color #fff
font-weight normal
font-style normal
font-family Destroy
margin 3.2vmin 1.6vmin
^[0].card-cc ^[0..2]
text-shadow 0.1vmin 0.1vmin 0.1vmin #ff00fb, -0.1vmin 0.1vmin 0.1vmin #ff00fb, 0.1vmin -0.1vmin 0.1vmin #ff00fb, -0.1vmin -0.1vmin 0.1vmin #ff00fb
^[0].card-mcem ^[0..2]
text-shadow 0.1vmin 0.1vmin 0.1vmin #04fdff, -0.1vmin 0.1vmin 0.1vmin #04fdff, 0.1vmin -0.1vmin 0.1vmin #04fdff, -0.1vmin -0.1vmin 0.1vmin #04fdff
^[0].card-aqtc ^[0..2]
text-shadow 0.1vmin 0.1vmin 0.1vmin #07f40f, -0.1vmin 0.1vmin 0.1vmin #07f40f, 0.1vmin -0.1vmin 0.1vmin #07f40f, -0.1vmin -0.1vmin 0.1vmin #07f40f
^[0].card-lmdj ^[0..2]
text-shadow 0.1vmin 0.1vmin 0.1vmin #ffdd40, -0.1vmin 0.1vmin 0.1vmin #ffdd40, 0.1vmin -0.1vmin 0.1vmin #ffdd40, -0.1vmin -0.1vmin 0.1vmin #ffdd40
^[0].card-mcem.card-001 ^[0..2]
text-align left
margin: 3.2vmin 5vmin;
span
display block
margin-left 20vmin
&__content
margin 0 auto
h2
font-size 3.2vmin
margin 0.8vmin 1.6vmin
font-style italic
font-weight bold
^[0].card-cc ^[0..2]
color #ff00fb
^[0].card-mcem ^[0..2]
color #04fdff
^[0].card-aqtc ^[0..2]
color #07f40f
^[0].card-lmdj ^[0..2]
color #ffdd40
h3
font-size 2.8vmin
margin 0.8vmin 1.6vmin
font-style italic
font-weight bold
^[0].card-cc ^[0..2]
color #ff00fb
^[0].card-mcem ^[0..2]
color #04fdff
^[0].card-aqtc ^[0..2]
color #07f40f
^[0].card-lmdj ^[0..2]
color #ffdd40
h4
font-size 2.4vmin
margin 0.8vmin 1.6vmin
font-style italic
font-weight bold
small
font-size 70%
display inline-block
^[0].card-mcem.card-001 ^[0..2]
font-style italic
p
font-size 2.8vmin
margin 0.8vmin 1.6vmin
text-align justify
.is-center
text-align center
^[0].card-lmdj.card-001 ^[0..2]
margin 2.4vmin 3.2vmin
text-align-last center
.is-far
margin-top 3.2vmin
.is-near
margin-top -.8vmin
line-height 1.30
^[0].card-cc.card-001 ^[0..2]
margin-top -1vmin
^[0].card-aqtc.card-001 ^[0..2]
margin-bottom 2vmin
.is-right
float right
^[0].card-lmdj.card-001 ^[0..2]
img
height 19vmin
&__lead
h2
^[0].card-lmdj.card-001 ^[0..3]
margin-top 3.2vmin
margin-bottom 3.2vmin
font-size 5vmin
text-align center
text-transform uppercase
p
^[0].card-cc.card-001 ^[0..3]
text-align center
ul
^[0].card-lmdj.card-001 ^[0..3]
margin 2.4vmin 4vmin
font-size 3.2vmin
strong
display inline-block
width 19vmin
.is-important
margin-bottom 2.4vmin
font-size 3.6vmin
&__list
^[0].card-cc.card-001 ^[0..2]
display flex
flex-wrap wrap
justify-content space-around
^[0].card-lmdj.card-001 ^[0..2]
border-top 1px solid #ffdd40
border-bottom 1px solid #ffdd40
display flex
flex-wrap wrap
justify-content space-between
margin 0
margin-bottom 2.4vmin
padding 0
list-style-type none
.is-important
font-size 2.6vmin
^[0].card-cc.card-001 ^[0..3]
margin-top 1vmin
h2
^[0].card-mcem.card-001 ^[0..3]
margin 3.2vmin 1.6vmin -0.8vmin 4.8vmin
text-transform uppercase
^[0].card-aqtc.card-001 ^[0..3]
display inline-block
text-transform uppercase
margin 0.8vmin 1.6vmin 0.8vmin 20vmin
width 17vmin
p
^[0].card-cc.card-001 ^[0..3]
font-size 1.92vmin
margin 0.8vmin 3.2vmin
text-align-last center
^[0].card-aqtc.card-001 ^[0..3]
display inline-block
font-size 3.2vmin
margin 1.6vmin
font-weight bold
font-style italic
&__item
^[0].card-cc.card-001 ^[0..3]
text-align center
width 42vmin
^[0].card-lmdj.card-001 ^[0..3]
text-align left
margin-top 2vmin
margin-bottom 2vmin
&:nth-child(1)
width 5%
&:nth-child(2)
&:nth-child(3)
width 45%
p
font-size 2vmin
text-align left
h2
transform rotate(-90deg)
white-space nowrap
margin-left 0
margin-top 25vmin
font-size 3.6vmin
h3
margin 0 1.6vmin 0.8vmin
&__conclusion
p
^[0].card-cc.card-001 ^[0..3]
margin 0.8vmin 3.2vmin
text-align-last center
Also see: Tab Triggers