Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Displays max heat in the end

  • Loading branch information...
commit bade8cc6002228fe31476e182e865ecf4bd15741 1 parent 18fe738
Diogo Neves authored

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. +5 1 heatmap.html
6 heatmap.html
@@ -8,6 +8,7 @@
8 8 <body>
9 9 <div style'width:100%; height:100%;'>
10 10 <canvas id='heatmapView' width='600px' height='300px' style='border:1px solid #ececec;'></canvas>
  11 + <p id='maxheat'>Max Heat?</p>
11 12 </div>
12 13
13 14 <script>
@@ -96,8 +97,11 @@
96 97 };
97 98
98 99 var heatCanvas = document.getElementById('heatmapView');
  100 + var maxHeatLbl = document.getElementById('maxheat');
99 101 var drawHeatMap = function () {
100   - if (!heatCanvas) return;
  102 + if (!heatCanvas || maxHeat < 1) return;
  103 +
  104 + maxHeatLbl.innerText = maxHeat + 'ms';
101 105
102 106 var greenRange = new Range(0, maxHeat/3); // will be inverted
103 107 var blueRange = new Range(0, maxHeat/4); // will be inverted

0 comments on commit bade8cc

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