Testing site themes
This commit is contained in:
parent
c4000fc43e
commit
29afd3e7b3
@ -9,10 +9,7 @@
|
|||||||
</HEAD>
|
</HEAD>
|
||||||
<BODY>
|
<BODY>
|
||||||
<SCRIPT src="/main.js"></SCRIPT>
|
<SCRIPT src="/main.js"></SCRIPT>
|
||||||
<SCRIPT>
|
<SCRIPT>initialize();</SCRIPT>
|
||||||
var sheet = getCookie('sheet');
|
|
||||||
if(sheet != '') setStyling(sheet);
|
|
||||||
</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>
|
||||||
<P><SMALL>
|
<P><SMALL>
|
||||||
@ -95,11 +92,11 @@ I would much rather talk to you via email or Signal instead of using something l
|
|||||||
<INPUT type="button" value="postfix (rpn)" onclick="document.title='d 7 s - +';" />
|
<INPUT type="button" value="postfix (rpn)" onclick="document.title='d 7 s - +';" />
|
||||||
<P><SMALL>The following inputs use JavaScript to change this page's stylesheet.</SMALL></P>
|
<P><SMALL>The following inputs use JavaScript to change this page's stylesheet.</SMALL></P>
|
||||||
<INPUT type="button" value="notheme" onclick="document.getElementById('styling').setAttribute('href', ''); sheet='';" />
|
<INPUT type="button" value="notheme" onclick="document.getElementById('styling').setAttribute('href', ''); sheet='';" />
|
||||||
<INPUT type="button" value="givemerights" onclick="sheet = setStyling('givemerights.css');" />
|
<INPUT type="button" value="givemerights" onclick="sheet = setStyling('/givemerights.css');" />
|
||||||
<INPUT type="button" value="windowsclassic" onclick="sheet = setStyling('windowsclassic.css');" />
|
<INPUT type="button" value="windowsclassic" onclick="sheet = setStyling('/windowsclassic.css');" />
|
||||||
<P><SMALL>
|
<P><SMALL>
|
||||||
This input lets you summon an external stylesheet.
|
This input lets you summon an external stylesheet.
|
||||||
For instance, you can enter in "windowsclassic.css" to manually use that theme rather than pushing a button.
|
For instance, you can enter in "/windowsclassic.css" to manually use that theme rather than pushing a button.
|
||||||
Any stylesheet from any on-line source will work.
|
Any stylesheet from any on-line source will work.
|
||||||
<B>Be careful because there's surely someone out there that will inject a virus into a stylesheet and get some poor sap to plug that in here.</B>
|
<B>Be careful because there's surely someone out there that will inject a virus into a stylesheet and get some poor sap to plug that in here.</B>
|
||||||
</SMALL></P>
|
</SMALL></P>
|
||||||
|
@ -26,3 +26,11 @@ function setStyling(sheet) {
|
|||||||
document.getElementById('styling').setAttribute('href', sheet);
|
document.getElementById('styling').setAttribute('href', sheet);
|
||||||
return sheet;
|
return sheet;
|
||||||
}
|
}
|
||||||
|
function initialize(void) {
|
||||||
|
/*
|
||||||
|
this can be local because the page that changes this (index.html) won't read it
|
||||||
|
if `sheet` needs to be read on a page copy this verbatim rather than using the function
|
||||||
|
*/
|
||||||
|
var sheet = getCookie('sheet');
|
||||||
|
if(sheet != '') setStyling(sheet);
|
||||||
|
}
|
@ -1,13 +1,14 @@
|
|||||||
<html lang="en">
|
<HTML lang="en">
|
||||||
<head>
|
<HEAD>
|
||||||
<title>opinions on text editing</title>
|
<TITLE>opinions on text editing</TITLE>
|
||||||
<meta charset="US-ASCII" />
|
<META charset="US-ASCII" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<META name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<link rel="canonical" href="https://blake.instantfloppy.net/textediting" />
|
<LINK rel="canonical" href="https://blake.instantfloppy.net/textediting" />
|
||||||
</head>
|
</HEAD>
|
||||||
<body>
|
<BODY>
|
||||||
<p><a href="..">~ Return</a></p>
|
<SCRIPT src="/main.js"></SCRIPT><SCRIPT>initialize();</SCRIPT>
|
||||||
<h1>My opinions on text editing</h1>
|
<P><A href="..">~ Return</A></P>
|
||||||
|
<H1>My opinions on text editing</H1>
|
||||||
<h3>updated 2020-10-10</h3>
|
<h3>updated 2020-10-10</h3>
|
||||||
<hr size="1" width="25%" align="left" />
|
<hr size="1" width="25%" align="left" />
|
||||||
<p>I write prose in Rich Text Files (RTF) and everything else in UNIX-formatted plaintext.</p>
|
<p>I write prose in Rich Text Files (RTF) and everything else in UNIX-formatted plaintext.</p>
|
||||||
@ -25,5 +26,5 @@
|
|||||||
</p>
|
</p>
|
||||||
<p>My preferred encoding is UTF-8. I don't like Unicode because I disagree with how emoji are being added. I have an ASCII chart on my wall.</p>
|
<p>My preferred encoding is UTF-8. I don't like Unicode because I disagree with how emoji are being added. I have an ASCII chart on my wall.</p>
|
||||||
<p>When I use stock systems I use nano until I install ne. I'm not yet sure how to use ed.</p>
|
<p>When I use stock systems I use nano until I install ne. I'm not yet sure how to use ed.</p>
|
||||||
</body>
|
</BODY>
|
||||||
</html>
|
</HTML>
|
||||||
|
Loading…
Reference in New Issue
Block a user