Add border to sended danmaku item

This commit is contained in:
DIYgod
2016-08-17 18:51:40 +08:00
parent f9750a6a3e
commit e478eb7b13
3 changed files with 6 additions and 3 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+4 -1
View File
@@ -904,6 +904,8 @@ class DPlayer {
// move
item.classList.add(`dplayer-danmaku-move`);
return item;
};
// danmaku
@@ -1017,7 +1019,8 @@ class DPlayer {
closeComment();
this.dan.splice(this.danIndex, 0, danmakuData);
this.danIndex++;
danmakuIn(htmlEncode(danmakuData.text), danmakuData.color, danmakuData.type);
const item = danmakuIn(htmlEncode(danmakuData.text), danmakuData.color, danmakuData.type);
item.style.border = `2px solid ${option.theme}`;
};
const closeCommentSetting = () => {