0.0
No commit activity in last 3 years
No release in over 3 years
pietimer-cis will provide you a counter as a pie
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

pietimer-cis

With the help of this gem you can easily have the counter as a pie for your application on load(page load). :-)

INSTALLTION

First thing you need to do is the installation , you can follow the below mentioned steps to install the gem inside your rails application. You need to add sudo if you are not using rvm(ruby version manager)

gem install pietimer-cis -v 0.0.5

Add this following line in your Gemfile and then run bundle install.

gem "pietimer-cis", "~> 0.0.5"

USAGE

Once you have installed this gem you can do the following :-

#Call generater for required js of pietimer-cis.

rails generate pietimer_cis:install

#application.html.haml

  #demo

'pietimer_tag' put where you want the pietimer.

  = pietimer_tag(:id=>"demo",:time=>10,:color=>'green',:callback=>"function(){alert('Hello World')}") 

here,in pietimer_tag we can set any time period,color and can call any function but that must be defined.

OR

  = pietimer_tag(:id=>"demo",:time=>10,:color=>'green',:callback=>"function(){test();}")
function test(){
	alert("This is testing");
}