VELTRON.NET/legacy_about.html
2026-04-23 17:58:24 -04:00

50 lines
1 KiB
HTML

<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8">
<title>About - Legacy Veltron</title>
<link rel="stylesheet" href="css/legacy.css">
</head>
<body>
<div id="content" class="text-containers-main-bg content-box">
<center><h2>Loading...</h2></center>
</div>
</main>
</div>
<!-- JS LOADER -->
<script>
window.addEventListener("load", () => {
const target = document.getElementById("content");
console.log("target:", target);
if (!target) return;
fetch("/about.html")
.then(res => {
console.log("status:", res.status);
return res.text();
})
.then(html => {
const temp = document.createElement("div");
temp.innerHTML = html;
const section = temp.querySelector("#aboutSection");
target.innerHTML = section
? section.innerHTML
: "<h2>About</h2><p>Failed to load content</p>";
})
.catch(err => {
console.error(err);
target.innerHTML = "<h2>About</h2><p>Error loading page</p>";
});
});
</script>
</body>
</html>