Skip to content

Instantly share code, notes, and snippets.

View pmheintz's full-sized avatar

Paul Heintz pmheintz

View GitHub Profile
@pmheintz
pmheintz / getQuote.js
Created April 2, 2018 22:40
Random quote generator with get new quote and tweet buttons.
// 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