mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
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]
This commit is contained in:
@ -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}
|
||||
|
Reference in New Issue
Block a user