timer/public/js/main.js

9 lines
191 B
JavaScript
Raw Normal View History

2012-06-04 23:07:51 -07:00
var socket = io.connect(window.location.hostname);
2012-06-04 22:45:50 -07:00
socket.on('status', function (data) {
$('#status').html(data.status);
});
$('#reset').click(function() {
socket.emit('reset');
});