# init Socket.IO
socket = io()
$('form[name="fftcg-login"]').submit ->
data =
uname: $('input[name="uname"]').val()
password: $('input[name="password"]').val()
@reset()
socket.emit 'login', data
false