1
0

Testing site themes

This commit is contained in:
devenblake 2020-10-23 22:37:30 -04:00
parent c4000fc43e
commit 29afd3e7b3
3 changed files with 43 additions and 37 deletions

View File

@ -9,10 +9,7 @@
</HEAD>
<BODY>
<SCRIPT src="/main.js"></SCRIPT>
<SCRIPT>
var sheet = getCookie('sheet');
if(sheet != '') setStyling(sheet);
</SCRIPT>
<SCRIPT>initialize();</SCRIPT>
<TABLE><TR><TD valign="top" width="50%">
<P>Hi, I'm Deven Blake. I'm just your normal everyday nerd.</P>
<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 - +';" />
<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="givemerights" onclick="sheet = setStyling('givemerights.css');" />
<INPUT type="button" value="windowsclassic" onclick="sheet = setStyling('windowsclassic.css');" />
<INPUT type="button" value="givemerights" onclick="sheet = setStyling('/givemerights.css');" />
<INPUT type="button" value="windowsclassic" onclick="sheet = setStyling('/windowsclassic.css');" />
<P><SMALL>
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.
<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>

View File

@ -26,3 +26,11 @@ function setStyling(sheet) {
document.getElementById('styling').setAttribute('href', 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);
}

View File

@ -1,13 +1,14 @@
<html lang="en">
<head>
<title>opinions on text editing</title>
<meta charset="US-ASCII" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="canonical" href="https://blake.instantfloppy.net/textediting" />
</head>
<body>
<p><a href="..">~ Return</a></p>
<h1>My opinions on text editing</h1>
<HTML lang="en">
<HEAD>
<TITLE>opinions on text editing</TITLE>
<META charset="US-ASCII" />
<META name="viewport" content="width=device-width, initial-scale=1" />
<LINK rel="canonical" href="https://blake.instantfloppy.net/textediting" />
</HEAD>
<BODY>
<SCRIPT src="/main.js"></SCRIPT><SCRIPT>initialize();</SCRIPT>
<P><A href="..">~ Return</A></P>
<H1>My opinions on text editing</H1>
<h3>updated 2020-10-10</h3>
<hr size="1" width="25%" align="left" />
<p>I write prose in Rich Text Files (RTF) and everything else in UNIX-formatted plaintext.</p>
@ -25,5 +26,5 @@
</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>
</body>
</html>
</BODY>
</HTML>