Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pietimer-cis

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pietimer-cis

  • 0.0.6
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

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");
}

FAQs

Package last updated on 07 Nov 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc