little changes

This commit is contained in:
jusax23 2022-06-09 22:11:29 +02:00
parent bfba6f3f16
commit 1a1c8af250
3 changed files with 1 additions and 30 deletions

View file

@ -1,8 +1,7 @@
# Stear # Stear
# Stear
## Introduction ## Introduction
A simple Framework. Its more a try to get a WindowManger and getting rid of self written HTML and CSS A simple Framework. Its more a try to get a WindowManger and getting rid of self written HTML and CSS
## Getting started ## Getting started
Download the stear Directory and add it to your Project. Download the stear Directory and add it to your Project.

View file

@ -1,5 +1,4 @@
import l1 from "../stear/extra/Elements/loading1.js"; import l1 from "../stear/extra/Elements/loading1.js";
import alert from "../stear/extra/Pages/alert.js";
import showStatus from "../stear/extra/Pages/showStatus.js"; import showStatus from "../stear/extra/Pages/showStatus.js";
import { _ } from "../stear/main.js"; import { _ } from "../stear/main.js";
import { fadein, fadeout, wait } from "../stear/utils.js"; import { fadein, fadeout, wait } from "../stear/utils.js";
@ -30,8 +29,6 @@ export const call = async (stear, { find, resolve, render, call }, {name,id}) =>
//do connection //do connection
await wait(1000); await wait(1000);
if (Math.random() > 0.25){ if (Math.random() > 0.25){
/*await call(alert, { text: "success" });*/
call(showStatus, { text: "Connected" }); call(showStatus, { text: "Connected" });
@ -41,7 +38,6 @@ export const call = async (stear, { find, resolve, render, call }, {name,id}) =>
call(showStatus, { text: "Error while Connecting to: "+name, color:"red" }); call(showStatus, { text: "Error while Connecting to: "+name, color:"red" });
/*await call(alert, { text: "error" });*/
await fadeout(find.main._); await fadeout(find.main._);
return resolve(false); return resolve(false);
} }

View file

@ -80,30 +80,6 @@ const call = async (stear, { find, resolve, render, call }, { text, color="grey"
last.resolve(); last.resolve();
} }
/* while (true) {
await wait(3000);
last = next;
next = statusList.shift();
if (next == null) break;
last.resolve(null,false);
find.main.settings = {style:{backgroundColor: "#555"}};
await wait(200);
find.main.settings = {style:{
backgroundColor: "",
border: "2px solid " + next.color
}};
find.main._.innerText = next.text;
}*/
/*statusActive = false;
await fadeout(find.main._);
last.resolve();*/
//fadein(find.main._, 200, true);
} }
export default new SFrame({ export default new SFrame({