Skip to content

Commit bded3e3

Browse files
committed
Test pages
1 parent 75f7b14 commit bded3e3

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

web/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

web/demo.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/demo.wasm

110 KB
Binary file not shown.

web/index.html

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
body {
99
margin: 0;
1010
width: 100%;
11-
min-height: 100dvh; /* Fallback for browsers not supporting viewport height */
12-
background-color: black; /* Set background color to black */
11+
min-height: 100dvh;
12+
background-color: black;
1313
}
1414
</style>
1515
</head>
@@ -19,15 +19,13 @@
1919
<canvas width="1024" height="1024" id="canvas"></canvas>
2020
<script>
2121
var Module = {
22-
onRuntimeInitialized: function() {
23-
// This is called when the Emscripten module is ready
22+
// This is called when the Emscripten module is ready
23+
onRuntimeInitialized: () => {
2424
console.log("Emscripten module initialized");
25-
26-
// Hide loading text when canvas is fully loaded
2725
var loadingText = document.querySelector('.load');
2826
loadingText.style.display = 'none';
2927
},
30-
canvas: (function() {
28+
canvas: (() => {
3129
var canvas = document.getElementById('canvas');
3230
canvas.addEventListener("webglcontextlost", function(e) {
3331
alert('WebGL context lost. Reload the page.');

0 commit comments

Comments
 (0)