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 • 559 B
JavaScript
const page1={PAGE_ID:"page1",openInDefaultView:function(){defaultView.clear();const e=defaultView.getContainerBox();page1.box=e,topBar.setVisible(0),bottomBar.setVisible(1),bottomBar.selectItemByIndex(0),bottomBar.setBorderLine(0),defaultView.setTopAndBottomOuterSpaces(0,bottomBar.getHeight()),e.color="transparent",e.scrollY=0,e.webView=UIWebView.create(0,0,e.width,e.height),e.add(that),that.loadHTMLFile("page1.htm"),page1.content=e.webView.getContent(),e.webView.getIframe().onload=function(){page1.content.testFuncInPage1()},defaultView.setVisible(1)}};