From 1a1c8af250d3f52f3e7314f812e83d6ac6415021 Mon Sep 17 00:00:00 2001 From: jusax23 Date: Thu, 9 Jun 2022 22:11:29 +0200 Subject: [PATCH] little changes --- README.md | 3 +-- example/connect.js | 4 ---- stear/extra/Pages/showStatus.js | 24 ------------------------ 3 files changed, 1 insertion(+), 30 deletions(-) diff --git a/README.md b/README.md index f12c479..1ae4f4c 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,7 @@ # Stear -# Stear ## 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 Download the stear Directory and add it to your Project. diff --git a/example/connect.js b/example/connect.js index 10a19f0..8c1237d 100644 --- a/example/connect.js +++ b/example/connect.js @@ -1,5 +1,4 @@ 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 { _ } from "../stear/main.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 await wait(1000); if (Math.random() > 0.25){ - - /*await call(alert, { text: "success" });*/ 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" }); - /*await call(alert, { text: "error" });*/ await fadeout(find.main._); return resolve(false); } diff --git a/stear/extra/Pages/showStatus.js b/stear/extra/Pages/showStatus.js index 1ae6038..2512b99 100644 --- a/stear/extra/Pages/showStatus.js +++ b/stear/extra/Pages/showStatus.js @@ -80,30 +80,6 @@ const call = async (stear, { find, resolve, render, call }, { text, color="grey" 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({