/*!
 * @file
 * Application
 */

define([
  "jquery"
], function($) {
  var QUOTES = [
    {
      author: "Jack from The Shining",
      quote:  "All work and no play makes Jack a dull boy."
    },
    {
      author: "Steve Jobs",
      quote:  "It's really hard to design products by focus groups. A lot of times, people don't know what they want until you show it to them."
    },
    {
      author: "Bill Gates",
      quote:  "Your most unhappy customers are your greatest source of learning."
    },
    {
      author: "Albert Einstein",
      quote:  "Life is like riding a bicycle. To keep your balance you must keep moving."
    },
    {
      author: "Thomas Edison",
      quote:  "Our greatest weakness lies in giving up. The most certain way to succeed is always to try just one more time."
    },
    {
      author: "Pablo Picasso",
      quote:  "Every child is an artist. The problem is how to remain an artist once we grow up."
    },
    {
      author: "Pablo Picasso",
      quote:  "Computers are useless. They can only give you answers."
    },
    {
      author: "Simon Sinek",
      quote:  "People don't buy what you do, they buy why you do it."
    },
    {
      author: "Dr. Seuss",
      quote:  "Don't cry because it's over, smile because it happened."
    }
  ];
  
  $.fn.quote = function() {
    var min = 0;
    var max = QUOTES.length - 1;
    var index = Math.floor(Math.random() * (max - min + 1)) + min;
    var quote = '<i>"' + QUOTES[index].quote + '"</i>' +
                '<p>- ' + QUOTES[index].author + '</p>';
    $(this).html(quote).hide().fadeIn("slow");
  };
});

@@ -105,275 +105,171 @@
 r: %22
-Jack from The Shining%22,%0A      quote:  %22All work and no play makes Jack a dull boy.%22%0A    %7D,%0A    %7B%0A      author: %22Steve Jobs%22,%0A      quote:  %22It's really hard to design products by focus groups. A lot of times, people don't know what
+Steve Jobs%22,%0A      quote:  %22You can't just ask customers what they want and then try to give that to them. By the time you get it built,
  they
+'ll
  want 
-until you show it to them
+something new
 .%22%0A 
@@ -985,19 +985,25 @@
 r: %22
-Simon Sinek
+Leonardo da Vinci
 %22,%0A 
@@ -1020,60 +1020,201 @@
 :  %22
-People don't buy what you do, they buy why you do it
+Simplicity is the ultimate sophistication.%22%0A    %7D,%0A    %7B%0A      author: %22Confucius%22,%0A      quote: %22Give a man a fish and he will eat for a day. Teach a man to fish and he will eat for a lifetime
 .%22%0A 
@@ -1335,18 +1335,16 @@
  %7D%0A  %5D;%0A
-  
 %0A  $.fn.

Update quotes