js: Remove "width" and "height" attributes from HTML <canvas>

They were set to "1px", which isn't a valid value since they're meant to
be integers.  Since they weren't valid, they were ignored.  This doesn't
seem to have caused any trouble, so they may as well be removed.  In any
case, the canvas is invisible until after its size has been set by
JavaScript.
This commit is contained in:
Ben Harris
2022-11-26 00:04:58 +00:00
parent 19540d2ef8
commit c6e312b252

View File

@ -354,10 +354,8 @@ ${unfinishedpara}
</ul></form>
<div align=center>
<div id="resizable">
<canvas id="puzzlecanvas" width="1px" height="1px" tabindex="0">
</canvas>
<div id="statusbar">
</div>
<canvas id="puzzlecanvas" tabindex="0"></canvas>
<div id="statusbar"></div>
</div>
<p>
Link to this puzzle: