Removing splitter/console from default HTML

Monkey Targets Forums/HTML5/Removing splitter/console from default HTML

DruggedBunny(Posted 2014) [#1]
Anyone know how to fix this? If I try to remove the splitter and console from an app, it suddenly displays nothing at all.

This, the default output, works as normal...
<div><canvas id="GameCanvas" width=640 height=480 tabindex=1></canvas></div>

<div id="Splitter" class=splitter></div>

<div><textarea id="GameConsole" readonly></textarea></div>


... but if I remove the splitter and console, leaving only the canvas, it fails, rendering only a blank page:
<div><canvas id="GameCanvas" width=640 height=480 tabindex=1></canvas></div>


This is literally the only change I'm making... I've tried going through and manually deleting all references to the splitter, but it still turns out blank! (I used to be able to remove the console, so I assumed it was just being worked around as Null when accessed but not present.)

Any ideas what needs to be done to have only the game canvas displaying? Even just removing the splitter and leaving the console in place renders nothing... put 'em back and it's fine again!


Desperado(Posted 2014) [#2]
Here's an updated version of MonkeyGame.html that I use which removes both the splitter and console:

It only works correctly with CANVAS_RESIZE_MODE set to 0 or 2.


Landon(Posted 2014) [#3]
you could just set the css of the console to display:none;


DruggedBunny(Posted 2014) [#4]
Thanks, guys, will have a play tonight!