ref: c6e312b252bc41eac10dff60f1c6675c762b4cee
parent: 19540d2ef81e2640e511ff5212b545f8225f5eaa
author: Ben Harris <bjh21@bjh21.me.uk>
date: Fri Nov 25 19:04:58 EST 2022
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.
--- a/html/jspage.pl
+++ b/html/jspage.pl
@@ -354,10 +354,8 @@
</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: