shithub: puzzles

Download patch

ref: b341d0544de490f40720401fc523b41088d1666b
parent: be6bb379bb9ead46794a289ff8a68c7f5a2ede89
author: Simon Tatham <anakin@pobox.com>
date: Sat Apr 6 08:28:21 EDT 2013

Fix the 'puzzle doesn't work' apology, which I'd accidentally moved
inside the top-level display:none puzzle container as a side effect of
r9809.

Also, while I'm at it, reword the apology to mention typed arrays as
the most likely cause of failure (AFAIK that's the most modern feature
required by the JS front end), and fix indecision between singular and
plural ('this puzzle' doesn't work, perhaps a feature 'they depend on'
is missing).

[originally from svn r9818]
[r9809 == 5dc559c8be1b8f6ed15f560433f25c952c874f93]

--- a/html/jspage.pl
+++ b/html/jspage.pl
@@ -94,13 +94,14 @@
     <a id="permalink-seed">by random seed</a>
   </p>
 </div>
+</div>
 <div id="apology">
-Sorry, this Javascript puzzle doesn't seem to work on your web
+Sorry, this Javascript puzzle doesn't seem to work in your web
 browser. Perhaps you have Javascript disabled, or perhaps your browser
-doesn't provide a feature they depend on. These puzzles have been
-successfully run in Firefox 19, Chrome 26, Internet Explorer 10 and
-Safari 6.
-</div>
+doesn't provide a feature that the puzzle code requires (such as
+<a href="https://developer.mozilla.org/en-US/docs/JavaScript/Typed_arrays">typed arrays</a>).
+These puzzles have been successfully run in Firefox 19, Chrome 26,
+Internet Explorer 10 and Safari 6.
 </div>
 <hr>