HeatMap 0.3

HeatMap is a MooTools class that allows you to detect, load, save, and render clicks on a given element. Saving and loading is done via AJAX and is as simple as calling load and save methods.



Details

Author
David Walsh
Current version
0.3
GitHub
darkwing/HeatMap
Downloads
12607
Category
Interface
Tags
Report
GitHub Issues

Releases


Dependencies

  • core/1.2.1: *

How to use

HeatMap should be initialized during the DOMReady event. There are several options you may choose from.

/* HeatMap instance */
var map = new HeatMap('ricci-map',{
    zone: 'cricci',
    save: { url: 'heat-map.php' },
    load: { url: 'heat-map.php' },
    onSpot: function(spot) {
        spot.setStyle('opacity',0).fade(1);
    }
});
document.id('loader').addEvent('click',function() {
    map.load();
});
document.id('saver').addEvent('click',function() {
    map.save();
});

For specific usage and options, please read the documentation or visit http://davidwalsh.name/js/heatmap


Discuss

A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.

Found a bug in this plugin? Please report it this repository's Github Issues.

blog comments powered by Disqus