diff options
| author | Simon Tatham <anakin@pobox.com> | 2013-04-03 19:04:00 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2013-04-03 19:04:00 +0000 |
| commit | a752e7372021c1eea5df433f08e53fae1983e8ec (patch) | |
| tree | 2e9b3ccdb88cad41d77e1a210cf0134a830a8657 /html | |
| parent | bd8c5941971585d80a2f383a85b15c3e5d041107 (diff) | |
| download | puzzles-a752e7372021c1eea5df433f08e53fae1983e8ec.zip puzzles-a752e7372021c1eea5df433f08e53fae1983e8ec.tar.gz puzzles-a752e7372021c1eea5df433f08e53fae1983e8ec.tar.bz2 puzzles-a752e7372021c1eea5df433f08e53fae1983e8ec.tar.xz | |
Try to give a more friendly message if anything goes wrong during
puzzle startup. The puzzle web pages now enclose the whole puzzle
(buttons, canvas, permalinks) in a div set to display:none, and
instead display an apologetic message saying 'sorry, it didn't work';
then, if we get through the whole init function without crashing, we
show the puzzle and hide the apology.
[originally from svn r9802]
Diffstat (limited to 'html')
| -rwxr-xr-x | html/jspage.pl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/html/jspage.pl b/html/jspage.pl index 7172800..376d39a 100755 --- a/html/jspage.pl +++ b/html/jspage.pl @@ -71,6 +71,7 @@ ${unfinishedheading} ${unfinishedpara} <hr> +<div id="puzzle" style="display: none"> <p align=center> <input type="button" id="new" value="New game"> <input type="button" id="restart" value="Restart game"> @@ -98,6 +99,13 @@ ${unfinishedpara} <a id="permalink-desc">by game ID</a> <a id="permalink-seed">by random seed</a> </p> +</div> +<div id="apology"> +Sorry, this Javascript puzzle doesn't seem to work on 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 and Chrome 25. +</div> <hr> ${instructions} |