aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2017-09-05 21:02:18 +0100
committerSimon Tatham <anakin@pobox.com>2017-09-05 21:02:18 +0100
commitb36298ab4d3e52868d115afca0e26b310eeb06dc (patch)
tree91333b87473758062f4b21fc92443a4f35d237a4
parent721119e4a61cbb261b456dfd134811d7beb5ce98 (diff)
downloadpuzzles-b36298ab4d3e52868d115afca0e26b310eeb06dc.zip
puzzles-b36298ab4d3e52868d115afca0e26b310eeb06dc.tar.gz
puzzles-b36298ab4d3e52868d115afca0e26b310eeb06dc.tar.bz2
puzzles-b36298ab4d3e52868d115afca0e26b310eeb06dc.tar.xz
Make the images on the web page link to the JS puzzles.
I've been thinking for a while that it's about time I did that. Those images used to link to the Java versions of the puzzles, back when Java was the in-browser applet platform of choice; then I made them not link to either one when it wasn't clear which system would win; but now JS has clearly won, it's past time the images linked to the JS puzzles, as the obviously sensible default.
-rwxr-xr-xwebpage.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/webpage.pl b/webpage.pl
index 3a0779e..c6144bb 100755
--- a/webpage.pl
+++ b/webpage.pl
@@ -27,7 +27,7 @@ while (<$desc>) {
'<span class="puzzle"><table>'.
'<tr><th align="center">%s</th></tr>'.
'<tr><td align="center">'.
- '<img style="margin: 0.5em" alt="" title="%s" width=150 height=150 border=0 src="%s-web.png" />'.
+ '<a href="js/%s.html"><img style="margin: 0.5em" alt="" title="%s" width=150 height=150 border=0 src="%s-web.png" /></a>'.
'</td></tr>'.
'<tr><td align="center" style="font-size: 70%%"><code>[</code>'.
' <a href="java/%s.html">java</a> '.
@@ -41,6 +41,7 @@ while (<$desc>) {
'<tr><td align="center">%s</td></tr></table></span>'.
"\n",
encode_entities($displayname),
+ encode_entities($id),
encode_entities($description),
encode_entities($id),
encode_entities($id),