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:
@@ -7,13 +7,14 @@
|
||||
</head>
|
||||
<body>
|
||||
<div class="main_section">
|
||||
<p>🠟 The canvas is below 🠟</p>
|
||||
<p style="margin-bottom:1px">🠟 The canvas is below 🠟</p>
|
||||
<div id="canvas_container">
|
||||
<canvas>
|
||||
Your browser does not support the HTML5 canvas tag.
|
||||
</canvas>
|
||||
<div id="label_container"> </div>
|
||||
</div>
|
||||
<p>🠝 The canvas is above 🠝</p>
|
||||
<p style="margin-top:1px">🠝 The canvas is above 🠝</p>
|
||||
</div>
|
||||
<script async type="module" src="main.js" ></script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user