Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add a few command alias

(Like 'previous' for back and 'reset' for 'restart'.)
I tended to forget the commands the first time I was using TryClojure. These aliases should help users as absent-minded as I am.
  • Loading branch information...
commit 9ebd2ed74b1c4e5ccf88eadbd98533286fc9535f 1 parent a7e3cc8
Paolo "Nusco" Perrotta nusco authored
Showing with 8 additions and 2 deletions.
  1. +8 −2 resources/public/javascript/tryclojure.js
10 resources/public/javascript/tryclojure.js
View
@@ -113,13 +113,19 @@ function html_escape(val) {
function doCommand(input) {
switch (input) {
- case 'next':
+ case 'next':
+ case 'forward':
nextPage();
return true;
- case 'back':
+ case 'previous':
+ case 'prev':
+ case 'back':
previousPage();
return true;
case 'restart':
+ case 'reset':
+ case 'home':
+ case 'quit':
goToFirstPage();
return true;
default:
Please sign in to comment.
Something went wrong with that request. Please try again.