Skip to content
master
Switch branches/tags
Code
This branch is 6 commits ahead of SCRAPTURE:master.
Contribute

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

jQuery Emoji Plugin

A simple, lightweight jQuery plugin for emoji parser. :tounge:

HarryUK: updated by HarryUK + :gaypride: :golfguy: :golfgirl: :mfinger: :horserider:

Installation

Include script after the jQuery library (unless you are packaging scripts somehow else):

Requires jQuery 1.8 or later.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script src="/path/to/jquery.emoji.js"></script>

Usage

Very simple.

<script type="text/javascript">
$(document).ready(function(){
    $(".comment").each(function(i, d) {
        $(d).emoji();
    });
});
</script>
<div class="comment">
    <p>:+1:</p>
</div>

You can also change the url of emojis:

$(".comment").emoji(emoji_url_temp);
// Or...
$.emoji.url = emoji_url;

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Author

linyows

License

Copyright (c) 2012 linyows Licensed under the MIT license.

About

A simple, lightweight jQuery plugin for emoji parser.

Resources

License

Releases

No releases published

Packages

No packages published

Languages