Commit ead6de2a authored by VANDAELE Julien's avatar VANDAELE Julien
Browse files

add a 'refresh' button to re-do an HTTP request, instead of a click in the lightmap container

parent 4e73911b
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
<input id="radiusSlider" type="range" min=1 max=20 name="radius"><br> <input id="radiusSlider" type="range" min=1 max=20 name="radius"><br>
Change scale max value: <br> Change scale max value: <br>
<input id="maxlumSelector" type="integer" min=1 max=1000 name="maxlum"><br> <input id="maxlumSelector" type="integer" min=1 max=1000 name="maxlum"><br>
<input id="refreshButton" type="button" value="Refresh" />
</form> </form>
</div> </div>
<div id="heatmapLegend"> <div id="heatmapLegend">
...@@ -150,7 +151,7 @@ window.onload = function() { ...@@ -150,7 +151,7 @@ window.onload = function() {
getMeasures(); getMeasures();
// whenever a user clicks on the ContainerWrapper the data will be regenerated -> new max & min // whenever a user clicks on the ContainerWrapper the data will be regenerated -> new max & min
$('heatmapContainerWrapper').onclick = function() { getMeasures(); }; $('refreshButton').onclick = function() { getMeasures(); };
$('teamSelector').onchange = function() { getMeasures(); }; $('teamSelector').onchange = function() { getMeasures(); };
$("radiusSlider").onchange = function(){ $("radiusSlider").onchange = function(){
value = document.getElementById("radiusSlider").value; value = document.getElementById("radiusSlider").value;
......
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