mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
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:
@ -354,10 +354,8 @@ ${unfinishedpara}
|
|||||||
</ul></form>
|
</ul></form>
|
||||||
<div align=center>
|
<div align=center>
|
||||||
<div id="resizable">
|
<div id="resizable">
|
||||||
<canvas id="puzzlecanvas" width="1px" height="1px" tabindex="0">
|
<canvas id="puzzlecanvas" tabindex="0"></canvas>
|
||||||
</canvas>
|
<div id="statusbar"></div>
|
||||||
<div id="statusbar">
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
Link to this puzzle:
|
Link to this puzzle:
|
||||||
|
Reference in New Issue
Block a user