Created
May 30, 2011 14:58
-
-
Save victusfate/999016 to your computer and use it in GitHub Desktop.
client side CoffeeScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
msg = "world" | |
inv = "you" | |
show_message = (x,y) -> | |
$('#message').hide().text(x).fadeIn(1000, | |
-> $('#message').append('!') | |
) | |
$('#hint').hide().text(x).fadeIn(0) | |
$ -> | |
show_message msg,inv | |
[inv, msg] = [msg, inv] | |
$('#message').click -> | |
show_message msg,inv | |
[inv, msg] = [msg, inv] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment