diff --git a/css/legacy.css b/css/legacy.css index 74ef903..9cb2e04 100644 --- a/css/legacy.css +++ b/css/legacy.css @@ -158,19 +158,3 @@ body.console-dsi .screen { width: 320px; } -.carousel-buttons { - overflow: hidden; - width: 100%; -} - -.carousel-track { - display: flex; - gap: 10px; - white-space: nowrap; - overflow-x: scroll; - scroll-behavior: auto; -} - -.carousel-track a img { - height: 31px; -} diff --git a/legacy.html b/legacy.html index 4e4511d..c749326 100644 --- a/legacy.html +++ b/legacy.html @@ -58,12 +58,6 @@ height="80%" width="100%"/>

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. We are always looking for more members if you want to join the iniative.

- -
You are visitor number: @@ -73,7 +67,6 @@ - diff --git a/legacy_about.html b/legacy_about.html index 3ce0576..fcb1ac4 100644 --- a/legacy_about.html +++ b/legacy_about.html @@ -1,5 +1,61 @@ - -
-

About

-

This information is only available on the normal version of the website.

-
+(function () { + + function extractAboutHTML(responseText) { + + var temp = document.createElement("div"); + temp.innerHTML = responseText; + + var section = temp.getElementById("aboutSection"); + + if (section) { + return section.innerHTML; + } + + return '

About

' + + '

Failed to load About content.

'; + } + + function loadAbout() { + + var target = document.getElementById("content"); + if (!target) return; + + var xhr = new XMLHttpRequest(); + + xhr.open("GET", "about.html", true); + + xhr.onreadystatechange = function () { + + if (xhr.readyState === 4) { + + if (xhr.status === 200 || xhr.status === 0) { + + target.innerHTML = extractAboutHTML(xhr.responseText); + + } else { + + target.innerHTML = + '

About

' + + '

Could not load about.html

'; + } + } + }; + + try { + xhr.send(null); + } catch (e) { + target.innerHTML = + '

About

' + + '

Error loading page

'; + } + } + + if (window.addEventListener) { + window.addEventListener("load", loadAbout, false); + } else if (window.attachEvent) { + window.attachEvent("onload", loadAbout); + } else { + window.onload = loadAbout; + } + +})();