maybe chat fix
This commit is contained in:
@@ -9,6 +9,6 @@
|
|||||||
<ul id="chat_messages"></ul>
|
<ul id="chat_messages"></ul>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript" src="jquery-1.11.3.min.js"></script>
|
<script type="text/javascript" src="jquery-1.11.3.min.js"></script>
|
||||||
<script src="js/newMain.js"></script>
|
<script src="js/main.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -1,6 +1,4 @@
|
|||||||
var neatoEmojiConverter = require('neato-emoji-converter')
|
let chat =
|
||||||
|
|
||||||
let chat =
|
|
||||||
{
|
{
|
||||||
size: 0,
|
size: 0,
|
||||||
history_limit: 50,
|
history_limit: 50,
|
||||||
@@ -40,14 +38,7 @@ var chatAPI =
|
|||||||
push: (text) => {
|
push: (text) => {
|
||||||
let colorPositions = [];
|
let colorPositions = [];
|
||||||
let colors = [];
|
let colors = [];
|
||||||
let chatElement = "<li>"
|
let chatElement = "<li>";
|
||||||
|
|
||||||
var converter = new neatoEmojiConverter([replacements]);
|
|
||||||
text = converter.replaceShortcodesWith(text, function (unicodeChar, shortcode, name, object) {
|
|
||||||
if (unicodeChar) { return unicodeChar }
|
|
||||||
else if (object.url) { return `<img src="${object.url}" alt="${name}" title="${name}" style="max-height:35px; max-width:35px; width:auto; height:auto;" />` }
|
|
||||||
else { return shortcode }
|
|
||||||
});
|
|
||||||
|
|
||||||
for (let i = 0; i < text.length; i++) {
|
for (let i = 0; i < text.length; i++) {
|
||||||
let colorCheck = `${text[i]}${text[i + 1]}${text[i + 2]}`;
|
let colorCheck = `${text[i]}${text[i + 1]}${text[i + 2]}`;
|
||||||
|
|||||||
@@ -206,6 +206,10 @@
|
|||||||
|
|
||||||
enableChatInput(false);
|
enableChatInput(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
chatAPI.push("lol");
|
||||||
|
|
||||||
|
$("#chat").hide();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}, { "neato-emoji-converter": 2 }], 2: [function (require, module, exports) {
|
}, { "neato-emoji-converter": 2 }], 2: [function (require, module, exports) {
|
||||||
|
|||||||
Reference in New Issue
Block a user