Hopefully this'll help
This commit is contained in:
parent
ecaebc1b2f
commit
c17f40f010
@ -47,6 +47,7 @@ window.genQuote = function() {
|
|||||||
if(window.quote != "") window.quotes.push(window.quote);
|
if(window.quote != "") window.quotes.push(window.quote);
|
||||||
quoteindex = Math.floor(Math.random() * window.quotes.length);
|
quoteindex = Math.floor(Math.random() * window.quotes.length);
|
||||||
window.quote = window.quotes.splice(quoteindex, 1);
|
window.quote = window.quotes.splice(quoteindex, 1);
|
||||||
|
console.log(window.quote);
|
||||||
document.getElementById('getaquote').setAttribute('value', 'Get another free quote today!');
|
document.getElementById('getaquote').setAttribute('value', 'Get another free quote today!');
|
||||||
document.getElementById('quote').textContent = '\"' + window.quote[0] + '\"';
|
document.getElementById('quote').textContent = '\"' + window.quote[0] + '\"';
|
||||||
document.getElementById('quoteauthor').textContent = '~ ' + window.quote[1];
|
document.getElementById('quoteauthor').textContent = '~ ' + window.quote[1];
|
||||||
|
Loading…
Reference in New Issue
Block a user