yohoho.smylies
v2.0.1
Published
A text transform into smiley jQuery plugin
Downloads
2
Maintainers
Readme
Smylies
a text transform into smiley very light jQuery plugin
Package manager
//bower
bower install --save yohoho.smylies
//npm
npm install yohoho.smylies
Install
<!-- In your <body> HTML tag -->
<textarea id="to-transform"></textarea>
<div id="smiley">
<a href="#" data-code="-_-" title="-_-">Ambivalent</a>
<a href="#" data-code=":angel:" title=":angel:">Angel</a>
<a href="#" data-code=":angry:" title=":angry:">Angry</a>
<a href="#" data-code=":miaou:" title=":miaou:">Cat</a>
</div>
//in your main JS file
$('#to-transform').smylies({
smiley: '#smiley'
});
Settings
Option | Type | Default | Description
------ | ---- | ------- | -----------
smiley | string | '#smiley' | Node element containing all smilies links with their data-code
attributes
Dependencies
jQuery 2.1.4
Authors and Copyright
Made with ♥ by Achraf Chouk
- http://fr.linkedin.com/in/achrafchouk/
- http://twitter.com/crewstyle
- http://github.com/crewstyle
Please, read LICENSE for more details.