MCPcopy Index your code
hub / github.com/zeman/perfmap / heatmap

Function heatmap

perfmap.js:113–131  ·  view source on GitHub ↗
(heat)

Source from the content-addressed store, hash-verified

111}
112
113function heatmap(heat) {
114 if ( heat < 0.16 ) {
115 return "background: #1a9850;"
116 }
117 else if ( heat < 0.32 ) {
118 return "background: #66bd63;"
119 }
120 else if ( heat < 0.48 ) {
121 return "background: #a6d96a;"
122 }
123 else if ( heat < 0.64 ) {
124 return "background: #fdae61;"
125 }
126 else if ( heat < 0.8 ) {
127 return "background: #f46d43;"
128 }else{
129 return "background: #d73027;"
130 }
131}
132
133function getCumulativeOffset(obj, url) {
134 var left, top;

Callers 1

placeMarkerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected