From baad0c61948bbf6f1c8e81d86f0252371d3570e5 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Mon, 12 Jun 2017 20:13:31 +0700 Subject: [PATCH 1/2] Create readme.md --- readme.md | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/readme.md b/readme.md index 0c36ea3..8ed7796 100644 --- a/readme.md +++ b/readme.md @@ -14,34 +14,42 @@ 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 `` 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 `` tag: + ```html - + ``` -It will automatically bind to all `` elements, even newlt injected ones. + +It will automatically bind to all `` 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 - + ``` -### 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) From 369fa35c3dd279ac4fbc136c3ed08aef27b900b6 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Mon, 12 Jun 2017 20:14:36 +0700 Subject: [PATCH 2/2] Create readme.md --- readme.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/readme.md b/readme.md index 8ed7796..17cd36f 100644 --- a/readme.md +++ b/readme.md @@ -32,8 +32,6 @@ You can load RangeTouch from our CDN (backed by the awesome [Fastly](https://www ### 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 ``` @@ -44,8 +42,6 @@ npm install rangetouch [![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 ```