Skip to content

Commit

Permalink
Merge branch 'master' of github.com:SamPotts/rangetouch
Browse files Browse the repository at this point in the history
# Conflicts:
#	readme.md
  • Loading branch information
sampotts committed Jun 21, 2017
2 parents 0d815e7 + 369fa35 commit 46e6b12
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,34 +14,38 @@ While building [plyr](https://plyr.io) I noticed how bad the experience was tryi
- No dependencies (written in "vanilla" JavaScript)

## Quick setup
To use RangeTouch, you just need to add `rangetouch.js` (either from the `/dist` (minified) or `/src/js` (unminified) folders) before the closing `</body>` tag like so:
To use RangeTouch, you just need to add `rangetouch.js` (either from the `/dist` (minified) or `/src/js` (unminified) folders). Ideally before the closing `</body>` tag:

```html
<script src="/path/to/rangetouch.js"></script>
<script src="/path/to/rangetouch.js" async></script>
```
It will automatically bind to all `<input type="range">` elements, even newlt injected ones.

It will automatically bind to all `<input type="range">` elements, even newly injected ones as it uses event delegation.

### CDN
You can even load RangeTouch from our CDN if you'd like:
You can load RangeTouch from our CDN (backed by the awesome [Fastly](https://www.fastly.com/)) if you'd like:

```html
<script src="https://cdn.rangetouch.com/1.0.5/rangetouch.js"></script>
```

### Node Package Manager (NPM)
### Node / NPM
[![npm version](https://badge.fury.io/js/rangetouch.svg)](https://badge.fury.io/js/rangetouch)

Using NPM, you can grab RangeTouch:
```
```bash
npm install rangetouch
```

[https://www.npmjs.com/package/rangetouch](https://www.npmjs.com/package/rangetouch)

### Bower

[![Bower version](https://badge.fury.io/bo/rangetouch.svg)](https://badge.fury.io/bo/rangetouch)

If bower is your thang, you can grab RangeTouch using:
```
```bash
bower install rangetouch
```

[http://bower.io/search/?q=rangetouch](http://bower.io/search/?q=rangetouch)

More info on setting up dependencies can be found in the [Bower Docs](http://bower.io/docs/creating-packages/#maintaining-dependencies)
Expand Down

0 comments on commit 46e6b12

Please sign in to comment.