Download
User Rating: 0/5 ( 0 votes)
Powerange is a range slider control, inspired heavily by iOS 7 and the "Power Rangers" TV series. It is easily customizable, both by CSS and JavaScript. With it's many features, including changing color and overall style, switching between horizontal and vertical style, custom min, max and start values, custom step interval, displaying decimal values, displaying icons instead of min/max numbers, it is a really powerful UI tool to use on your website.
A great cross-browser solution, supporting: Google Chrome 14+, Mozilla Firefox 6.0+, Opera 11.6+, Safari 5+, IE 9+
1. INCLUDE CSS AND JS FILES
<link rel="stylesheet" href="dist/powerange.css" />
<script src="dist/jquery.js"></script>
<script src="dist/powerange.js"></script>
2. HTML
<input type="text" class="js-range" />
3. JAVASCRIPT
var elem = document.querySelector('.js-range');
var init = new Powerange(elem);
4. OPTIONS
defaults = {
callback : function() {}
, decimal : false
, disable : false
, disableOpacity: 0.5
, hideRange : false
, klass : ''
, min : 0
, max : 100
, start : null
, step : null
, vertical : false
};
-
callback - function invoked on initialization and on slider handle movement
-
decimal - display decimal number
-
disable - enable or disable slider
-
disableOpacity - opacity of the disabled slider
-
hideRange - show or hide min and max range values
-
klass - additional class for the slider wrapper for extra customization
-
min - minimum range value
-
max - maximum range value
-
start - starting value
-
step - step of the handle
-
vertical - toggle between horizontal or vertical slider