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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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.

<center><div class="randq btn btn-primary" onclick="qFun()">new quote</div>
  <div id="qoute" onclick="qFun()"><p>quote of the day!</p></div>
  <a href="https://twitter.com/share" class="twitter-share-button" data-dnt="true" data-count="none" data-via="">Tweet</a>

    <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
$('#myModal').on('shown.bs.modal', function () {
  <a data-pin-config='above' data-pin-do='buttonBookmark' href='//pinterest.com/pin/create/button?URL=http://commentbug.com&media=http://commentbug.com/" . $row['file'] . "&description="Quote machine" ><img src='//assets.pinterest.com/images/PinExt.png' /></a>
  <script src="//assets.pinterest.com/js/pinit.js"></script>
  margin: 5% auto;
  width: 60%;
  border-radius: 10px;
  background-color: darkblue;
  padding: 10px;
  margin: 30px;
  width: 70%;
  border: 3px solid white;
  text-shadow: 1px 1px black;
  background-image: url("http://www.matejmichalik.com/black-and-white-photography/galleries/post-427/full/Black-and-white-photo-Breitenbrunn-Austria.jpg");
              function qFun(){
  var qt = new Array();
  qt[0] = "“If you dont build your dream, someone else will hire you to help them build theirs by: Dhirubhai Ambani“";
  qt[1] = "“Whenever you find yourself on the side of the majority, it is time to pause and reflect. by: Mark Twain“";
  qt[2] = "“Live as if you were to die tomorrow. Learn as if you were to live forever. by: Mahatma Gandhi“";
  qt[3] = "“You have to learn the rules of the game. And then you have to play better than anyone else. by: Albert Einstein“";  
  qt[4] = "“The successful warrior is the average man, with laser-like focus. by:Bruce Lee“";
  qt[5] = "“Don’t let the fear of losing be greater than the excitement of winning. by: Robert Kiyosaki“";
  var randN = Math.floor((Math.random()*6));
 document.getElementById("qoute").innerHTML =qt[randN];
Loading ..................