cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation


Save Automatically?

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.

	<title>Random Quote Machine - Free Code Camp, Intermediate Front End Development Projects</title>
<meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<title>Untitled Document</title>
<link href="rcm.css" rel="stylesheet" type="text/css" media="screen">
<div class="container-fluid row marge-20 col-xs-13">
  <div class="container-fluid col-md-1 col-xs-2"></div>
  <div class="container-fluid well col-md-10">
    <div id="quoteBox" class="container-fluid">
        <p id="quote"></p>
        <footer id="title"></footer>
    <div class="container-fluid">
      <button id="tweet" class="btn btn-primary"><i class="fa fa-twitter fa-3x" aria-hidden="true"></i></button><button id="newQuote" class="btn btn-primary pull-right btn-lg larger-text">New quote</button>
  <div class="container-fluid col-md-1 col-xs-2"></div>
<div class="container-fluid text-center row white-text">By <a href="http://raymondrizzo.com/Portfolio" target="_blank">Raymond Rizzo</a></div>
              /* CSS Document */
body {
  background-color: #337ab7;
	font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif !important;
	font-size: 14px;
	font-style: normal;
	font-variant: small-caps;
	font-weight: 500;



  margin-top: 20%;

	font-size: 26px !important;

.white-text, .white-text a {
  color: #ffffff;

Random Quote Machine - Raymond Rizzo

var quoteArray = [];

$(document).ready(function() {
	'use strict';
	$('#newQuote').on('click', function() {
	$('#tweet').on('click', function() {
		window.open('https://twitter.com/intent/tweet?hashtags=freecodecamp&text=' + encodeURI($('#quote').text() + $('#title').text()));
    cache: false
function getQuote() {
	'use strict';
	$.getJSON('https://quotesondesign.com/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1&').done(function(data) {
		quoteArray = data;
		$('#quote').html(quoteArray[0].content.replace(/^<p>\s*|\s*<\/p>/gi, ''));
		$('#title').html('<a href="' + quoteArray[0].link + '" target="_blank">' + quoteArray[0].title.replace(/^<p>\s*|\s*<\/p>/gi, '') + '</a>');

Loading ..................