Used __builtin_wasm_memory_size(0) instead of having the Javascript code call init_mem with the initial page count. Added a simple <div> below the canvas that can hold any number of labels that can be filled/updated through jsSetLabel which lives in a new file misc_functions.js.

This commit is contained in:
2025-09-02 16:05:53 -07:00
parent f45c2d88e0
commit 04028b29d3
10 changed files with 117 additions and 30 deletions

View File

@@ -7,13 +7,14 @@
</head>
<body>
<div class="main_section">
<p>&#129055 The canvas is below &#129055</p>
<p style="margin-bottom:1px">&#129055 The canvas is below &#129055</p>
<div id="canvas_container">
<canvas>
Your browser does not support the HTML5 canvas tag.
</canvas>
<div id="label_container"> </div>
</div>
<p>&#129053 The canvas is above &#129053</p>
<p style="margin-top:1px">&#129053 The canvas is above &#129053</p>
</div>
<script async type="module" src="main.js" ></script>
</body>