web2app-spa
Version:
This template is primarily designed to easily convert HTML pages and URLs into a Capacitor/Cordova based iOS/Android app that can be used as Single-page application (SPA).
1 lines • 745 B
JavaScript
;const WaitingView=function(t={}){const o=createBox(),i={border:0,color:"transparent",opacity:0,visible:0,width:o.containerBox.width,height:o.containerBox.height,waitingIconFile:"components/ui-waiting-view/clock.png",coverBackgroundColor:"rgba(0, 0, 0, 0.4)"};return o.props(i,t),o.show=function(){o.visible=1,o.withMotion((function(t){o.opacity=1}))},o.hide=function(){o.withMotion((function(t){o.opacity=0})),setTimeout((function(){o.visible=0}),250)},o.setMotion("opacity 0.2s"),o.boxCover=createBox(0,0,o.width,o.height),o.add(that),that.color=o.coverBackgroundColor,o.imgLogo=createImage(),o.add(that),that.width=50,that.height=50,that.load(o.waitingIconFile),that.opacity=1,that.center(),o.left=0,o.top=0,makeBasicObject(o),o};