Skip to content

⚡️ Convert text to emojis in real time ⚡️ #HackKean2016

Notifications You must be signed in to change notification settings

jonmrod/emojify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

💾☎️👽 Emofify 👻💜🔉

Convert text to emoji representations in real time!

Live demo

Usage

When emojis.js is loaded, it will load objects of emoji names and keywords, save it in a global called allEmojis. allEmojis has this structure:

{
  "grinning": {
    "keywords": ["face", "smile", "happy", "joy"],
    "char": "😀",
    "category": "people"
  },
  "grin": {
    "keywords": ["face", "happy", "smile", "joy"],
    "char": "😁",
    "category": "people"
  },
  ...
}

The emojify api has 1 method:

  • ShowMeAEmoji(word) -- returns a boolean if the emoji synosym word exists in emojis.js, or false if it doesn't exist.
  • if the emoji exists, a <i class> will returned with the emoji word appended inside the class (which will show the awesome emoji), otherwise the text character will be returned

This was made as part of 🔋 Hack Kean 2016 🔌 and is powered by emojilib, and [emojicss] (http://afeld.github.io/emoji-css/)

About

⚡️ Convert text to emojis in real time ⚡️ #HackKean2016

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages