A Simple Tag Cloud Plugin for JQuery
JavaScript
Switch branches/tags
Nothing to show
Latest commit 4a85889 Dec 10, 2015 @addywaddy addywaddy Merge pull request #13 from rarila/patch-1
Add package.json
Permalink
Failed to load latest commit information.
LICENSE Added license Mar 9, 2009
README.md clarify README Feb 24, 2011
jquery.tagcloud.js Fix: Changed handling of short hex colours. Jan 13, 2013
package.json Use https url Nov 29, 2015

README.md

jquery.tagcloud.js

Usage

<div id="whatever">
  <a href="/path" rel="7">peace</a>
  <a href="/path" rel="3">unity</a>
  <a href="/path" rel="10">love</a>
  <a href="/path" rel="5">having fun</a>
</div>

and then:

$.fn.tagcloud.defaults = {
  size: {start: 14, end: 18, unit: 'pt'},
  color: {start: '#cde', end: '#f52'}
};

$(function () {
  $('#whatever a').tagcloud();
});

Demo

Check it out here.