Commit 3ef30db0 authored by VANDAELE Julien's avatar VANDAELE Julien
Browse files

typo on a one hundred value

parent 06c12562
......@@ -8,7 +8,7 @@
body { font-family:sans-serif; }
body * { font-weight:200;}
#heatmapContainerWrapper { width:100%; height:100%; position:absolute; background:rgba(0,0,0,.1); }
#heatmapContainer { width:1000%; height:100%;}
#heatmapContainer { width:100%; height:100%;}
#heatmapLegend { background:white; position:absolute; bottom:0; right:0; padding:10px; }
#form { background:white; position:absolute; bottom:100; right:0; padding:10px; }
#min { float:left; }
......@@ -30,7 +30,7 @@
<input id="radiusSlider" type="range" min=1 max=20 name="radius"><br>
Change scale max value: <br>
<input id="maxlumSelector" type="integer" min=1 max=1000 name="maxlum"><br>
</form>
</form>
</div>
<div id="heatmapLegend">
<h2>Luminosity</h2>
......@@ -90,12 +90,12 @@
});
var width = (+window.getComputedStyle(document.body).width.replace(/px/,''));
var height = (+window.getComputedStyle(document.body).height.replace(/px/,''));
var measures = [];
//////////////////////////////////////////////////
// VARIABLES YOU CAN CHANGE //
//////////////////////////////////////////////////
......@@ -103,8 +103,8 @@
var testbedheight = 160;
var maxLuminosityValue = 200;
var radius = Math.max(Math.floor(height/testbedheight),Math.floor(width/testbedwidth))*11;
var generate = function() {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
......@@ -134,7 +134,7 @@
t.push({ x: Math.floor(x*width/testbedwidth), y: Math.floor(y*height/testbedheight), value: value, radius: radius });
}
console.log(t);
var init = +new Date;
// set the generated dataset
heatmap.setData({
......@@ -164,4 +164,3 @@
</script>
</body>
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment