Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Simple Tag Cloud Plugin for JQuery
JavaScript
branch: master

Merge pull request #5 from robinmalburn/short_hex_fix

Fix: Changed handling of short hex colours.
latest commit 5c3040c87f
Adam Groves authored
Failed to load latest commit information.
LICENSE Added license
README.md clarify README
jquery.tagcloud.js Fix: Changed handling of short hex colours.

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.

Something went wrong with that request. Please try again.