File: update-setup.js

package info (click to toggle)
node-nouislider 15.6.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,880 kB
  • sloc: javascript: 5,123; php: 464; sh: 32; python: 28; makefile: 11
file content (17 lines) | stat: -rw-r--r-- 406 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
var updateSlider = document.getElementById('slider-update');
var updateSliderValue = document.getElementById('slider-update-value');

noUiSlider.create(updateSlider, {
    range: {
        'min': 0,
        'max': 40
    },
    padding: 6,
    start: 20,
    margin: 2,
    step: 2
});

updateSlider.noUiSlider.on('update', function (values, handle) {
    updateSliderValue.innerHTML = values[handle];
});