I am making a paint app using javascript and some jQuery.
I am trying to resize the canvas in javascript but the canvas does not resize... I would like to make the canvas fit the user's screen + allow space at the top for the tool bar. Here is a pen for the entire code if it helps : https://codepen.io/mistahdukk/pen/dmaKOV
Markup
<div id="canvas">
<canvas class="drawing-canvas"></canvas>
</div>
JavaScript
var width = window.innerWidth,
height = window.innerHeight;
canvas.width = width;
canvas.height= height;
In