https://github.com/kshirish/populartags
This jquery plugin renders tags(font-size, color) based upon their priority.
https://github.com/kshirish/populartags
Last synced: about 1 year ago
JSON representation
This jquery plugin renders tags(font-size, color) based upon their priority.
- Host: GitHub
- URL: https://github.com/kshirish/populartags
- Owner: kshirish
- Created: 2014-08-28T16:03:49.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-08-28T17:10:39.000Z (almost 12 years ago)
- Last Synced: 2024-03-15T22:03:39.084Z (over 2 years ago)
- Language: JavaScript
- Size: 145 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PopularTags
===========
This jquery plugin renders tags(font-size, color) based upon their priority.
DOCUMENTATION
===========
Just below code to start and you're done !
$(document).ready(function(){
var fontMin = 20, fontMax = 45;
// each tag should have a priority as well as an id through which they can be distinguished among each other
var items = [
{
id: 1,
title: "Rain",
priority: 4
},
{
id: 2,
title: "Food",
priority: 4
},
{
id: 3,
title: "LOVE",
priority: 1
},
{
id: 5,
title: "Linux",
priority: 0
},
{
id: 4,
title: "Blog",
priority: 1
}];
//passon json as data and font-range to setTags()
$('#tagContainer').setTags(items, fontMin, fontMax);
});
LOOKS SOMETHING LIKE THIS !
