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

@@ -14,6 +14,17 @@ body
display: inline-block;
}
#label_container
{
display: flex;
}
#label_container > p
{
margin-left: 20px;
margin-top: 0px;
margin-bottom: 0px;
}
canvas
{
border: 1px solid black;