diff --git a/dist/js/emoji.js b/dist/js/emoji.js index e69de29..37cf341 100644 --- a/dist/js/emoji.js +++ b/dist/js/emoji.js @@ -0,0 +1,105 @@ +// Get emojis from file +function get_emojo_json(callback) +{ + let xhr = new XMLHttpRequest(); + xhr.open("GET", "/emoji.json"); + xhr.onreadystatechange = function() { + if (this.readyState === XMLHttpRequest.DONE) + callback(this.response); + }; + xhr.send(); +} + +function construct_emojo_picker() +{ + let emoji_picker = document.createElement("div"); + emoji_picker.className = "emoji-picker"; + emoji_picker.innerHTML = `
+ + | ++ + | ++ + | ++ + | ++ + | ++ + | ++ + | ++ + | +