diff --git a/ipsum/js/main.js b/ipsum/js/main.js index e52bf00..4932d5b 100644 --- a/ipsum/js/main.js +++ b/ipsum/js/main.js @@ -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); +})