public/js/lobby.js
// render list of online users on screen
render list of online users on screen
render list of online users on screen
function renderOnlines(users){
        var template = $('#online-user-template').html();
        var $list = $('#onlines .pop_list').empty();
        _.each(users, function(user){
            var $user = $(_.template(template)({ user: user }));
            $list.append($user);
        });
        $('#online-count').text(_.size(users));
    }
function renderOnlines ( users ) { var template = $ ( '#online-user-template' ) . html ( ) ; var $list = $ ( '#onlines .pop_list' ) . empty ( ) ; _ . each ( users , function ( user ) { var $user = $ ( _ . template ( template ) ( { user : user } ) ) ; $list . append ( $user ) ; } ) ; $ ( '#online-count' ) . text ( _ . size ( users ) ) ; }
render list of online users on screen
render list of online users on screen