|
@@ -77,6 +77,7 @@ function init(ew)
|
|
|
initColor();
|
|
|
initUpdate();
|
|
|
initClipboard();
|
|
|
+ initEmoji();
|
|
|
|
|
|
//更新页面一些功能,上边的一些功能等找时间再优化吧
|
|
|
dever_update.init();
|
|
@@ -86,11 +87,21 @@ function init(ew)
|
|
|
table();
|
|
|
}
|
|
|
|
|
|
-function emoji(content, className)
|
|
|
+function initEmoji()
|
|
|
+{
|
|
|
+ if ($('.dever-emoji').length) {
|
|
|
+ $('.dever-emoji').each(function()
|
|
|
+ {
|
|
|
+ emoji($(this), $(this).html());
|
|
|
+ })
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+function emoji(e, content)
|
|
|
{
|
|
|
var handle = function()
|
|
|
{
|
|
|
- $('.' + className).html(jEmoji.unifiedToHTML(content));
|
|
|
+ e.html(jEmoji.unifiedToHTML(content));
|
|
|
};
|
|
|
if (typeof jEmoji != 'object') {
|
|
|
$.getScript(config.script + '/lib/emoji/emoji.js', function() {
|