Raynes/tryclojure — pull request #30 by nusco (2012-11-25 11:42:53+00:00)
Title: Rewrite page flow control

Raynes, this time around I tackled the JS code. I heavily refactored the page flow control and added a few minor features/fixes:

* catering for non-happy-path behavior, like users using the "restart" command on the first screen;
* changed the initial "tutorial" command to "next", so that the user doesn't have as many commands to remember;
* added obvious undocumented aliases for commands, so that if the user types a wrong command (say, "previous" instead of "back"), the tutorial still works;
* removed the "home" button (it was breaking "next"/"back", and the user can simply refresh the page instead);
* added a final page in case the user types "next" on the last tutorial page;
* added an undocumented "gopage x" command, useful to debug as we change the tutorial.

I also have a couple of bigger ideas about the project. Is it appropriate to open issues to discuss new ideas, or would you rather use email?

It was a nice nice of hacking - I need more of that. :)