various changes
This commit is contained in:
parent
bcb017beaf
commit
5901c347eb
@ -8,7 +8,7 @@
|
|||||||
<META name="author" content="Deven Blake" />
|
<META name="author" content="Deven Blake" />
|
||||||
<META name="description" content="Deven Blake is just your normal everyday nerd." />
|
<META name="description" content="Deven Blake is just your normal everyday nerd." />
|
||||||
<META name="viewport" content="width=device-width, initial-scale=1" />
|
<META name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<TITLE>(d+(7-s))</TITLE>
|
<TITLE>(d + (7 - s))</TITLE>
|
||||||
</HEAD>
|
</HEAD>
|
||||||
<BODY>
|
<BODY>
|
||||||
<HEADER>
|
<HEADER>
|
||||||
@ -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>
|
||||||
@ -209,7 +207,7 @@ Any stylesheet from any on-line source will work.
|
|||||||
<INPUT type="button" value="save theme settings" onclick="window.setCookie('sheet', sheet, 365);" />
|
<INPUT type="button" value="save theme settings" onclick="window.setCookie('sheet', sheet, 365);" />
|
||||||
<P><SMALL>The following buttons use JavaScript to modify the page title.</SMALL></P>
|
<P><SMALL>The following buttons use JavaScript to modify the page title.</SMALL></P>
|
||||||
<INPUT type="button" value="prefix (s-expression)" onclick="document.title='(+ d (- 7 s))';" />
|
<INPUT type="button" value="prefix (s-expression)" onclick="document.title='(+ d (- 7 s))';" />
|
||||||
<INPUT type="button" value="infix (algrebraic)" onclick="document.title='(d+(7-s))';" />
|
<INPUT type="button" value="infix (algrebraic)" onclick="document.title='(d + (7 - s))';" />
|
||||||
<INPUT type="button" value="postfix (rpn)" onclick="document.title='d 7 s - +';" />
|
<INPUT type="button" value="postfix (rpn)" onclick="document.title='d 7 s - +';" />
|
||||||
|
|
||||||
<HR size="1" width="25%" align="left" />
|
<HR size="1" width="25%" align="left" />
|
||||||
|
Loading…
Reference in New Issue
Block a user