Skip to content

crewstyle/yohoho.smylies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 latest version

Authors and Copyright

Made with ♥ by Achraf Chouk

Please, read LICENSE for more details.

About

A text transform into smiley jQuery plugin

Resources

License

Stars

Watchers

Forks

Packages

No packages published