various changes
This commit is contained in:
parent
bcb017beaf
commit
5901c347eb
@ -43,23 +43,17 @@ window.getCookie = function(cname) {
|
||||
|
||||
/* end stolen code; */
|
||||
|
||||
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];
|
||||
}
|
||||
window.onload = function() {
|
||||
var sheet = window.getCookie('sheet');
|
||||
if(sheet != '') window.setStyling(sheet);
|
||||
window.quote = "";
|
||||
};
|
||||
|
||||
window.setStyling = function(sheet) {
|
||||
document.getElementById('styling').setAttribute('href', sheet);
|
||||
return sheet;
|
||||
};
|
||||
|
||||
/* QUOTES! */
|
||||
|
||||
window.quotes = [
|
||||
[ "Yeah, that's just how it is. Just, nothing. So much nothing that it hurts.",
|
||||
"danger/u/ aefd79" ],
|
||||
@ -76,13 +70,17 @@ window.quotes = [
|
||||
[ "Special thanks to Ками for their help adding quotes to this page.",
|
||||
"Deven Blake" ]
|
||||
];
|
||||
</SCRIPT>
|
||||
<SCRIPT TYPE="application/javascript">
|
||||
window.onload = function() {
|
||||
var sheet = window.getCookie('sheet');
|
||||
if(sheet != '') window.setStyling(sheet);
|
||||
window.quote = "";
|
||||
};
|
||||
|
||||
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('quote').textContent = '\"' + window.quote[0] + '\"';
|
||||
document.getElementById('quoteauthor').textContent = '~ ' + window.quote[1];
|
||||
document.getElementById('getaquote').setAttribute('value', 'Get another free quote today!');
|
||||
}
|
||||
|
||||
</SCRIPT>
|
||||
<TABLE><TR><TD valign="top" width="50%">
|
||||
<P>Hi, I'm Deven Blake. I'm just your normal everyday nerd.</P>
|
||||
|
Loading…
Reference in New Issue
Block a user