2.0.1 • Published 8 years ago

yohoho.smylies v2.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

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

OptionTypeDefaultDescription
smileystring'#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.