Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

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.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <div class="container">
	<div class="row">
		<div class="col-xs-12 col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3">
			<div class="well quoteWell">
				<i class="fa fa-quote-left fa-3x"></i> 
					<p class="quote lead">Humankind cannot gain anything without first giving something in return. To obtain, something of equal value must be lost.</p>
					<footer><cite class="author" title="author">Fullmetal Alchemist</cite></footer>
				<div class="btn-group pull-right">
					<button class="btn btn-default btnReload">
						<i class="fa fa-refresh fa-2x"></i>
					<a class="btn btn-default btnTweet" href="" target="_blank">
						<i class="fa fa-twitter fa-2x"></i>
	<footer class="text-center">
		<p>RANDOM QUOTE MACHINE developed by <a target="_blank" href="">Santak Mishra</a></p>
			<a target="_blank" href="">Andrux</a> - Quotes API<br>
			<a target="_blank" href="">Bootstrap </a> - CSS Framework<br>
			<a target="_blank" href="">jQuery</a> - JavaScript Framework<br>
			<a target="_blank" href="">Font Awesome</a> - Font Icons


                body {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAAG0lEQVQYV2PcvHnzf19fX0YGPACvJEzfqCIGAC55BAqBlVXsAAAAAElFTkSuQmCC) repeat;

footer {
	margin-top: 20px;

.quoteWell {
	margin-top: 90px;
.fa-quote-left {
	color: #444;
	background: #eee;
	border: 2px solid #ccc;
	padding: 10px 12px;
	border-radius: 100%;
	position: absolute;
	top: 45px;
	left: 42%;


                $(document).ready(function() {

	var getQuote = function() {
		return $.ajax({
			url: '',
			headers: {
				'X-Mashape-Key': 'MUzqdeOSo1mshCuear7hljNznBWrp1N5SPTjsngfXZ9xvMJ9dv'
			method: 'POST',
			contentType: 'application/x-www-form-urlencoded',
			dataType: 'json',

	var setQuote = function(data) {
		var encodedQuote = encodeURIComponent(data.quote);
		var tweetUrl = "" + encodedQuote;
		$('.btnTweet').attr('href', tweetUrl);
	$('.btnReload').on('click', function() {
		var reloadBtn = $(this);
		reloadBtn.prop('disabled', true).children('i').addClass('fa-spin');
		getQuote().done(function(data) {
			reloadBtn.prop('disabled', false).children('i').removeClass('fa-spin');