243 lines
6.6 KiB
HTML
243 lines
6.6 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="http://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 Legacy 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)">Easter Egg</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>
|
|
<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.<br><br>Notice: The legacy browser service is based on the Nintendo DSi browser format. <br> Come and check us out on PC!
|
|
</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 showHome(event) {
|
|
if (event) event.preventDefault();
|
|
|
|
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>
|
|
<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();
|
|
|
|
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;
|
|
}
|
|
|
|
const img = section.querySelector('img[src*="kirby19.gif"]');
|
|
|
|
if (!img) {
|
|
target.innerHTML = section.outerHTML;
|
|
return;
|
|
}
|
|
|
|
const range = document.createRange();
|
|
range.setStartBefore(img);
|
|
range.setEndAfter(section.lastChild);
|
|
|
|
const fragment = range.cloneContents();
|
|
|
|
const wrapper = document.createElement("div");
|
|
wrapper.id = "aboutSection";
|
|
wrapper.appendChild(fragment);
|
|
|
|
target.innerHTML = wrapper.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) {
|
|
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 section = temp.querySelector("#aboutSection");
|
|
|
|
if (!section) {
|
|
target.innerHTML = "<h2>About</h2><p>Missing #aboutSection</p>";
|
|
return;
|
|
}
|
|
|
|
const img = section.querySelector('img[src*="kirby19.gif"]');
|
|
|
|
if (!img) {
|
|
target.innerHTML = section.outerHTML;
|
|
return;
|
|
}
|
|
|
|
const range = document.createRange();
|
|
range.setStartBefore(img);
|
|
range.setEndAfter(section.lastChild);
|
|
|
|
const fragment = range.cloneContents();
|
|
|
|
const wrapper = document.createElement("div");
|
|
wrapper.id = "aboutSection";
|
|
wrapper.appendChild(fragment);
|
|
|
|
target.innerHTML = wrapper.innerHTML;
|
|
})
|
|
.catch(err => {
|
|
console.error(err);
|
|
target.innerHTML = `
|
|
<div class="text-containers-main-bg content-box">
|
|
<h2>About</h2>
|
|
<p>Error loading page</p>
|
|
</div>
|
|
`;
|
|
});
|
|
}
|
|
|
|
function showCode(event) {
|
|
if (event) event.preventDefault();
|
|
|
|
document.getElementById("content").innerHTML = `
|
|
<div class="text-containers-main-bg content-box">
|
|
<center><h2>Easter Egg</h2></center>
|
|
<center><a href="http://cdn.veltron.net/rickroll.gif">click me</a></center>
|
|
</div>
|
|
`;
|
|
}
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|