Skip to content

Commit 1f9bc86

Browse files
Mise à jour du Site alpha-2
1 parent 5184c1e commit 1f9bc86

15 files changed

+776
-0
lines changed
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<!doctype html>
2+
<html lang="en-us">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6+
7+
<!--Set visual viewport size for mobile devices to the device size,
8+
witch results in a scale of 1 and a 1:1 mapping between CSS pixels
9+
and Qt device independent pixels. -->
10+
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=0"/>
11+
12+
<title>OpenCreatorsWebSite</title>
13+
<style>
14+
/* Make the html body cover the entire (visual) viewport with no scroll bars. */
15+
html, body { padding: 0; margin: 0; overflow:hidden; height: 100% }
16+
/* the canvas *must not* have any border or padding, or mouse coords will be wrong */
17+
canvas { border: 0px none; background-color: white; height:100%; width:100%; }
18+
/* The contenteditable property is set to true for the canvas in order to support
19+
clipboard events. Hide the resulting focus frame and set the cursor back to
20+
the default cursor. */
21+
canvas { outline: 0px solid transparent; caret-color: transparent; cursor:default }
22+
</style>
23+
</head>
24+
<body onload="init()">
25+
<figure style="overflow:visible;" id="qtspinner">
26+
<center style="margin-top:1.5em; line-height:150%">
27+
<img src="qtlogo.svg" width="320" height="200" style="display:block"></img>
28+
<strong>Qt for WebAssembly: OpenCreatorsWebSite</strong>
29+
<div id="qtstatus"></div>
30+
<noscript>JavaScript is disabled. Please enable JavaScript to use this application.</noscript>
31+
</center>
32+
</figure>
33+
<canvas id="qtcanvas" oncontextmenu="event.preventDefault()" contenteditable="true"></canvas>
34+
35+
<script type='text/javascript'>
36+
function init() {
37+
var spinner = document.querySelector('#qtspinner');
38+
var canvas = document.querySelector('#qtcanvas');
39+
var status = document.querySelector('#qtstatus')
40+
41+
var qtLoader = QtLoader({
42+
canvasElements : [canvas],
43+
showLoader: function(loaderStatus) {
44+
spinner.style.display = 'block';
45+
canvas.style.display = 'none';
46+
status.innerHTML = loaderStatus + "...";
47+
},
48+
showError: function(errorText) {
49+
status.innerHTML = errorText;
50+
spinner.style.display = 'block';
51+
canvas.style.display = 'none';
52+
},
53+
showExit: function() {
54+
status.innerHTML = "Application exit";
55+
if (qtLoader.exitCode !== undefined)
56+
status.innerHTML += " with code " + qtLoader.exitCode;
57+
if (qtLoader.exitText !== undefined)
58+
status.innerHTML += " (" + qtLoader.exitText + ")";
59+
spinner.style.display = 'block';
60+
canvas.style.display = 'none';
61+
},
62+
showCanvas: function() {
63+
spinner.style.display = 'none';
64+
canvas.style.display = 'block';
65+
},
66+
});
67+
qtLoader.loadEmscriptenModule("OpenCreatorsWebSite");
68+
}
69+
</script>
70+
<script type="text/javascript" src="qtloader.js"></script>
71+
</body>
72+
</html>

OpenCreators/OpenCreatorsWebSite.js

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
12.4 MB
Binary file not shown.

OpenCreators/download.obj

5.44 KB
Binary file not shown.

OpenCreators/exit.obj

3.74 KB
Binary file not shown.

OpenCreators/main.obj

2.17 KB
Binary file not shown.

OpenCreators/moc_download.obj

6.47 KB
Binary file not shown.

OpenCreators/moc_exit.obj

5.86 KB
Binary file not shown.

OpenCreators/moc_opencreators.obj

10.4 KB
Binary file not shown.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
download.obj
2+
exit.obj
3+
main.obj
4+
opencreators.obj
5+
opencreatorswebsite.js_plugin_import.obj
6+
qrc_qmake_qmake_qm_files.obj
7+
moc_download.obj
8+
moc_exit.obj
9+
moc_opencreators.obj
10+
C:/Qt/6.3.0/wasm_32/plugins/platforms/libqwasm.a
11+
C:/Qt/6.3.0/wasm_32/lib/objects-Release/QWasmIntegrationPlugin_resources_1/.rcc/qrc_wasmfonts.cpp.o
12+
C:/Qt/6.3.0/wasm_32/lib/objects-Release/Gui_resources_1/.rcc/qrc_qpdf.cpp.o
13+
C:/Qt/6.3.0/wasm_32/lib/libQt6OpenGL.a
14+
C:/Qt/6.3.0/wasm_32/plugins/iconengines/libqsvgicon.a
15+
C:/Qt/6.3.0/wasm_32/plugins/imageformats/libqgif.a
16+
C:/Qt/6.3.0/wasm_32/plugins/imageformats/libqicns.a
17+
C:/Qt/6.3.0/wasm_32/plugins/imageformats/libqico.a
18+
C:/Qt/6.3.0/wasm_32/plugins/imageformats/libqjpeg.a
19+
C:/Qt/6.3.0/wasm_32/lib/libQt6BundledLibjpeg.a
20+
C:/Qt/6.3.0/wasm_32/plugins/imageformats/libqsvg.a
21+
C:/Qt/6.3.0/wasm_32/lib/libQt6Svg.a
22+
C:/Qt/6.3.0/wasm_32/plugins/imageformats/libqtga.a
23+
C:/Qt/6.3.0/wasm_32/plugins/imageformats/libqtiff.a
24+
C:/Qt/6.3.0/wasm_32/plugins/imageformats/libqwbmp.a
25+
C:/Qt/6.3.0/wasm_32/plugins/imageformats/libqwebp.a
26+
C:/Qt/6.3.0/wasm_32/lib/libQt6Widgets.a
27+
C:/Qt/6.3.0/wasm_32/lib/objects-Release/Widgets_resources_1/.rcc/qrc_qstyle.cpp.o
28+
C:/Qt/6.3.0/wasm_32/lib/objects-Release/Widgets_resources_2/.rcc/qrc_qstyle1.cpp.o
29+
C:/Qt/6.3.0/wasm_32/lib/objects-Release/Widgets_resources_3/.rcc/qrc_qmessagebox.cpp.o
30+
C:/Qt/6.3.0/wasm_32/lib/libQt6Gui.a
31+
C:/Qt/6.3.0/wasm_32/lib/libQt6BundledHarfbuzz.a
32+
C:/Qt/6.3.0/wasm_32/lib/libQt6BundledFreetype.a
33+
C:/Qt/6.3.0/wasm_32/lib/libQt6BundledLibpng.a
34+
C:/Qt/6.3.0/wasm_32/lib/libQt6Core.a
35+
C:/Qt/6.3.0/wasm_32/lib/libQt6BundledPcre2.a

0 commit comments

Comments
 (0)