Update shit
This commit is contained in:
parent
1eee588be9
commit
2e79ea916a
|
@ -42,7 +42,7 @@ body {
|
|||
}
|
||||
|
||||
.emoticon {
|
||||
height: 2rem;
|
||||
width: 2rem;
|
||||
}
|
||||
|
||||
@keyframes slide {
|
||||
|
|
|
@ -66,7 +66,7 @@ function formatEmotes(text, emotes) {
|
|||
empty = Array.apply(null, new Array(length + 1)).map(function() { return '' });
|
||||
splitText = splitText.slice(0, mote[0]).concat(empty).concat(splitText.slice(mote[1] + 1, splitText.length));
|
||||
splitText = splitText.map((x) => escapeHtml(x));
|
||||
splitText.splice(mote[0], 1, '<img class="emoticon" src="http://static-cdn.jtvnw.net/emoticons/v1/' + i + '/3.0">');
|
||||
splitText.splice(mote[0], 1, '<img class="emoticon" src="http://static-cdn.jtvnw.net/emoticons/v1/' + i + '/4.0">');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -91,6 +91,7 @@ function replaceAll(input, from, to) {
|
|||
}
|
||||
|
||||
function addMessage(object) {
|
||||
console.log(object);
|
||||
messages .className = "";
|
||||
let message = new Message(object);
|
||||
messages.appendChild(message.createEl());
|
||||
|
|
Loading…
Reference in New Issue