更新文件
parent
868d826a6a
commit
5fd385db20
|
@ -1,5 +1,5 @@
|
|||
<!doctype html>
|
||||
<html lang="en-us">
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
|
@ -25,9 +25,9 @@
|
|||
<figure style="overflow:visible;" id="qtspinner">
|
||||
<center style="margin-top:1.5em; line-height:150%">
|
||||
<img src="qtlogo.svg" width="320" height="200" style="display:block"></img>
|
||||
<strong>Qt for WebAssembly: examples</strong>
|
||||
<strong>Qt自定义控件大全 V2021 (QQ:517216493 WX: feiyangqingyun)</strong>
|
||||
<div id="qtstatus"></div>
|
||||
<noscript>JavaScript is disabled. Please enable JavaScript to use this application.</noscript>
|
||||
<noscript>JavaScript不可用</noscript>
|
||||
</center>
|
||||
</figure>
|
||||
<canvas id="qtcanvas" oncontextmenu="event.preventDefault()" contenteditable="true"></canvas>
|
||||
|
|
|
@ -265,7 +265,7 @@ function QtLoader(config)
|
|||
|
||||
function fetchThenCompileWasm(response) {
|
||||
return response.arrayBuffer().then(function(data) {
|
||||
self.loaderSubState = "Compiling";
|
||||
self.loaderSubState = "正在编译";
|
||||
setStatus("Loading") // trigger loaderSubState udpate
|
||||
return WebAssembly.compile(data);
|
||||
});
|
||||
|
@ -274,7 +274,7 @@ function QtLoader(config)
|
|||
function fetchCompileWasm(filePath) {
|
||||
return fetchResource(filePath).then(function(response) {
|
||||
if (typeof WebAssembly.compileStreaming !== "undefined") {
|
||||
self.loaderSubState = "Downloading/Compiling";
|
||||
self.loaderSubState = "下载/编译";
|
||||
setStatus("Loading");
|
||||
return WebAssembly.compileStreaming(response).catch(function(error) {
|
||||
// compileStreaming may/will fail if the server does not set the correct
|
||||
|
@ -312,7 +312,7 @@ function QtLoader(config)
|
|||
// Continue waiting if loadEmscriptenModule() is called again
|
||||
if (publicAPI.status == "Loading")
|
||||
return;
|
||||
self.loaderSubState = "Downloading";
|
||||
self.loaderSubState = "正在下载";
|
||||
setStatus("Loading");
|
||||
|
||||
// Fetch emscripten generated javascript runtime
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 296 KiB |
Loading…
Reference in New Issue