Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 560 Bytes

README.md

File metadata and controls

26 lines (21 loc) · 560 Bytes

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.