Файл vendors/bower_components/nouislider/documentation/examples/date-setup.js Вес запакованого файла 268b (268 b) Вес распакованого файла: 446b (446 b) Метод сжатия: 8
var dateSlider = document.getElementById('slider-date');
noUiSlider.create(dateSlider, {
// Create two timestamps to define a range.
range: {
min: timestamp('2010'),
max: timestamp('2016')
},
// Steps of one week
step: 7 * 24 * 60 * 60 * 1000,
// Two more timestamps indicate the handle starting positions.
start: [ timestamp('2011'), timestamp('2015') ],
// No decimals
format: wNumb({
decimals: 0
})
});