Commit 362b9eb7 authored by FUMEY Clement's avatar FUMEY Clement
Browse files

Add input for Radius and MaxScale

parent 5e32dd01
......@@ -26,6 +26,10 @@
<form id="form">
Select team map:<br>
<input id="teamSelector" type="text" name="team"><br>
Change radius: <br>
<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>
</div>
<div id="heatmapLegend">
......@@ -109,7 +113,7 @@
}
};
var path = "measure";
var teamSelector = document.getElementById("teamSelector").value;
var teamSelector = $("teamSelector").value;
console.log(path);
console.log(teamSelector);
if ( teamSelector !== undefined && teamSelector !== "undefined" && teamSelector !== "" ){
......@@ -144,7 +148,17 @@
generate();
// whenever a user clicks on the ContainerWrapper the data will be regenerated -> new max & min
document.getElementById('heatmapContainerWrapper').onclick = function() { generate(); };
$('heatmapContainerWrapper').onclick = function() { generate(); };
$("radiusSlider").onchange = function(){
value = document.getElementById("radiusSlider").value;
radius = Math.max(Math.floor(height/testbedheight),Math.floor(width/testbedwidth))*value;
generate();
};
$("maxlumSelector").onchange = function(){
value = document.getElementById("maxlumSelector").value;
maxLuminosityValue = value;
generate();
};
};
</script>
......
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