Add counter

This commit is contained in:
Ali Movahedi 2015-01-16 13:29:32 +03:30
parent d21f138ebe
commit 4109b8ce1c

View File

@ -1,3 +1,5 @@
var socket = io();
var $run = $('h1, h3, .options, a');
$('li[contenteditable]').click(function(e) {
@ -39,3 +41,8 @@ function success(ipsum) {
selection.removeAllRanges();
selection.addRange(range);
}
//UPDATE COUNT
socket.on('count', function(data) {
$('#count').html(data);
})