Add counter #7

Closed
amovah wants to merge 7 commits from master into master
Showing only changes of commit 4109b8ce1c - Show all commits

View File

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