Update main.js
This commit is contained in:
parent
2b2613b72d
commit
f7191e59b1
@ -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,7 @@ function success(ipsum) {
|
|||||||
selection.removeAllRanges();
|
selection.removeAllRanges();
|
||||||
selection.addRange(range);
|
selection.addRange(range);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
socket.on('counter', function(count) {
|
||||||
|
$('#count').text(count);
|
||||||
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user