From 05546426868624e55cd619b096101f4899fb79d1 Mon Sep 17 00:00:00 2001 From: Ruthenic Date: Fri, 11 Jun 2021 05:04:38 -0400 Subject: [PATCH] Change header loading from JQuery to normal JS JQuery is dead, long live `document.getElementById().InnerHTML`! --- blog/blog.html | 10 ++++------ blog/entries/afterlife.html | 10 ++++------ blog/entries/printer.html | 10 ++++------ blog/entries/subliminal.html | 10 ++++------ blog/entries/template.html | 10 ++++------ contact.html | 10 ++++------ cool.html | 10 ++++------ footer.js | 11 +++++++++++ index.html | 10 ++++------ info.html | 10 ++++------ projects.html | 10 ++++------ rambles/rambles.html | 10 ++++------ rambles/shifting.html | 10 ++++------ 13 files changed, 59 insertions(+), 72 deletions(-) create mode 100644 footer.js diff --git a/blog/blog.html b/blog/blog.html index c877959..5876c83 100644 --- a/blog/blog.html +++ b/blog/blog.html @@ -5,14 +5,12 @@ - - + +

Blog Posts

So... what happens when we die?

Why are printers terrible?

diff --git a/blog/entries/afterlife.html b/blog/entries/afterlife.html index 590946a..9afaaf7 100644 --- a/blog/entries/afterlife.html +++ b/blog/entries/afterlife.html @@ -5,17 +5,15 @@ - - + +

So... what really happens when we die? Do we just... stop existing? Is our consciousness stuck in a black void with our own thoughts? Is there a Heaven? Hell? Are the people on Dr. Oz just making s**t up?

Well, chances are the last one is true, but will there ever be a scientifically excepted answer, or will the ideas be relegated to supernatural communities?

Or, how about a better question... What do we hope happens in the afterlife? The nice thing about this question is that... it’s human. It is impossible to be answered scientifically, because it’s, no matter how much some groups try to sugarcoat it, an opinion. We will never know what actually happens when Death comes a’knocking, unless we die… and you can’t really come back from death (although, HMU if you have “died” before and are currently living, I can set up an interview.). Yes, I know that technically you can come back from death, but I mean dead dead. No coming back-dead.

diff --git a/blog/entries/printer.html b/blog/entries/printer.html index 819a972..8aaaa08 100644 --- a/blog/entries/printer.html +++ b/blog/entries/printer.html @@ -5,18 +5,16 @@ - - + +

Why are printers so terrible? I mean, is it that hard to make a functional product? I know this has been well walked ground, but any printer I've ever used makes me wanna send my head through a wall!

As an example, just today, just 10 minutes ago even, I had to reconnect a printer to the internet. Simple, right? WRONG!

So to start off with, I went to Canon's website for my printer model to try and find a manual to reconnect it. Issue: I run Linux. None of the manuals are for Linux.

diff --git a/blog/entries/subliminal.html b/blog/entries/subliminal.html index 100df75..b825349 100644 --- a/blog/entries/subliminal.html +++ b/blog/entries/subliminal.html @@ -4,18 +4,16 @@ A Story of Subliminals: Part I - - + +

Hello, and welcome to this "blog post". This is a compilation of all my posts on Discord about subliminals (more specifically, Hazbin Hotel subliminals), with redundant information removed and some slight html improvements added. A part II will eventually come, with the story of me trying subliminals out and seeing if they "work." Until then, enjoy!

The first discussion

ah yes

diff --git a/blog/entries/template.html b/blog/entries/template.html index 953add6..389b8a3 100644 --- a/blog/entries/template.html +++ b/blog/entries/template.html @@ -5,14 +5,12 @@ - - + + diff --git a/contact.html b/contact.html index 9acdb63..3bd7c24 100644 --- a/contact.html +++ b/contact.html @@ -5,14 +5,12 @@ - - + +

You can find me on -

I can't wait to talk to you

You can contact me via the following methods: diff --git a/cool.html b/cool.html index bb1a4a4..545bf5e 100644 --- a/cool.html +++ b/cool.html @@ -4,14 +4,12 @@ Ruthenic's Website - - + +

Cool Things

Think my choices are dumb, and want to add some real ones? Email me at ruthenic@ruthenic.com or open an issue with what you want added (and category), and I will consider adding it

diff --git a/footer.js b/footer.js new file mode 100644 index 0000000..4d437f3 --- /dev/null +++ b/footer.js @@ -0,0 +1,11 @@ +async function getFooter(footerPath) { + if (footerPath === undefined) { + //why the hell does js not have optional parameters for functions? + footerPath = "/footer.html"; + } + console.log("sanity check much?"); + console.log(footerPath) + footer = await fetch(footerPath); + footer = await footer.text(); + document.getElementById("footer").innerHTML = footer; +} diff --git a/index.html b/index.html index d2413dc..73891e3 100644 --- a/index.html +++ b/index.html @@ -4,18 +4,16 @@ Ruthenic's Website - - + +

Ruthenic's site

Hello, welcome to my website! Please Enjoy the experience

Checkout (haha) my Github! diff --git a/info.html b/info.html index 91c3398..0ccbb38 100644 --- a/info.html +++ b/info.html @@ -5,14 +5,12 @@ - - + +

Hey all, Ruthenic here! Currently, specializes in bad Python coding and occasionally does some cool stuff (not very often tho). Working on Rodder. Proud user of Linux.

diff --git a/projects.html b/projects.html index 029efe2..3db6720 100644 --- a/projects.html +++ b/projects.html @@ -5,14 +5,12 @@ - - + +

Rodder - A Distro-agnostic package manager for Linux

word-predictor-js - A webapp to predict words after the given one (source)