Revert "WTf" - broke something and idk how
This reverts commit 8a0933b6ce
.
This commit is contained in:
parent
8a0933b6ce
commit
29febfa35f
@ -47,8 +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); console.log(window.quote[0]; console.log(window.quote[1]);
|
console.log(window.quote);
|
||||||
console.log(window.quote[0][0]);
|
|
||||||
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];
|
||||||
@ -74,10 +73,8 @@ window.quotes = [
|
|||||||
"Darth Vader" ],
|
"Darth Vader" ],
|
||||||
[ "A checklist can aid here.",
|
[ "A checklist can aid here.",
|
||||||
"Lance Leventhal" ],
|
"Lance Leventhal" ],
|
||||||
[ "Special thanks to Ками for their help adding this quote feature to this page.",
|
[ "Special thanks to Ками for their help adding quotes to this page.",
|
||||||
"Deven Blake" ],
|
"Deven Blake" ]
|
||||||
[ "It soothes. It heals. It protects.",
|
|
||||||
"Unknown" ]
|
|
||||||
];
|
];
|
||||||
</SCRIPT>
|
</SCRIPT>
|
||||||
<SCRIPT TYPE="application/javascript">
|
<SCRIPT TYPE="application/javascript">
|
||||||
|
Loading…
Reference in New Issue
Block a user