<% s.content = "entrance" %>
[[Start->main]]
<%= story.render( s.content ) %>
<%= story.render( s.ops ) %>
You are in the hall now.
<% s.ops = "hall exits" %>This is the entrance.
<% s.ops = "entrance exits" %>
This is a room.
<% s.ops = "room exits" %><a id="hall">There's a hall to the left.</a>
<a id="room">There's a room to the right.</a>
<%
$(function () {
$('#hall').click(function () {
s.content="hall";
$('#passage').append(story.render("main"));
});
});
%>
<%
$(function () {
$('#room').click(function () {
s.content="room";
$('#passage').append(story.render("main"));
});
});
%>
<a id="entrance">The entrance is to the right.</a>
<%
$(function () {
$('#entrance').click(function () {
s.content="entrance";
$('#passage').append(story.render("main"));
});
});
%><a id="entrance">The entrance is to the left.</a>
<%
$(function () {
$('#entrance').click(function () {
s.content="entrance";
$('#passage').append(story.render("main"));
});
});
%>