little fixes

This commit is contained in:
jusax23 2022-06-09 17:33:54 +02:00
parent bd941dc2fc
commit 8ede4ab206
3 changed files with 8 additions and 7 deletions

View file

@ -1,8 +1,7 @@
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 alert from "../stear/extra/Pages/alert.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";
//import "./waitStyle.js";
export const preRender = true; export const preRender = true;
@ -31,7 +30,7 @@ export const call = async (stear, { find, resolve, render, call }, {name,id}) =>
await wait(1000); await wait(1000);
var success = Math.random()>0.25; var success = Math.random()>0.25;
if(success){ if(success){
await call(alert, { titel: "Connecting", text: "success" }); await call(alert, { text: "success" });
await fadeout(find.main._); await fadeout(find.main._);
return resolve(true); return resolve(true);
}else{ }else{

View file

@ -12,6 +12,7 @@ export class loading1 extends class_{
export const l1 = (color="black") => new loading1(color); export const l1 = (color="black") => new loading1(color);
export default l1;
var animation = Stear.addAnimation({ var animation = Stear.addAnimation({
"0%": { left: "4%", top: "4%" }, "0%": { left: "4%", top: "4%" },

View file

@ -7,6 +7,7 @@ const render = ({ }, {titel,text,callback}) => {
return _({ return _({
find:"main", find:"main",
class:"alert",
style: { style: {
position:"fixed", position:"fixed",
left: "0", left: "0",
@ -24,10 +25,10 @@ const render = ({ }, {titel,text,callback}) => {
paddingTop: "0", paddingTop: "0",
position: "absolute", position: "absolute",
backgroundColor: "#eee", backgroundColor: "#eee",
minHeight:"4rem", minHeight: "4rem",
minWidth:"8rem", minWidth: "8rem",
borderRadius:"1rem", borderRadius: "1rem",
textAlign:"center" textAlign: "center"
} }
}, [ }, [
_({ type: "h2", style: { marginBottom: 0 }}, titel), _({ type: "h2", style: { marginBottom: 0 }}, titel),