diff --git a/legacy.html b/legacy.html index 6fe259f..c7af77a 100644 --- a/legacy.html +++ b/legacy.html @@ -67,13 +67,14 @@

- Kirby holding Hi!! sign -

+ Kirby holding Hi!! sign +

+

Welcome to the Veltron Network!
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 = ` -

-

- Kirby holding Hi!! sign -

- Welcome to the Veltron Network!
- 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. -

-
+
+

+ Kirby holding Hi!! sign +

+

+ Welcome to the Veltron Network!
+ 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. +

+
`; } function showMembers(event) { if (event) event.preventDefault(); - document.getElementById("content").innerHTML = ` -
-

Members

-

Member list coming soon...

-
- `; + const target = document.getElementById("content"); + + target.innerHTML = `

Loading Members...

`; + + 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 = "

Members

Missing #homeSection

"; + return; + } + + target.innerHTML = section.innerHTML; + }) + .catch(err => { + console.error(err); + target.innerHTML = ` +
+

Members

+

Error loading page

+
+ `; + }); } 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);