Skip to content

Automatically exported from code.google.com/p/jemotions

Notifications You must be signed in to change notification settings

indianscout/jemotions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jEmotions v1.1.0 jQuery Plugin

jQuery Emotions (jEmotions) is a simple but powerful utility to search and replace emotics with emotic-images.

Supported emotions

  • (bomb) @==
  • (laugh) :D :-D :~D :^D
  • (smile!) :} :-} :~} :^}
  • (smile) :-) :-] :~) :^) =-)
  • (cool) |) |] |} |~) |^) |-) |-]
  • (kiss) :* :-* :^* =-* =^*
  • (tongue) :P :P :-p :^P =-P =^P :^p =-p =^p
  • (!funny) (!funny!) :/)
  • (devil) 3:) (6) }:-) ]:-)
  • (soso) :| :-| :~| :^|
  • (hmm) :-\ :\ :^\ :-/ :/ :^/
  • (shutup) :X :# :-X :X :^X :-# :# :^#
  • (ohh) :-O :~O :^O :-0 :~0 :^0 :-o :~o :^o
  • (blink) ;) ;] ;} ;-) ;~) ;^) ;^}
  • (angry) :@
  • (sad) :-( :-[ :-{
  • (cry) :.( :.[ :.{

Test

  $(function(){
    $('p').jEmotions();
  });
  <p>(bomb) @== (laugh) :D :-D :~D :^D (smile!) :} :-} :~} :^} (smile) :-) :-] :~) :^) =-) (cool) |) |] |}  |~) |^) |-) |-] (kiss) :* :-* :^* =-* =^* (tongue) :P :p :-p :^P =-P =^P :^p =-p =^p (!funny) (!funny!) :/) (devil) 3:) (6) }:) ]:) (soso) :| :-| :~| :^| (hmm) :-\ :~\ :^\ :-/ :~/ :^/ (shutup) :X :# :-X :-X :~X :^X :-# :~# :^# (ohh) :-O :~O :^O :-0 :~0 :^0 :-o :~o :^o (blink) ;) ;] ;} ;-) ;~) ;^) ;^} (angry) :@ (sad) :-( :-[ :-{ (cry) :.( :.[ :.{</p>

Jsfiddle

http://jsfiddle.net/tntdfch5

Extend

  $(function(){
      $('p').jEmotions({
        map: { 
            '(blabla)': 'myEmotion-blabla',
            '(juppi)': 	'myEmotion-juppi',
            '(jeepee)': 'myEmotion-jeepee' 
          }, 
      emplate: '<img class="jEmotion myEmotion %" src="/path/to/myDmyImg.gif" />'
    });
  });
  .myEmotion{
    background-image: url(myEmotionsSprite.png) ! important;
  }
  .myEmotion.myEmotion-blabla{
    background-position: -10px -10px;
  }
  .myEmotion.myEmotion-juppi{
    background-position: -10px -30px;
  }
  .myEmotion.myEmotion-jeepee{
    background-position: -10px -50px;
  }
  <p>(bomb) @== (laugh) :D :-D :~D :^D (smile!) :} :-} :~} :^} (smile) :-) :-] :~) :^) =-) (cool) |) |] |}  |~) |^) |-) |-] (kiss) :* :-* :^* =-* =^* (tongue) :P :p :-p :^P =-P =^P :^p =-p =^p (!funny) (!funny!) :/) (devil) 3:) (6) }:) ]:) (soso) :| :-| :~| :^| (hmm) :-\ :~\ :^\ :-/ :~/ :^/ (shutup) :X :# :-X :~X :^X :-# :~# :^# (ohh) :-O :~O :^O :-0 :~0 :^0 :-o :~o :^o (blink) ;)  ;] ;} ;-) ;~) ;^) ;^} (angry) :@  (sad) :-(  :-[ :-{ (cry) :.(  :.[ :.{</p>

License

Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL (http://www.opensource.org/licenses/gpl-3.0.html).

Dependencies

jQuery Core Plugin

About

Automatically exported from code.google.com/p/jemotions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published