No commit activity in last 3 years
No release in over 3 years
A Rails Gem to include the JQuery Plugin for CountTo
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0
 Project Readme

JqueryCountToRails

This is a simple Rails Gem to add the JQuery CountTo Plugin to your Asset Pipeline.

##Installation Add this line to your application's Gemfile:

gem 'jquery_count_to_rails'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install jquery_count_to_rails

##Usage To include the relevant JQuery library simply add the following to app/assets/javascripts/application.js

//= require jquery-countTo

Once you've included it, you can use the library in any of your views like so:

<span class="timer" data-from="0" data-to="100" data-speed="5000" data-refresh-interval="50">100</span>

<script type="text/javascript">
  $('.timer').countTo();
</script>

##Contributing To contribute please begin by creating an issue on this Repo. Once you've done that, fork this Repo, then, on your fork, make any desired changes.

Please name your branch as follows:

feature/#{Github Issue Number}-#{Description of Issue}

Then make a PR onto this repo with your desired changes.

##License The gem is available as open source under the terms of the MIT License.