paveltyavin / multirangeslider

Slider for timetable and more
http://paveltyavin.github.io/multirangeslider/
MIT License
20 stars 6 forks source link

multirangeslider

[Build Status] (https://travis-ci.org/paveltyavin/multirangeslider)

Slider for multiple ranges.

slider

The idea comes from Elessar project. Thank you, Matt!

Main documentation is here.

Install && Usage

npm install multirangeslider

multirangeslider exports as a CommonJS (Node) module, an AMD module, or a browser global:

var multirangeslider = require('multirangeslider');
require(['multirangeslider'], function(multirangeslider) { ... });
<script src="https://github.com/paveltyavin/multirangeslider/raw/master/path/to/multirangeslider.js"></script>

Create an instance with var slider = new multirangeslider then add slider.el to the DOM somewhere.

var slider = new multirangeslider;
var yourElement = document.getElementById('your-element');
yourElement.appendChild(slider.el);

Documentation

See this page.

Licence

MIT