rename to kliffy

This commit is contained in:
Jeremy Penner 2011-03-03 22:47:56 -08:00
parent ee08d270a5
commit 178499f5a6
3 changed files with 17 additions and 17 deletions

View file

@ -1,6 +1,6 @@
###
Iffy - parserless interactive fiction for the web
(c)2010 Jeremy Penner
Kliffy - Klikable Interactive Fiction For You!
(c)2010-2011 Jeremy Penner
###
#lazy enumeration
@ -176,13 +176,13 @@ class Gst
# show "previous section" link
if @rgsection.length > 1
@jDiv.append("<div class='iffy-section-nav'>#{@Link("Previous section", () => @GoBackOneSection())}</div>")
@jDiv.append("<div class='kliffy-section-nav'>#{@Link("Previous section", () => @GoBackOneSection())}</div>")
# show all nevs in section
@rgwst = null
@rgwst = @RgwstRun()
for wst in @rgwst
jDivNev = $("<div class='iffy-nev'/>")
jDivNev = $("<div class='kliffy-nev'/>")
jDivNev.append(wst.nev.StHtmlDisplay(this, wst))
@jDiv.append(jDivNev)
jDivNev.hover(dgEnter, dgLeave)
@ -191,7 +191,7 @@ class Gst
# show "next section" link
stHtmlNav = @wstLast.nev.StHtmlNextSection(this, @wstLast)
if stHtmlNav?
@jDiv.append("<div class='iffy-section-nav'>#{stHtmlNav}</div>")
@jDiv.append("<div class='kliffy-section-nav'>#{stHtmlNav}</div>")
for stId_dgOnClick in @mpstId_dgOnClick
@jDiv.find("##{stId_dgOnClick[0]}").click(stId_dgOnClick[1])
@ -205,7 +205,7 @@ class Gst
ShowMenu: (ev, dLink, rgverb) ->
@ClearMenu(true)
jMenu = $("<div class='iffy-menu'/>").hide()
jMenu = $("<div class='kliffy-menu'/>").hide()
for verb in rgverb
dgClick = ((verbT) => () => verbT.dgActivate(); @Display())(verb)
jMenuItem = $("<a href='javascript:void(0)'>#{verb.stDisplay}</a><br/>").click(dgClick)
@ -340,7 +340,7 @@ class Nev
if not fReserved
jdivTmp.append(document.importNode(dHTML, true))
stHtml = jdivTmp[0].innerHTML
"<div class='iffy-nev-ui'>#{gst.StHtmlUi(wst)}</div><div class='iffy-nev-text'>#{gst.FilterStHtml(stHtml, wst)}</div>"
"<div class='kliffy-nev-ui'>#{gst.StHtmlUi(wst)}</div><div class='kliffy-nev-text'>#{gst.FilterStHtml(stHtml, wst)}</div>"
#[word text to display] -- links to a word, usually a noun, that the player can interact with in some way.
#[word] == [word word]
@ -432,7 +432,7 @@ TemplateFromStNev = (st, wst) ->
word = wst.gst.SectionCurrent().WordByName(wst.gst, stWord)
if word? and (rgverb = word.Rgverb(wst)).length > 0
JsStringLit(wst.gst.Link(stDisplay, ((ev) -> wst.gst.ShowMenu(ev, this, rgverb)), "class='iffy-word'"))
JsStringLit(wst.gst.Link(stDisplay, ((ev) -> wst.gst.ShowMenu(ev, this, rgverb)), "class='kliffy-word'"))
else
JsStringLit(stDisplay)
MatchInWord = MatchBracket(1, 0, () -> PushText(true, StWord))
@ -509,7 +509,7 @@ class ActorPlayer
StHtmlUi: (wst) ->
if (wst.nev.player_nevIDRespondedTo?)
wst.gst.Link("Undo", (() => @RemoveResponse(wst.nev); wst.gst.Display()), "class='iffy-undo'")
wst.gst.Link("Undo", (() => @RemoveResponse(wst.nev); wst.gst.Display()), "class='kliffy-undo'")
class ActorNext
constructor: (@story) ->

View file

@ -1,5 +1,5 @@
###
RetroChronal -- an iffy module for violating causality
RetroChronal -- a kliffy module for violating causality
Usage:
<pastresponse after="nev" future_cause="nev" [name="name"]>

View file

@ -3,32 +3,32 @@
<head>
<link rel="stylesheet" href="jqueryui/css/ui-lightness/jquery-ui-1.8.5.custom.css">
<style>
div.iffy-menu {
.kliffy-menu {
border: 1px solid #777;
position: absolute;
background-color: #eeeeee;
}
div.hover div {
.hover div {
background-color: #f2f2f2;
}
div.iffy-nev-ui {
.kliffy-nev-ui {
display: none;
}
div.hover div.iffy-nev-ui {
.hover .kliffy-nev-ui {
display: inline;
float: right;
}
// a.iffy-word:link {
// a.kliffy-word:link {
// text-decoration: none;
// color: #000000;
// }
// a.iffy-word:hover {
// a.kliffy-word:hover {
// color: #0000dd;
// }
</style>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jqueryui/js/jquery-ui-1.8.5.custom.min.js"></script>
<script type="text/javascript" src="iffy.js"></script>
<script type="text/javascript" src="kliffy.js"></script>
<script type="text/javascript">
$(document).ready(function () {
PlayStory("timemachine.xml", $("#story"));