Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 1.06 KB

README.md

File metadata and controls

18 lines (14 loc) · 1.06 KB

Random Quote Generator

Project 1 - Treehouse Full Stack JS TechDegree

by Kimberly Belanger
September 13, 2017

View Project at : https://k-belanger.github.io/random-quote-generator

Project Objective:

Create an app that displays random quotes each time a button is clicked using JavaScript and complete all "Exceeds Expectation" criteria.

Project Functions:

When button is clicked a random quote from the quotes array, with author and optional citation and year, is displayed on the screen.

Exceeds Expectations:

  • The background color of page and of the button randomly changes when a new quote is displayed. No color is repeated until all the colors have been used.
  • No quote is repeated until all the quotes in the quotes array have been cycled through. The quotes are logged to the console in order to verify this.
  • The array of quotes has an additional property of 'tags' which contains an array of tags that categorize the given quote.
  • A new quote is automatically displayed after 20 seconds have passed. If the button is clicked the interval time is reset.