Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zoho/zomoji-web-library

This repo contains js, css and image files required to convert text codes into zomojis.
https://github.com/zoho/zomoji-web-library

emoji emoji-animation emojis emoticon emoticon-animation emoticons smiley smiley-animation smileys

Last synced: about 1 month ago
JSON representation

This repo contains js, css and image files required to convert text codes into zomojis.

Awesome Lists containing this project

README

        

# zomoji-web-library
This library can convert this ":curious:"

into this

curious

or this

curious

or this :O

curious

# Usage
Include the js and required css file based on the size and type
```

```

```

var config = {};
var zomoji = new Zomoji( config ); //config optional
var zomojifiedhtml = zomoji.replace( textcontent );
//Insert this zomojifiedhtml to get zomoji in the place of text content.

//Sample zomoji.replace conversion
//Input "Hello :) How are you :curious!:"
//Output "Hello <em title=smile class='zomoji-w-24-smile'></em> How are you <em title=curious class='zomojianim-24-curious'></em>"

```

You can pass size of the emoji and its type in config object.

Supported options are:
* type //Type can be "workplace" or "fun"
* default_size //Size for the zomoji when it is present alone
* along_text_size //Size for the zomoji when it comes along the text

Available size options are 24, 48, 72

# Live zomojis
To get live zomojis (animated version) exclamation need to be appended in the text code.
For example, :smile!: will show live version of zomoji