Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shifted all emoji data in a json file #147

Merged
merged 10 commits into from
Oct 21, 2020
15 changes: 15 additions & 0 deletions public/client.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
// Getting JSON data of emojis
const emoji_data = require('./emojimap.json').data;

// Adding emojis with their code names to front end
emojiStr = "";
for (key in emoji_data) {
emojiStr +=
'<li><img src="/images/emoji/' +
key +
'.png" id="' +
emoji_data[key] +
'" onclick="writeEmoji(this)"/></li>';
LalitNM marked this conversation as resolved.
Show resolved Hide resolved
}
document.getElementById("emobox").innerHTML = emojiStr;

const socket = io();
let username, scrollDiff;

Expand Down
Loading