blob: 6e93955552a44dae39356a051447324e1609fbf5 (
plain)
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 | <!--Copyright (C) 2024 The Qt Company Ltd.SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only--><!doctype html><htmllang="en-us"><head><metacharset="utf-8"><metahttp-equiv="Content-Type"content="text/html; charset=utf-8"><!--Set visual viewport size for mobile devices to the device size, witch results in a scale of 1 and a 1:1 mapping between CSS pixels and Qt device independent pixels. --><metaname="viewport"content="width=device-width, height=device-height, user-scalable=0"/><title>@APPNAME@</title><style> /* Make the html body cover the entire (visual) viewport with no scroll bars. */ html, body { padding: 0; margin: 0; overflow: hidden; height: 100% } #screen { width: 100%; height: 100%; } </style></head><bodyonload="init()"><figurestyle="overflow:visible;"id="qtspinner"><centerstyle="margin-top:1.5em; line-height:150%"><imgsrc="qtlogo.svg"width="320"height="200"style="display:block"></img><strong>Qt for WebAssembly: @APPNAME@</strong><divid="qtstatus"></div><noscript>JavaScript is disabled. Please enable JavaScript to use this application.</noscript></center></figure><divid="screen"></div><scripttype="text/javascript"> async functioninit(){const spinner = document.querySelector('#qtspinner');const screen = document.querySelector('#screen');const status = document.querySelector('#qtstatus');const showUi = (ui) => {[spinner, screen].forEach(element => element.style.display ='none');if(screen === ui) screen.style.position ='default'; ui.style.display ='block';}try{showUi(spinner); status.innerHTML ='Loading...';const instance = await qtLoad({ qt: { onLoaded: () =>showUi(screen), onExit: exitData =>{ status.innerHTML ='Application exit'; status.innerHTML += exitData.code !==undefined?` with code${exitData.code}`:''; status.innerHTML += exitData.text !==undefined?` (${exitData.text})`:'';showUi(spinner);}, entryFunction: window.@APPEXPORTNAME@, containerElements: [screen],@PRELOAD@}});}catch(e) { console.error(e); console.error(e.stack);}}</script><scriptsrc="@APPNAME@.js"></script><scripttype="text/javascript"src="qtloader.js"></script></body></html>
|