<div id="slider" class="hx-slider"></div>
var slider = new hx.Slider('#slider');
<div id="slider2" class="hx-slider"></div>
var slider = new hx.Slider('#slider2', {type: 'range'});
function (slider, elem, value) {
hx.select(elem).text(hx.format.fixed(2)(value));
}
function (slider, elem, value) {
hx.select(elem).text(hx.format.fixed(2)(value));
}