Spoiler support(use [s]) for spoilers Quickemotemenu button overlap with textarea fixed.

This commit is contained in:
Jiiks 2015-11-28 01:29:53 +02:00
parent 1b3c551515
commit 3c149ce3fe
4 changed files with 101 additions and 63 deletions

View File

@ -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;
}

2
css/main.min.css vendored

File diff suppressed because one or more lines are too long

View File

@ -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();
}

2
js/main.min.js vendored

File diff suppressed because one or more lines are too long