UNPKG

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 665 B
const launchView={create:function(t={}){setDefaultContainerBox(page);const e=createBox();launchView.box=e,e.width=page.width,e.height=page.height,e.border=0,e.color=t.backgroundColor,e.setMotion("opacity 0.2s"),e.left=0,e.top=0,e.imgLogo=createImage(),e.add(that),that.width=50,that.height=50,that.load("assets/launch-view/logo.png"),that.opacity=1,that.onLoad((function(t){t.center()})),restoreDefaultContainerBox()},showOnSafeArea:function(){page.element.appendChild(launchView.box.element)},remove:function(t=0){setTimeout((function(){launchView.box.withMotion((function(){launchView.box.opacity=0})),setTimeout((function(){launchView.box.remove()}),250)}),t)}};