1
0

Hopefully works

This commit is contained in:
devenblake 2020-12-13 21:33:36 -05:00
parent 5df9998c03
commit df5406357c

View File

@ -40,6 +40,14 @@ window.getCookie = function(cname) {
} }
return ""; return "";
}; };
window.genQuote = function() {
quotes = window.quotes
quote = Math.floor(Math.random() * quotes.length);
document.getElementById('getaquote').setAttribute('content', 'Get another free quote today!');
document.getElementById('quote').setAttribute('content', '\"' + quotes[quote][0] + '\"');
document.getElementById('quoteauthor').setAttribute('content', '~ ' + quotes[quote][1]);
}
/* end stolen code; */ /* end stolen code; */
window.setStyling = function(sheet) { window.setStyling = function(sheet) {
@ -51,7 +59,7 @@ window.setStyling = function(sheet) {
window.onload = function() { window.onload = function() {
/* QUOTES! */ /* QUOTES! */
var quotes = [ window.quotes = [
[ "Yeah, that's just how it is. Just, nothing. So much nothing that it hurts.", [ "Yeah, that's just how it is. Just, nothing. So much nothing that it hurts.",
"danger/u/ aefd79" ], "danger/u/ aefd79" ],
[ "Reason has always existed, but not always in a reasonable form.", [ "Reason has always existed, but not always in a reasonable form.",
@ -147,15 +155,7 @@ I would much rather talk to you via email or Signal instead of using something l
ID="getaquote" ID="getaquote"
TYPE="BUTTON" TYPE="BUTTON"
VALUE="Get a free quote today!" VALUE="Get a free quote today!"
ONCLICK=" ONCLICK="genQuote();"
quote = Math.floor(Math.random() * quotes.length);
document.getElementById('getaquote').setAttribute('content', 'Get another free quote today!');
document.getElementById('quote').setAttribute('content', '\"' + quotes[quote][0] + '\"');
document.getElementById('quoteauthor').setAttribute('content', '~ ' + quotes[quote][1]);
"
/> />
</TD> </TD>