1
0

Hopefully this'll help

This commit is contained in:
devenblake 2020-12-17 08:38:36 -05:00
parent ecaebc1b2f
commit c17f40f010

View File

@ -47,6 +47,7 @@ window.genQuote = function() {
if(window.quote != "") window.quotes.push(window.quote);
quoteindex = Math.floor(Math.random() * window.quotes.length);
window.quote = window.quotes.splice(quoteindex, 1);
console.log(window.quote);
document.getElementById('getaquote').setAttribute('value', 'Get another free quote today!');
document.getElementById('quote').textContent = '\"' + window.quote[0] + '\"';
document.getElementById('quoteauthor').textContent = '~ ' + window.quote[1];