Skip to content
Browse files

add render button

  • Loading branch information...
1 parent 1f1f18c commit c046cd06966b6caa15e451f9dfe9183be0e197eb mpd committed
Showing with 7 additions and 0 deletions.
  1. +2 −0 heatmap.html
  2. +5 −0 heatmap.js
View
2 heatmap.html
@@ -7,6 +7,8 @@
<img id="trackme" src="img.jpg" />
</div>
+ <button id="doRender">RENDER</button>
+
<div id="result_container" style="position: relative;">
<img id="result" src="img.jpg" />
<canvas id="overlay" style="opacity: 0.5; position: absolute; top: 0; left: 0;"></canvas>
View
5 heatmap.js
@@ -291,6 +291,11 @@ $(function () {
renderHeat(normalizeHeat(smoothHeat(heat)));
};
+ $('#doRender').click(function (e) {
+ window.doRender();
+ e.preventDefault();
+ });
+
// setInterval(function () {
// renderHeat(normalizeHeat(smoothHeat(heat)));

0 comments on commit c046cd0

Please sign in to comment.
Something went wrong with that request. Please try again.