Update shit

This commit is contained in:
Thomas Forgione 2020-03-20 16:38:37 +01:00
parent 1eee588be9
commit 2e79ea916a
2 changed files with 3 additions and 2 deletions

View File

@ -42,7 +42,7 @@ body {
}
.emoticon {
height: 2rem;
width: 2rem;
}
@keyframes slide {

View File

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