Skip to content

Commit

Permalink
v 0.4.4
Browse files Browse the repository at this point in the history
- Fix for iOS. Closes #26
- Fix eslintrc
- Fix sourcemaps, typos, ESDoc, etc
- Add git pre-commit
  • Loading branch information
Serhii Stryzhevskyi authored and Serhii Stryzhevskyi committed Sep 15, 2017
1 parent b73141c commit af91885
Show file tree
Hide file tree
Showing 16 changed files with 142 additions and 416 deletions.
295 changes: 0 additions & 295 deletions .eslintrc

This file was deleted.

9 changes: 9 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "standard",
"rules": {
"semi": 0,
"no-undef": 0,
"operator-linebreak": 0,
"space-before-function-paren": 0
}
}
4 changes: 1 addition & 3 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
.gitattributes
.gitignore
.jshintrc
.eslintrc.json
.idea/

bower.json
gulpfile.js

example/
20 changes: 8 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ Check out the [examples](http://stryzhevskyi.github.io/rangeSlider/).
* Buffer progressbar (for downloading progress etc.)

## Install
Install with [npm](https://www.npmjs.com/package/rangeslider-pure):
``npm install --save rangeslider-pure``

Install with [Bower](http://bower.io/):
``bower install --save rangeslider-pure``

Install with [npm](https://www.npmjs.org/):
``npm install --save rangeslider-pure``

## Usage

```js
// Initialize a new plugin instance for element or array of elements.
// Initialize a new plugin instance for one element or NodeList of elements.
var slider = document.querySelectorAll('input[type="range"]');
rangeSlider.create(slider, {
polyfill: true, // Boolean, if true, custom markup will be created
Expand All @@ -40,7 +40,7 @@ rangeSlider.create(slider, {
value: null, // Number, center of slider
buffer: null, // Number, in percent, 0 by default
stick: null, // [Number stickTo, Number stickRadius] : use it if handle should stick to stickTo-th value in stickRadius
borderRadius: 10, // Number, if you use buffer + border-radius in css for looks good,
borderRadius: 10, // Number, if you use buffer + border-radius in css for looks good,
onInit: function () {
console.info('onInit')
},
Expand All @@ -55,13 +55,9 @@ rangeSlider.create(slider, {
}
});

// then...
var giveMeSomeEvents = true; // or false
slider.rangeSlider.update({min : 0, max : 20, step : 0.5, value : 1.5, buffer : 70}, giveMeSomeEvents);
// or
slider.rangeSlider.onSlideStart: function (position, value) {
console.error('anotherCallback', 'position: ' + position, 'value: ' + value);
}
// update position
var triggerEvents = true; // or false
slider.rangeSlider.update({min : 0, max : 20, step : 0.5, value : 1.5, buffer : 70}, triggerEvents);

```

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rangeslider-pure",
"version": "0.4.3",
"version": "0.4.4",
"homepage": "https://github.com/Stryzhevskyi/rangeSlider",
"authors": [
"André Ruffert <andre@andreruffert.com>",
Expand Down
2 changes: 1 addition & 1 deletion dist/range-slider.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit af91885

Please sign in to comment.