Add counter
This commit is contained in:
parent
d21f138ebe
commit
4109b8ce1c
@ -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);
|
||||||
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user