### Sliders

### Result

Drag a slider above, to see the result or errors :)

### Code

    // .....
    // init rangesliders with callback function
    rangeslider('.range', {
       slide: (_slider, _error) => {

          // check if there was an error
          if(_error.length) {
             document.querySelector('.sliderValues').innerHTML = 'ERROR: ' + _error.join(',');
          } else {

             // set slider element
             let slider = _slider.currentTarget;

             // get slider information
             console.log('
                min:   ' + slider.min + '
                max:   ' + slider.max + '
                step:  ' + slider.step + '
                value: ' + slider.value + '
                class: ' + slider.className.split(' ')[1])
          }
       },
       // slide completed
       complete: (_slider) => {
          console.log('complete', _slider.currentTarget.value)
       },
       // slide started
       start: (_slider) => {
          console.log('start', _slider.currentTarget.value)
       }
    })