Skip to content

bashirpour/unicode-emoji-picker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unicode Emoji Picker

😍 😜 😂 😛 Instantly get Emoji shortcode and unicode from Emoji menu 💥 ✨ 👍 🤘

Live Demo: https://bashirpour.github.io/unicode-emoji-picker/demo/

Installation & Usage:

  1. In your <head> section, add the following stylesheet links. Adjust the lib/css path to match yours.

    <link href="lib/css/emoji.css" rel="stylesheet">
  2. Add style position: relative; to your emoji menu location.

  3. Before the end of your <body> section, add the following JavaScript links. This library depends on jQuery, so jQuery must also be included, before these scripts are run. Once again, adjust the lib/js path to match yours.

    <!-- ** Don't forget to Add jQuery here ** -->
    <script src="lib/js/config.js"></script>
    <script src="lib/js/emoji-picker.js"></script>
  4. finally

    $(function () {
        window.emojiPicker = new EmojiPicker({
            assetsPath: 'lib/img/', 
            triggerButton: $("#__"), // Emoji Trigger Button Selector
            emojiMenuPlace: $("#__"), // Emoji Menu location Selector
            dontHideOnClick: 'emoji-picker', //avoid to hide on click that (`class name`)
            emojiResult: function (res) {
                // alert(JSON.stringify(res, null, 4));
                console.log(res);
            }
        });
        window.emojiPicker.discover();
    });

Options

  1. Use $.triggerEmojiMenu() for trigger emoji menu.

It will be updated soon ...

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published