A simple jQuery plugin to make a UL list into a "A, B and 3 other people like this thing" that can be expanded. The verbs and separators can be customized to fit different needs.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
likeablelist.css
likeablelist.js

README.md

Likeablelist

A simple jQuery plugin to make a UL list into a A, B and 3 other people like this thing that can be expanded. The verbs and separators can be customized to fit different needs. A click event is bound that toggles expansion/folding of the list.

Usage

<link rel="stylesheet" href="css/likeablelist.css" />
<script type="text/javascript" src="js/likeablelist.js" />
<script>
  // Default options used if none are given
  var options = {
    nFold: 3,
    verb: 'like this',
    verbSingular: 'likes this',
    separator: ',',
    lastSeparator: 'and',
    qnty: 'others',
    qntySingular: 'other'
  };

  $(element).likeablelist(options);
</script>

End stuff