aboutsummaryrefslogtreecommitdiff
path: root/html/jspage.pl
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2022-11-26 00:04:58 +0000
committerBen Harris <bjh21@bjh21.me.uk>2022-11-27 19:39:18 +0000
commitc6e312b252bc41eac10dff60f1c6675c762b4cee (patch)
tree2f32fe0e8045f9f4433060047f447ea3e464c176 /html/jspage.pl
parent19540d2ef81e2640e511ff5212b545f8225f5eaa (diff)
downloadpuzzles-c6e312b252bc41eac10dff60f1c6675c762b4cee.zip
puzzles-c6e312b252bc41eac10dff60f1c6675c762b4cee.tar.gz
puzzles-c6e312b252bc41eac10dff60f1c6675c762b4cee.tar.bz2
puzzles-c6e312b252bc41eac10dff60f1c6675c762b4cee.tar.xz
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.
Diffstat (limited to 'html/jspage.pl')
-rwxr-xr-xhtml/jspage.pl6
1 files changed, 2 insertions, 4 deletions
diff --git a/html/jspage.pl b/html/jspage.pl
index 8a63229..2a1af66 100755
--- a/html/jspage.pl
+++ b/html/jspage.pl
@@ -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: