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

jquery-asPieProgress

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jquery-asPieProgress

A jQuery plugin that animate the progress bar

  • 0.3.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
51
increased by27.5%
Maintainers
1
Weekly downloads
 
Created
Source

jQuery asPieProgress

A jQuery plugin that animate the pie progress.

Usage

Import this libraries:

  • jQuery
  • jquery-asPieProgress.js

And CSS:

  • progress.css

Create base html element:

    <div class="pieProgress" role="progressbar" data-goal="100" aria-valuemin="0" data-step="2" aria-valuemax="100">
        <div class="progress__meter"><span class="progress__label"></span></div>
    </div>

Initialize progress:

$(".progress").asPieProgress({
    namespace: 'pieProgress'
});

Settings

{
    namespace: 'asPieProgress',
    min: 0,
    max: 100,
    goal: 100,
    step: 1,
    speed: 50, // refresh speed
    delay: 300,
    easing: 'ease',
    label: function(n) {
        var percentage = this.getPercentage(n);
        return percentage;
    },
    onStart: function(){},
    onStop: function(){},
    onUpdate: function(){},
    onReset: function(){}
}

Public methods

jquery asPieProgress has different methods , we can use it as below :

$(".progress").asPieProgress("start");
$(".progress").asPieProgress("stop");
$(".progress").asPieProgress("done");
$(".progress").asPieProgress("go", 50);
$(".progress").asPieProgress("go", '50%');
$(".progress").asPieProgress("reset");

Event

  • asPieProgress::start
  • asPieProgress::stop
  • asPieProgress::done
  • asPieProgress::update
  • asPieProgress::reset

Author

amazingSurge

Creit

License

jQuery-asPieProgress plugin is released under the GPL licence.

FAQs

Package last updated on 08 Sep 2016

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