From ec4f739206179c6b3f1d41ef0fe354119615b172 Mon Sep 17 00:00:00 2001 From: Zach Millman Date: Mon, 14 Apr 2014 16:51:39 -0700 Subject: [PATCH] README.md organization (installation to the top) --- README.md | 49 +++++++++++++++++++++++-------------------------- 1 file changed, 23 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 5354e3b..bf117b4 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,29 @@ that tastes great with [Rails](https://github.com/rails/rails) and This project was originally designed for Rails, but the core plugin is flexible enough to use anywhere. +Installation +------------ + +Add this line to your application's `Gemfile`: +```ruby +gem 'jquery-infinite-pages' +``` + +And then execute: +``` +bundle install +``` + +Add to your `application.js` file: +```javascript +//= require jquery.infinite-pages +``` + +### Non-Rails + +Just copy the `jquery.infinite-pages.js.coffee` file from `app/assets/javascripts` to +wherever you want it. + Usage ----- jQuery Infinite Pages binds to an element containing a `rel="next"` pagination link and @@ -47,32 +70,6 @@ $('.infinite-table').infinitePages('pause') $('.infinite-table').infinitePages('resume') ``` -Installation ------------- - -Add this line to your application's Gemfile: - -```ruby -gem 'jquery-infinite-pages' -``` - -And then execute: - -``` -bundle install -``` - -Add to your `application.js`: - -```javascript -//= require jquery.infinite-pages -``` - -### Non-Rails - -Just copy the `jquery.infinite-pages.js.coffee` file from `app/assets/javascripts` to -wherever you want it. - Rails/Kaminari Example ----------------------