From f93e22b37a565b95cc7355636a8b7e4ed3181ad9 Mon Sep 17 00:00:00 2001 From: devenblake Date: Tue, 22 Dec 2020 09:14:05 -0500 Subject: [PATCH] Docs and improvements and test --- homepage/cookies.js | 4 +-- homepage/index.html | 87 +++++++++++++++++++++++---------------------- homepage/quotes.js | 28 +++++++++++++++ 3 files changed, 74 insertions(+), 45 deletions(-) diff --git a/homepage/cookies.js b/homepage/cookies.js index ec3df8e..d8f3014 100644 --- a/homepage/cookies.js +++ b/homepage/cookies.js @@ -1,6 +1,8 @@ /* these code snippets stolen from https://www.w3schools.com/js/js_cookies.asp + + window.setCookie() sets a cookie, window.getCookie() gets a cookie. */ window.setCookie = function(cname, cvalue, exdays) { @@ -21,5 +23,3 @@ window.getCookie = function(cname) { } return ""; }; - -/* end stolen code; */ diff --git a/homepage/index.html b/homepage/index.html index b5aff29..de130ad 100644 --- a/homepage/index.html +++ b/homepage/index.html @@ -5,9 +5,9 @@ - - - + + + (d + (7 - s)) @@ -19,9 +19,9 @@ Use TOR if you're worried. - - - + + + -
+ -

Hi, I'm Deven Blake. I'm just your normal everyday nerd.

translations of my name include:
ديفين بلايك
バレイク デビン (BLAKE Deven)

-

My pronouns are they/them.

-

My political compass co-ordinates are (-8.88, -8.56).

-

Look me up online.

-
+

My pronouns are they/them.

+

My political compass co-ordinates are (-8.88, -8.56).

+

Look me up online.

This website is currently hosted on GitHub and lives in a git repository. See something wack? File an issue. Got something to share? Make a pull request. Please!

-
+

I'm TestOut PC Pro certified (which doesn't mean much, but I earned 2000 of the 2000 possible points on the certification exam). I have a functional knowledge of Python and almost grasp C.

-
+

You can contact me at...

blakedevendesu@gmail.com (preferably)

deven@waifu.club

-
+

Services I'm on include...

1mb.site, blake.1mb.site

@@ -98,59 +97,61 @@ None of these are guaranteed to still be on-line. I would much rather talk to you via email or Signal instead of using something like Facebook or Discord.

-
+

Here's a quote for you:

"Enable JavaScript to see a quote here."

~ Deven Blake

+

Gallery

-

check out my favorite movies

-

here's a video of me waterboarding myself with mountain dew

-

check out a web browser landing page i made

-

here are my opinions on text editing

-

you just lost the game

-

here's my take on the git main thing

-

here's what i'm doing right now

-

have you been to devenzone?

-

here's my "kinlist" i guess

-

here are frequently (and infrequently) asked questions about me

-

here are my high school yearbook entries

+

check out my favorite movies

+

here's a video of me waterboarding myself with mountain dew

+

check out a web browser landing page i made

+

here are my opinions on text editing

+

you just lost the game

+

here's my take on the git main thing

+

here's what i'm doing right now

+

have you been to devenzone?

+

here's my "kinlist" i guess

+

here are frequently (and infrequently) asked questions about me

+

here are my high school yearbook entries

here's my massive bookmarks list

-
+

Control panel

The following inputs use JavaScript to change this page's stylesheet.

- - - + + +

-This input lets you summon an external stylesheet. +Thise 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. Any stylesheet from any on-line source will work. 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.

- - + + +

Here are some cool unsafe external stylesheets if you'd like to live on the edge in comfort.

+

The following button manipulates the site cookie. This setting is the only use of cookies anywhere on this website.

- +

The following buttons use JavaScript to modify the page title.

- - - + + + -
+
-Upcycle Windows 7 +Upcycle Windows 7. -
+

Rants and other unsavory mumblings

here's my rant (not essay) on liberals (from a leftist perspective)

@@ -175,9 +176,9 @@ WIDTH="88px"
diff --git a/homepage/quotes.js b/homepage/quotes.js index b8036c0..68e4d6f 100644 --- a/homepage/quotes.js +++ b/homepage/quotes.js @@ -1,3 +1,24 @@ +/* + + quotes.js + PUBLIC DOMAIN. CODED BY DEVEN BLAKE WITH HELP FROM КАМИ ON DISCORD. + + To use + * add two P elements with the IDs "quote" and "quoteauthor" respectively + * call window.initializequotes() on page load. + * use window.genQuote() to get a new quote. + +*/ + +/* + Will set window.quotes to the list of quotes and window.quote to 0 (to + indicate a quote hasn't yet been generated). + + window.quotes is a list of quotes and each quote is itself a list with + [ quote, author ]. Kinda sucks that it has to load like (what could be) + a huge list every time the page loads but I (like most webdevs) am lazy + and It Works How It Is. +*/ window.initializequotes = function() { window.quotes = [ [ "Yeah, that's just how it is. Just, nothing. So much nothing that it hurts.", @@ -24,6 +45,13 @@ window.initializequotes = function() { window.quote = 0; } +/* + You can pop this in window.onload() to generate the quote on page load + OR make a button with onclick="window.genQuote();" to let the user get + moar quotes. + + Will not give you the same quote twice in a row! +*/ window.genQuote = function() { window.oldquote = window.quote; quoteindex = Math.floor(Math.random() * window.quotes.length);