diff --git a/legacy.html b/legacy.html index 13ad898..8e40ba6 100644 --- a/legacy.html +++ b/legacy.html @@ -147,16 +147,30 @@ function showAbout(event) { const section = temp.querySelector("#aboutSection"); - if (section) { - // KEEP the entire section, including "Welcome to The About Us Area." + if (!section) { + target.innerHTML = "

About

Missing #aboutSection

"; + return; + } + + // Find the element that contains kirby19.gif + const startEl = section.querySelector('img[src*="kirby19.gif"]'); + + if (startEl) { + // Remove everything BEFORE the Kirby image + let current = section.firstChild; + + while (current && current !== startEl) { + const next = current.nextSibling; + current.remove(); + current = next; + } + + // Now render from Kirby onward target.innerHTML = section.outerHTML; + } else { - target.innerHTML = ` -
-

About

-

Missing #aboutSection in about.html

-
- `; + // fallback: if image not found, show full section + target.innerHTML = section.outerHTML; } }) .catch(err => {