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

View file

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

View file

@ -7,6 +7,7 @@ const render = ({ }, {titel,text,callback}) => {
return _({
find:"main",
class:"alert",
style: {
position:"fixed",
left: "0",