Changed tweets, added eca
This commit is contained in:
14
devjan_static/lib/log.js
Normal file
14
devjan_static/lib/log.js
Normal file
@@ -0,0 +1,14 @@
|
||||
(function($, block) {
|
||||
block.fn.log = function(config) {
|
||||
this.$element.addClass('block log').append('<ul>');
|
||||
|
||||
this.actions(function(e, message){
|
||||
$ul = $('ul:first-child', this);
|
||||
$ul.append('<li>');
|
||||
$ul.find("> li:last-child").text(message.text);
|
||||
$(this).scrollTop(1000000);
|
||||
});
|
||||
|
||||
return this.$element;
|
||||
};
|
||||
})(jQuery, block);
|
||||
Reference in New Issue
Block a user