(function($) { function update_status(data) { var items = []; var klass; $('#status-throbbler').hide(); $('
', { 'html': 'Monitoring ' + data.seeds + ' seeds.' }).appendTo('#status').fadeIn(); $.each(data.list, function(i, item) { klass = (item.ping == 1) ? "up" : "down"; klass = (item.running == 1) ? klass + " running" : klass; console.log(item.host + ":" + item.ping + item.running + " " + klass); items.push('