Commit 55e99e73 authored by VANDAELE Julien's avatar VANDAELE Julien
Browse files

use the defined $() function, instead of document.getElementById()

parent ead6de2a
......@@ -80,7 +80,7 @@ window.onload = function() {
// create a heatmap instance
var heatmap = h337.create({
container: document.getElementById('heatmapContainer'),
container: $('heatmapContainer'),
maxOpacity: .5,
radius: 10,
blur: .75,
......@@ -154,12 +154,12 @@ window.onload = function() {
$('refreshButton').onclick = function() { getMeasures(); };
$('teamSelector').onchange = function() { getMeasures(); };
$("radiusSlider").onchange = function(){
value = document.getElementById("radiusSlider").value;
value = $("radiusSlider").value;
radius = Math.max(Math.floor(height/testbedheight),Math.floor(width/testbedwidth))*value;
drawMap();
};
$("maxlumSelector").onchange = function(){
value = document.getElementById("maxlumSelector").value;
value = $("maxlumSelector").value;
maxLuminosityValue = value;
drawMap();
};
......
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