VELTRON.NET/legacy.html
2026-04-23 18:13:16 -04:00

141 lines
3.8 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta property="og:type" content="summary">
<meta property="og:site_name" content="MattTheTekie presents">
<meta property="og:title" content="The Veltron Network">
<meta property="og:description" content="The Veltron Network is a worldwide technology community.">
<meta property="og:image" content="images/favicon/banner.png">
<meta property="og:image:alt" content="Veltron Network">
<meta property="og:url" content="http://www.veltron.net/">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta property="author" content="MattTheTekie + Veltron">
<title>Home - Veltron Network</title>
<link rel="stylesheet" href="css/legacy.css">
<link rel="icon" type="image/png" href="images/favicon/banner.png">
<link rel="apple-touch-icon" sizes="180x180" href="images/favicon/banner.png">
<meta name="apple-mobile-web-app-title" content="VELTRON">
<link rel="canonical" href="index.html">
</head>
<body class="console-3ds">
<div id="console">
<!-- TOP SCREEN -->
<div class="screen top-screen">
<div id="header">
<h1>
<img src="https://www.veltron.net/images/site-banner.png" width="100%" height="100%">
</h1>
</div>
</div>
<!-- HINGE -->
<div class="hinge"></div>
<!-- BOTTOM SCREEN -->
<div class="screen bottom-screen">
<!-- NAV -->
<div class="nav-categories">
<span>Veltron Portal</span>
<div class="nav-grid">
<a href="#" onclick="showHome(event)">Home</a>
<a href="#" onclick="showMembers(event)">Members</a>
<a href="#" onclick="showAbout(event)">About</a>
<a href="#" onclick="showCode(event)">Code</a>
</div>
</div>
<!-- CONTENT -->
<div id="content" class="text-containers-main-bg content-box">
<img
src="images/digimon_thkh.1200-2533722281.jpg"
alt="Welcome image"
height="80%"
width="100%"
/>
<center>
<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>
</div>
<!-- COUNTER -->
<center>
<span>You are visitor number:</span>
<span id="visitorCounter"></span>
</center>
</div>
</div>
<script src="javascript/view-counter.js"></script>
<!-- PAGE SYSTEM -->
<script>
function showAbout(event) {
if (event) event.preventDefault();
const target = document.getElementById("content");
target.innerHTML = `<center><h2>Loading About...</h2></center>`;
fetch("about.html")
.then(res => {
if (!res.ok) throw new Error("Failed to load About");
return res.text();
})
.then(html => {
const temp = document.createElement("div");
temp.innerHTML = html;
const article = temp.querySelector("article.home-text.text-containers-secondary-bg");
if (!article) {
target.innerHTML = "<h2>About</h2><p>Missing article.home-text.text-containers-secondary-bg in about.html</p>";
return;
}
// Convert children so we can get everything after the article
const children = Array.from(temp.children);
const index = children.indexOf(article);
let afterArticle = "";
if (index !== -1) {
afterArticle = children
.slice(index + 1)
.map(el => el.outerHTML)
.join("");
}
target.innerHTML = `
${article.outerHTML}
${afterArticle}
`;
})
.catch(err => {
console.error(err);
target.innerHTML = "<h2>About</h2><p>Error loading page</p>";
});
}
</script>
</body>
</html>