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 class="container row">
<div class="quotebox col-md-8 col-md-offset-6">
<div class="quoteicon col-md-8">
<div class="col-md-6">
<i class="fa fa-4x fa-quote-left" aria-hidden="true"></i>
</div>
</div>
<div class="quotetext col-md-11 h2">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.
</div>
<div class="quoteauthor col-md-3 col-md-offset-7 h4">
Gall Anonim
</div>
<div id="next" class="social col-md-3 col-md-offset-2">
<a id="next"><i class="fa fa-4x fa-repeat" aria-hidden="true"></i></a>
</div>
<div class="col-md-1 social">
<i class="fa fa-4x fa-twitter-square" aria-hidden="true"></i>
</div>
</div>
</div>
</body>
body {
display: flex-inline;
margin-top: -10%;
margin-bottom: 60px;
background-image: url("https://static.pexels.com/photos/248797/pexels-photo-248797.jpeg");
height: 100%;
}
.quotebox {
background-color: white;
border-radius: 20px;
padding: 20% 20px 20px 20px;
-webkit-box-shadow: -7px 10px 5px -3px rgba(0,0,0,0.30);
-moz-box-shadow: -7px 10px 5px -3px rgba(0,0,0,0.30);
box-shadow: -7px 10px 5px -3px rgba(0,0,0,0.30);
height: 600px;
}
.quoteauthor {
text-align: right;
align-items: right;
font-family: light;
font-size: 2em;
font-style: italic;
}
.quotetext {
margin-left: 5%;
}
.social {
position: absolute;
bottom: 20px;
}
var quotes = [["Life isn’t about getting and having, it’s about giving and being.", "Kevin Kruse"],
["Whatever the mind of man can conceive and believe, it can achieve.", "Napoleon Hill"],
["Strive not to be a success, but rather to be of value.", "Albert Einstein"],["Two roads diverged in a wood, and I—I took the one less traveled by, And that has made all the difference.", "Robert Frost"],
["I attribute my success to this: I never gave or took any excuse.", "Florence Nightingale"],
["You miss 100% of the shots you don’t take.", "Wayne Gretzky"],
["I’ve missed more than 9000 shots in my career. I’ve lost almost 300 games. 26 times I’ve been trusted to take the game winning shot and missed. I’ve failed over and over and over again in my life. And that is why I succeed.", "Michael Jordan"],
["The most difficult thing is the decision to act, the rest is merely tenacity.", "Amelia Earhart"],
["Every strike brings me closer to the next home run.", "Babe Ruth"],
["Definiteness of purpose is the starting point of all achievement.", "W. Clement Stone"],
["We must balance conspicuous consumption with conscious capitalism.", "Kevin Kruse"],
["Life is what happens to you while you’re busy making other plans.", "John Lennon"],
["We become what we think about.", "Earl Nightingale"]];
setInterval(function(){
var count = Math.floor(Math.random() * 12 );
$("#next").click(function(){
$(".quotetext").text(quotes[count][0]);
$(".quoteauthor").text(quotes[count][1]);
});
});
Also see: Tab Triggers