A simple, lightweight jQuery plugin for emoji parser. 👅
Include script after the jQuery library (unless you are packaging scripts somehow else):
<script src="/path/to/jquery.emoji.js"></script>
Very simple.
<script type="text/javascript">
$(document).ready(function(){
$('.comment').each(function(i, d){
$(d).emoji();
});
});
</script>
...
<div class="comment">
<p>:+1:</p>
</div>
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Copyright (c) 2012 linyows Licensed under the MIT license.