#kiwi .messages .msg.global_nick_highlight { }
#kiwi .messages .msg.highlight { }
+#kiwi .messages .msg .media .media_content { white-space: normal; }
/* A member/nick list per channel */
that.$content.find('.content').html(yt_html);
return $('');
+ },
+
+
+ gist: function () {
+ var that = this,
+ matches = (/https?:\/\/gist\.github\.com\/(?:[a-z0-9-]*\/)?([a-z0-9]+)(\#(.+))?$/i).exec(this.url);
+
+ $.getJSON('https://gist.github.com/'+matches[1]+'.json?callback=?' + (matches[2] || ''), function (data) {
+ $('body').append('<link rel="stylesheet" href="' + data.stylesheet + '" type="text/css" />');
+ that.$content.find('.content').html(data.div);
+ });
+
+ return $('<div>Loading gist..</div>');
}
}
}, {
html += '<span class="media youtube" data-type="youtube" data-url="' + url + '" data-ytid="' + matches[1] + '" title="YouTube Video"><a class="open"><i class="icon-chevron-right"></i></a></span>';
}
+ // Is a github gist?
+ matches = (/https?:\/\/gist\.github\.com\/(?:[a-z0-9-]*\/)?([a-z0-9]+)(\#(.+))?$/i).exec(url);
+ if (matches) {
+ html += '<span class="media gist" data-type="gist" data-url="' + url + '" data-gist_id="' + matches[1] + '" title="GitHub Gist"><a class="open"><i class="icon-chevron-right"></i></a></span>';
+ }
+
return html;
}
});