Created
July 29, 2013 19:42
-
-
Save stannehill/6107146 to your computer and use it in GitHub Desktop.
The last portion of the frontend code for socket.io blog post.
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
$(function () { | |
$('#target').click(function () { | |
$('#target').animate({top: '-200', opacity: 0.1}, 3000, function () { | |
socket.emit('volley', {'text': 'Shot made to server...'}); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment