1
0
Fork 0
mirror of https://github.com/Oreolek/shooter.git synced 2024-04-26 22:19:19 +03:00

Fixed textcycle

This commit is contained in:
Alexander Yakovlev 2015-12-05 09:20:43 +07:00
parent 372b310566
commit a7f2316cfa

View file

@ -27,9 +27,7 @@ undum.game.version = "2.0"
way_to = (content, ref) -> a(content).class('way').ref(ref)
textlink = (content, ref) -> a(content).once().writer(ref)
# The next line doesn't work for whatever reason:
#textcycle = (content, ref) -> span(a(content).replacer(ref)).class("cycle").id(ref)
textcycle = (content, ref) -> "<span id='#{ref}' class='cycle'><a href='./_replacer_#{ref}'>#{content}</a></span>"
textcycle = (content, ref) -> a(content).replacer(ref).class("cycle").id(ref)
is_visited = (situation) -> undum.game.situations[situation].visited == 1
writemd = (system, text) ->
if typeof text is Function