Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
AtomicSponge committed Nov 27, 2024
1 parent 6e0e775 commit ff40c4d
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,24 @@ <h1>Keyboard Controls</h1>
</div>
<script>
var Module = {
print: (function() {
var element = document.getElementById('app');
/*print: (function() {
var element = document.getElementById('app')
return function(text) {
element.innerHTML += text + "<br>";
};
})(),
element.innerHTML += text + "<br>"
}
})(),*/
print: function(text) {
console.log(text)
},
printErr: function(text) {
if (arguments.length > 1) text = Array.prototype.slice.call(arguments).join(' ');
if (arguments.length > 1) text = Array.prototype.slice.call(arguments).join(' ')
if (0) {
dump(text + '\n');
dump(text + '\n')
}
},
canvas: (function() {
var canvas = document.getElementById('canvas');
return canvas;
var canvas = document.getElementById('canvas')
return canvas
})()
};
</script>
Expand Down

0 comments on commit ff40c4d

Please sign in to comment.