little fixes
This commit is contained in:
parent
bd941dc2fc
commit
8ede4ab206
3 changed files with 8 additions and 7 deletions
|
@ -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{
|
||||||
|
|
|
@ -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%" },
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue