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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

               <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" />
    <link href="//netdna.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet">
    <script src="//netdna.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>

 <div class="container">
        <div class="row">
            <h1 class="text-center" id="quote"></h1>
            <br />
            <h4 id="quoteWritter" class="text-right"></h4>
        <div class="row pull-right">
            <a id="tweetQuote" href="" target="_blank" class="btn btn-primary " title="Tweet this" data-toggle="tooltip" style="visibility:visible">
                <i class="fa fa-twitter"></i>
            <input type="button" class="btn btn-primary " title="Generate New Quote" value="Generate New Quote" onclick="generateNewQuote()" />

    left: 25%;
    /*top: 30%;*/
    /*border:3px solid gray;*/

    font-family: "Tangerine";
	font-size: 400%;
    color: white;

    font-family: "Tangerine";
	font-size: 250%;
    color: white;


               var count = 0;

        var quotesArray = [["Everyone is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid.", "Albert Einstein"],
            ["Live as if you were to die tomorrow. Learn as if you were to live forever.", "Mahatma Gandhi"],
            ["In the practice of tolerence, one's enemy is the best teacher.", "The Dalai Lama"],
            ["People will forget what you said... they will forget what you did but the will NEVER FORGET how you made them FEEL.", "Maya Angelou"],
            ["If you can't fly, then run, if you cant run, then walk, if you cant walk, then crawl, but whatever you do, you have to keep moving forward.", "Martin Luther King Jr."],
            ["Have a courage to follow your heart and intution. They somehow know what you truly want to become.", "Steve Jobs"],
            ["Win as if you were used to it, lose as if you enjoyed it for a change.", "Ralph Waldo Emerson"],
            ["Strength does not come from winning. your struggle develope your strengths. When you go through hardshipls and decide not to surrender, that is strength.", "Mahatma Gandhi"],
            ["If today were the last day of your life, would you want to do what you are about to do today?", "Steve Jobs"],
            ["The future belongs to those who prepre for it today.", "Malcolm X"],
            ["Two things are infinite. The universe and human stupidity....and i'm not so sure about the universe.", "Albert Einstein"],
            ["Efforts and courage are not enough without purpose and direction.", "JFK"],
            ["If you judge the characher you cant play it.", "Alan Rickman"],
            ["Everything happens for a reason. Maybe you don't see the reason right now, but when it is finally revealed..it will blow you away.", ""],
            ["Sucess is a lousy teacher. it seduces smart people into thinking they can't lose.", "Bill Gates"],
            ["Whatever you are, be a good one.", "Abraham Lincoln"],
            ["Kind words are short and easy to speak, but their echoes are truly endless.", "Mother Terresa"],
            ["I have many problems in my life. But my lips dont know that. They always smile.", "Charlie Chaplin"],
            ["We did not come to fear the future. We came here to sharpe it.", "Barack Obama"],
            ["Dont save what is left after Spending, But spend what is left after Saving.", "Warren Buffett"]]

        var imageArray = ["http://www.waynejagoe.com/wp-content/uploads/2014/12/Albert-Einstein-HD.jpg",

        document.body.style.backgroundImage = "url(" + imageArray[count] + ")";
        document.body.style.backgroundSize = "cover";
        document.getElementById("quote").innerHTML = quotesArray[count][0];
        document.getElementById("quoteWritter").innerHTML = " - " + quotesArray[count][1];

        count = 1;

        function generateNewQuote() 
            document.body.style.backgroundImage = "url(" + imageArray[count] + ")";
            document.body.style.backgroundSize = "cover";

            document.getElementById("quote").innerHTML = quotesArray[count][0];
            document.getElementById("quoteWritter").innerHTML = " - " + quotesArray[count][1];
           document.getElementById("tweetQuote").href = "https://twitter.com/intent/tweet?hashtags=quotes&related=freecodecamp&text=" + quotesArray[count][0] + " - " + quotesArray[count][1];

            count = count + 1;
            if (count == 20) {
                count = 0;
            var currentImg = document.body.style.backgroundImage;

            if (currentImg && currentImg.style) {
                currentImg.style.height = '100%';
                currentImg.style.width = '100%';
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.