yohoho.smylies

2.0.1 • Public • Published

Smylies Build Status

a text transform into smiley very light jQuery plugin
npm version GitHub version

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

Please, read LICENSE for more details.

Package Sidebar

Install

npm i yohoho.smylies

Weekly Downloads

3

Version

2.0.1

License

MIT

Last publish

Collaborators

  • crewstyle