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.

              <div class="container">
  <div class="card box">
  <div class="card-block "><a id="twitter" href="#" target="_blank"><i class="fa fa-twitter fa-2x float-right" aria-hidden="true"></i></a>
    <p class="card-text"><blockquote class="blockquote">
  <p class="mb-0" id="quote"><i class="fa fa-quote-right" aria-hidden="true"></i> </p>
  <footer class="blockquote-footer" id="author"></footer>
  <div class="card-footer">
    <button type="button" id="getquote" class="btn btn-secondary float-right">Get Another Quote</button>
<p class="text-center muted"><small id="myfooter"> created by <a href="https://www.linkedin.com/in/kareemkmetwally/" target="_blank" class="card-link" id="footerlink">Kareem Metwally</a></small></p>
              * {
  vertical-align: baseline;
  background-color: white;
  width: 500px;
  margin: 10% auto auto auto;
  background-color: #eee;
  transition: 1s;
  color: white;
  font-weight: 500;
  transition: 1s;
  cursor: pointer;
  border-top-width: 2px;
  transition: 1s;
  color: white;
  color: rgba(255, 255, 255, 0.5) !important;
              $(document).ready(function() {
  function clicker() {
      success: function(response) {
        //check if the quote is not suitable for twitter
        if(response[0].content.length > 140){
          console.log("got a longer one: "+response[0].content)
          return clicker();
        //now deploy the quote
          "https://twitter.com/intent/tweet?text=" + $("#quote").text()+" -"+$("#author").text()
        var colors = ["#004358","#1F8A70","#BEDB39","#b29d12","#FD7400", "#334D5C","#45B29D","#EFC94C","#E27A3F", "#DF5A49"];

$("body").css("background-color", function(col){
  var randomColor = Math.floor(Math.random()*colors.length);
  theColor = colors[randomColor];
  return theColor;
    $("#getquote").css("background-color", function(){return theColor});
    $(".card-footer").css("border-top-color", function(){return theColor});
      cache: false
   $("#getquote").click(function() {

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