Created Landing Page, Revamped account system, added account sessions and password obfuscation(not being pushed to the public branch) revamping main site bit by bit
This commit is contained in:
@@ -5,13 +5,13 @@ class AppWindow{
|
||||
WindowElement;
|
||||
TaskbarApp;
|
||||
DesktopApp;
|
||||
|
||||
constructor(IdIn, Source, Title, X, Y) {
|
||||
this.Title = Title;
|
||||
this.ID = IdIn;
|
||||
this.DesktopApp = Source.cloneNode(true);
|
||||
this.GenerateTaskBarApp()
|
||||
this.GenerateWindow(this);
|
||||
if(Source.classList.contains("Fullscreen"))this.GenerateWindow(this,true);
|
||||
else this.GenerateWindow(this,false);
|
||||
//setTimeout(this.InitWin(this), 1000)
|
||||
var checkExist = setInterval( function(Element){
|
||||
//console.log("Interval")
|
||||
@@ -37,7 +37,7 @@ class AppWindow{
|
||||
taskbar.appendChild(this.TaskbarApp);
|
||||
}
|
||||
|
||||
GenerateWindow(self){
|
||||
GenerateWindow(self, FullscreenAble){
|
||||
var NewAppBody = new XMLHttpRequest();
|
||||
NewAppBody.open('GET', Page + "Apps/" + self.Title + '.html', true);
|
||||
NewAppBody.onreadystatechange = function () {
|
||||
@@ -45,7 +45,8 @@ class AppWindow{
|
||||
if (NewAppBody.status !== 200) return;
|
||||
self.WindowContent = NewAppBody.responseText;
|
||||
var NewAppLoaded = new XMLHttpRequest();
|
||||
NewAppLoaded.open('GET', "AppAssets/App.html", true);
|
||||
if(FullscreenAble) NewAppLoaded.open('GET', "AppAssets/AppFullscreen.html", true);
|
||||
else NewAppLoaded.open('GET', "AppAssets/App.html", true);
|
||||
NewAppLoaded.onreadystatechange = function () {
|
||||
if (NewAppLoaded.readyState !== 4) return;
|
||||
if (NewAppLoaded.status !== 200) return;
|
||||
@@ -54,9 +55,14 @@ class AppWindow{
|
||||
self.Window = self.Window.replace("{x}", self.DesktopApp.classList[3]);
|
||||
self.Window = self.Window.replace("{y}", self.DesktopApp.classList[4]);
|
||||
self.Window = self.Window.replace("{ApplicationName}", self.Title + "Name");
|
||||
self.Window = self.Window.replace("Application", self.Title);
|
||||
self.Window = self.Window.replace("Application", self.Title.replace(/([A-Z])/g, ' $1').trim());
|
||||
self.Window = self.Window.replace("{WindowIconImage}", self.DesktopApp.children[0].src);
|
||||
self.Window = self.Window.replace("{body}", self.WindowContent);
|
||||
if(FullscreenAble){
|
||||
var URL = self.WindowContent.split('src="')[1];
|
||||
var newURL = URL.split('"')[0];
|
||||
self.Window = self.Window.replace("{FullScreenLocation}", newURL + (!newURL.includes("http") ? "?fullscreen=true&desktop=true" : "?from=halbearnet"));
|
||||
}
|
||||
document.getElementById("AppContainer").insertAdjacentHTML("beforeend",self.Window);
|
||||
};
|
||||
NewAppLoaded.send();
|
||||
|
||||
Reference in New Issue
Block a user