function resizeCanvas() {
  var divElement = document.getElementById("mainCanvas");
  var screenHeight = window.innerHeight || document.body.offsetHeight;
  divElement.style.height = (screenHeight - 16) + "px";
}
function resizeCanvas() {
  var divElement = document.getElementById("mainCanvas");
  var screenHeight = window.innerHeight || document.body.offsetHeight;
  divElement.style.height = (screenHeight - 16) + "px";
}
function resizeCanvas ( ) { var divElement = document . getElementById ( "mainCanvas" ) ; var screenHeight = window . innerHeight || document . body . offsetHeight ; divElement . style . height = ( screenHeight - 16 ) + "px" ; }
Resizes the main canvas to the maximum visible height.
Resizes the main canvas to the maximum visible height .
Resizes the canvas