Skip to content

Commit b398f7b

Browse files
committed
add a final page
In case people type 'next' on the last tutorial page
1 parent e1f13fe commit b398f7b

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

resources/public/javascript/tryclojure.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ var pages = [
1010
"page8",
1111
"page9",
1212
"page10",
13-
"page11"
13+
"page11",
14+
"end"
1415
];
1516
var pageExitConditions = [
1617
{
@@ -43,6 +44,9 @@ var pageExitConditions = [
4344
{
4445
verify: function (data) { return data.expr == "(map inc [1 2 3 4])"; }
4546
},
47+
{
48+
verify: function (data) { return false; }
49+
},
4650
{
4751
verify: function (data) { return false; }
4852
}

resources/public/tutorial/end.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<p>
2+
Glad to know you're eager for more, but unfortunately this tutorial is over.
3+
</p>
4+
5+
<p>
6+
Maybe you can click the 'links' button above for more resources?.
7+
</p>

0 commit comments

Comments
 (0)