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>
@ -94,12 +91,12 @@ I would much rather talk to you via email or Signal instead of using something l
<INPUT type="button" value="infix (algrebraic)" 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>
<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="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');" />
<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,29 +1,30 @@
<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>
<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>
<p>
When it comes to RTF editing, I normally use Microsoft Wordpad on Windows and (prefer it to using) Libreoffice on everything else.
I like RTF because editors handle everything for me - changing the font and indentations and everything is very easy - and because despite its proprietary-ness it's well supported and converts to plaintext relatively easily.
</p>
<p>
When it comes to code, I only use Linux/UNIX/something with a console. I've tried coding in IDEs many times and every time I've been disappointed.
I'm not used to using my mouse when I code and even when I acclimate I still don't like it, though I've never used ACME before and that might change my mind someday.
Lately I've been writing C and Python and when I write both I use "ne", the Nice Editor. It's simple and it uses a lot of common keyboard shortcuts.
I avoid lines of code longer than 79 characters, and I use tabs for indentation with a tab length of 8.
I never use hard word wraps on plaintext if I can catch it and I don't normally use soft word-wrapping in code.
I grew up on Microsoft DOS's EDIT.COM and it's still my go-to editor on DOS.
</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>
<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>
<p>
When it comes to RTF editing, I normally use Microsoft Wordpad on Windows and (prefer it to using) Libreoffice on everything else.
I like RTF because editors handle everything for me - changing the font and indentations and everything is very easy - and because despite its proprietary-ness it's well supported and converts to plaintext relatively easily.
</p>
<p>
When it comes to code, I only use Linux/UNIX/something with a console. I've tried coding in IDEs many times and every time I've been disappointed.
I'm not used to using my mouse when I code and even when I acclimate I still don't like it, though I've never used ACME before and that might change my mind someday.
Lately I've been writing C and Python and when I write both I use "ne", the Nice Editor. It's simple and it uses a lot of common keyboard shortcuts.
I avoid lines of code longer than 79 characters, and I use tabs for indentation with a tab length of 8.
I never use hard word wraps on plaintext if I can catch it and I don't normally use soft word-wrapping in code.
I grew up on Microsoft DOS's EDIT.COM and it's still my go-to editor on DOS.
</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>