Skip to content

Instantly share code, notes, and snippets.

Avatar

Paul Heintz pmheintz

View GitHub Profile
@pmheintz
pmheintz / getQuote.js
Created Apr 2, 2018
Random quote generator with get new quote and tweet buttons.
View getQuote.js
// Object to hold quotes and authors
var myObj = null;
// Indexes for current quote and new quote so same quote isn't repeated back to back
var randQuote = 0;
var newQuote = 0;
$(document).ready(function() {
// Get a quote
getQuote();
// On click listener on element with id of getQuoteBtn to get a new quote
You can’t perform that action at this time.