chore: fixes

This commit is contained in:
MattTheTekie 2026-04-23 18:24:47 -04:00
commit 14e2884f10

View file

@ -67,13 +67,14 @@
<center>
<p>
<img
src="images/gifs/kirby19.gif"
class="home-img-1"
align="left"
alt="Kirby holding Hi!! sign"
/>
<p>
<img
src="images/gifs/kirby19.gif"
class="home-img-1"
align="left"
alt="Kirby holding Hi!! sign"
/>
</p>
<p>
Welcome to the Veltron Network!<br>
Our corner of the internet is a unique and inclusive space to explore technology and much more.
We are pioneers in the world of FOSS.
@ -101,32 +102,59 @@ function showHome(event) {
document.getElementById("content").innerHTML = `
<img src="images/digimon_thkh.1200-2533722281.jpg" width="100%" height="80%">
<center>
<p>
<img
src="images/gifs/kirby19.gif"
class="home-img-1"
align="left"
alt="Kirby holding Hi!! sign"
/>
<p>
Welcome to the Veltron Network!<br>
Our corner of the internet is a unique and inclusive space to explore technology and much more.
We are pioneers in the world of FOSS.
</p>
</center>
<center>
<p>
<img
src="images/gifs/kirby19.gif"
class="home-img-1"
align="left"
alt="Kirby holding Hi!! sign"
/>
</p>
<p>
Welcome to the Veltron Network!<br>
Our corner of the internet is a unique and inclusive space to explore technology and much more.
We are pioneers in the world of FOSS.
</p>
</center>
`;
}
function showMembers(event) {
if (event) event.preventDefault();
document.getElementById("content").innerHTML = `
<div class="text-containers-main-bg content-box">
<center><h2>Members</h2></center>
<p>Member list coming soon...</p>
</div>
`;
const target = document.getElementById("content");
target.innerHTML = `<center><h2>Loading Members...</h2></center>`;
fetch("members.html")
.then(res => {
if (!res.ok) throw new Error("Failed to load Members");
return res.text();
})
.then(html => {
const temp = document.createElement("div");
temp.innerHTML = html;
// Your members.html uses #homeSection for member content
const section = temp.querySelector("#homeSection");
if (!section) {
target.innerHTML = "<h2>Members</h2><p>Missing #homeSection</p>";
return;
}
target.innerHTML = section.innerHTML;
})
.catch(err => {
console.error(err);
target.innerHTML = `
<div class="text-containers-main-bg content-box">
<h2>Members</h2>
<p>Error loading page</p>
</div>
`;
});
}
function showAbout(event) {
@ -159,7 +187,6 @@ function showAbout(event) {
return;
}
// Use Range to extract everything from Kirby onward properly
const range = document.createRange();
range.setStartBefore(img);
range.setEndAfter(section.lastChild);