Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

vote


jQuery Raty - A Star Rating Plugin

jQuery Raty is a plugin that generates a customizable star rating automatically.

With default options:

$('#default').raty();

<div id="default"></div>

Started with a score and read only value:

$('#fixed').raty({
    readOnly:  true,
    start:     2
});

<div id="fixed"></div>

With a custom score name and a number of stars:

$('#number').raty({
    scoreName:  'entity.score',
    number:     10
});

<div id="number"></div>

With a custom hint and icons:

$('#icon').raty({
    hintList:  ['a', '', null, 'd', '5'],
    starOn:    'medal-on.png',
    starOff:   'medal-off.png'
});

<div id="icon"></div>

Using onClick function:

$('#click').raty({
    onClick: function(score) {
      alert('score: ' + score);
    }
});

<div id="click"></div>

jPoll 1.0

jPoll is a widget that allows you to easily embed a poll or voting widget. Using the configurable properties you specify a question and the different answers. The web page on which it is used only needs an empty container element, the plugin will render the form, radio buttons and labels.

When the visitor makes a choice and submits it the widget will make an AJAX request to a server-side app. The app will need to do something with the results (put them in a DB maybe) and then pass back a JSON response.

Once the JSON is received the plugin will process it an display the results with some nice animations :D

Configurable properties are as follows:

  • ajaxOpts.url - [string] URL to server-side app
  • groupName - [string] group name for radios
  • groupsIDs - [array] labels and ids for radios
  • pollHeading - [string] heading of the widget
  • rowClass - [string] classname given to form containers (for styling)

Sexy Vote

Sexy Vote is a jQuery plugin that allows you to easily embed voting system on your web site. The only thing you should do is to write $("#vote").sexyVote() or something like this, and the rest of work will be done for you! Ah yes, you should also write callback function that will respond to user's voting (it will probably handle saving the vote on the server via AJAX request), but it's quite easy to write it. You can also configure plugin to customize its appearance. If you will like this plugin, please vote for it! :)