Spoiler support(use [s]) for spoilers Quickemotemenu button overlap with textarea fixed.
This commit is contained in:
parent
1b3c551515
commit
3c149ce3fe
24
css/main.css
24
css/main.css
|
@ -1,3 +1,27 @@
|
|||
.spoiler {
|
||||
color:transparent !important;
|
||||
}
|
||||
|
||||
.spoiler img {
|
||||
display:none;
|
||||
}
|
||||
|
||||
.spoiler:before {
|
||||
content:"Spoiler";
|
||||
display:block;
|
||||
background:#1D1D1D;
|
||||
color:#ADADAD !important;
|
||||
min-height:30px;
|
||||
text-align:center;
|
||||
line-height:100%;
|
||||
font-family:"Consolas";
|
||||
padding-top:5px;
|
||||
}
|
||||
|
||||
.emotemenu-enabled .channel-textarea-inner textarea {
|
||||
margin-right:45px !important;
|
||||
}
|
||||
|
||||
#bdbeta {
|
||||
background:red;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
16
js/main.js
16
js/main.js
|
@ -263,6 +263,19 @@ EmoteModule.prototype.injectEmote = function(node) {
|
|||
|
||||
words.some(function(word) {
|
||||
|
||||
if(word == "[s]") {
|
||||
var markup = $(parent).parent();
|
||||
markup.addClass("spoiler");
|
||||
|
||||
parentInnerHTML = parentInnerHTML.replace(word, "");
|
||||
|
||||
markup.on("click", function() {
|
||||
$(this).removeClass("spoiler");
|
||||
});
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if($.inArray(word, bemotes) != -1) return;
|
||||
|
||||
if(word.length < 4) {
|
||||
|
@ -537,7 +550,7 @@ function QuickEmoteMenu() {
|
|||
QuickEmoteMenu.prototype.init = function(reload) {
|
||||
|
||||
emoteBtn = null;
|
||||
|
||||
$(".channel-textarea").first().removeClass("emotemenu-enabled");
|
||||
if(!emoteMenu) {
|
||||
this.initEmoteList();
|
||||
}
|
||||
|
@ -564,6 +577,7 @@ QuickEmoteMenu.prototype.init = function(reload) {
|
|||
});
|
||||
|
||||
if(settingsCookie["bda-es-0"]) {
|
||||
$(".channel-textarea").first().addClass("emotemenu-enabled");
|
||||
emoteBtn.show();
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue