1
0

various changes

This commit is contained in:
devenblake 2020-12-17 09:33:50 -05:00
parent bcb017beaf
commit 5901c347eb

View File

@ -43,23 +43,17 @@ window.getCookie = function(cname) {
/* end stolen code; */ /* end stolen code; */
window.genQuote = function() { window.onload = function() {
if(window.quote != "") window.quotes.push(window.quote); var sheet = window.getCookie('sheet');
quoteindex = Math.floor(Math.random() * window.quotes.length); if(sheet != '') window.setStyling(sheet);
window.quote = window.quotes.splice(quoteindex, 1); window.quote = "";
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];
}
window.setStyling = function(sheet) { window.setStyling = function(sheet) {
document.getElementById('styling').setAttribute('href', sheet); document.getElementById('styling').setAttribute('href', sheet);
return sheet; return sheet;
}; };
/* QUOTES! */
window.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" ],
@ -76,13 +70,17 @@ window.quotes = [
[ "Special thanks to Ками for their help adding quotes to this page.", [ "Special thanks to Ками for their help adding quotes to this page.",
"Deven Blake" ] "Deven Blake" ]
]; ];
</SCRIPT>
<SCRIPT TYPE="application/javascript"> window.genQuote = function() {
window.onload = function() { if(window.quote != "") window.quotes.push(window.quote);
var sheet = window.getCookie('sheet'); quoteindex = Math.floor(Math.random() * window.quotes.length);
if(sheet != '') window.setStyling(sheet); window.quote = window.quotes.splice(quoteindex, 1);
window.quote = ""; console.log(window.quote);
}; document.getElementById('quote').textContent = '\"' + window.quote[0] + '\"';
document.getElementById('quoteauthor').textContent = '~ ' + window.quote[1];
document.getElementById('getaquote').setAttribute('value', 'Get another free quote today!');
}
</SCRIPT> </SCRIPT>
<TABLE><TR><TD valign="top" width="50%"> <TABLE><TR><TD valign="top" width="50%">
<P>Hi, I'm Deven Blake. I'm just your normal everyday nerd.</P> <P>Hi, I'm Deven Blake. I'm just your normal everyday nerd.</P>