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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user