Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

MooTools HeatMap allows you to detect, load, save, and render user clicks on any given area of the page.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 Docs
Octocat-spinner-32 PHPRenderer
Octocat-spinner-32 Source
Octocat-spinner-32 README.md
Octocat-spinner-32 package.yml
README.md

HeatMap

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.

Screenshot

How to Use

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

#JS
/* 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

Something went wrong with that request. Please try again.