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 485 B
"use strict";const UIWebView={create:function(e=-1e3,t=-1e3,n=250,r=250){const c=createBox(e,t,n,r);c.color="transparent",c.clickable=1,c.border=0;const i=document.createElement("iframe");return c.element.appendChild(i),c.onResize((function(e){i.setAttribute("width",e.width+"px"),i.setAttribute("height",e.height+"px"),i.style.border="none"})),c.loadHTMLFile=function(e){i.src=e},c.getContent=function(){return i.contentWindow},c.getIframe=function(){return i},makeBasicObject(c),c}};