- "+
"
- From "+ "
- "+data['source']+" "+ "
// update the local timeline from a Comet server // var updater = function() { var _cometd; return { init: function(server, timeline) { _cometd = $.cometd; // Uses the default Comet object _cometd.setLogLevel('debug'); _cometd.init(server); _cometd.subscribe(timeline, receive); $(window).unload(leave); } } function leave() { _cometd.disconnect(); } function receive(message) { var noticeItem = makeNoticeItem(message.data); $("#notices_primary .notices").prepend(noticeItem, true); $("#notices_primary .notice:first").css({display:"none"}); $("#notices_primary .notice:first").fadeIn(2500); NoticeHover(); NoticeReply(); } function makeNoticeItem(data) { user = data['user']; html = data['html'].replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>'); ni = "
"+html+"
"+ "