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.

            
              <!-- Font awesome library -->
	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

<link href="https://fonts.googleapis.com/css?family=Baloo Bhaina|Nova+Mono|Tangerine" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<body style="background-color:#6FB4DB">
<section class="container-fluid">
  <p></p>
  <p></p>
  <p></p>
  <h1 class="text-primary text-center" style="font-family:Baloo Bhaina"><strong> Random quotes machine</strong></h2>
  </body>
  <h2 class="text-center" style=" color:orange"> Quote of the day from <a href="http://forismatic.com/en" target="_blank">Forismatic</a></h2>
  <p></p>
  <p></p>
  <p></p>
  
    
  <p></p>
     <p></p>
      <div class="row">
         <div class="col-sm-2">
        </div>
        
      <div class="col-sm-8">
         <div class="well" style="background-color:rgba(0, 0, 0, 0.5);">
           <span><i class="fa fa-quote-left fa-lg"></i></span><p class="quote-text text-center" style="font-family:Tangerine, Cursive;"></p>
           <p class="author-text text-right"></p>
  </div>
  <button type="button" class="btn btn-default" id="quote"><span><i class="fa fa-quote-right fa-lg" aria-hidden="true"><em> New Quote</em></i></span></button>
  <a class="twitter-share-button" href="https://twitter.com/intent/tweet" data-size="large" target="_blank">
    <button type="button" class="btn btn-info"><span><i class="fa fa-twitter fa-lg" aria-hidden="true"> Tweet</i></span></button>
  </a>
        <!--  <iframe src="https://www.facebook.com/plugins/share_button.php?href=https%3A%2F%2Fcodepen.io%2Fmarinik17%2Ffull%2FvZxaYx&layout=button_count&size=large&mobile_iframe=true&width=84&height=28&appId" width="100" height="40" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe>-->
        
 
        </div>
      </div>
    </section>
    
 
  

<footer>
  <hr></hr>
  &copy 2017 Alexandru MARIAN
</footer>
            
          
!
            
              body{
  background-image:url("https://i0.wp.com/www.ek0agents.space/wp-content/uploads/2016/07/Gaia6.jpg?fit=1920%2C1080");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center; 
  background-size:100%;
}

section{
  margin-top:150px;
}
p  {
  color:white;
 
}
p.quote-text{
   font-size:32px;
}
p.author-text{
   color:pink;
  font-weight:bold;
}
footer {
  background-color:black;
  color:white;
  position:relative;
  text-align:center;
  margin-top:130px;
  padding-bottom: 1px;
}

    
  



            
          
!
            
              // Random Quote Generator
var url = "https://api.forismatic.com/api/1.0/?method=getQuote&key=457653&format=jsonp&lang=en&jsonp=?";
var getQuote = function(data) {
  $(".quote-text").text(data.quoteText);
  var quot = 'https://twitter.com/intent/tweet?text=' + data.quoteText + ' Author ' + data.quoteAuthor;
  if (data.quoteAuthor === '') {
    data.quoteAuthor = 'Unknown';
  }
  $(".author-text").text('Author: ' + data.quoteAuthor);
  $(".twitter-share-button").attr("href", quot);
};
$(document).ready(function() {
  $.getJSON(url, getQuote, 'jsonp');

});
$("#quote").click(function() {
  $.getJSON(url, getQuote, 'jsonp');
});

            
          
!
999px
Loading ..................

Console