GithubHelp home page GithubHelp logo

darkwing / progressbar Goto Github PK

View Code? Open in Web Editor NEW
12.0 3.0 4.0 371 KB

ProgressBar is a highly customizable MooTools progress bar class that animates to the desired percentage and can be styled in any manner by CSS.

Home Page: http://davidwalsh.name/js/progressbar

JavaScript 100.00%

progressbar's Introduction

ProgressBar

ProgressBar is a highly customizable MooTools progress bar class that animates to the desired percentage and can be styled in any manner by CSS.

Screenshot

How to Use

ProgressBar can be initialized at any time but is generally initialized at the top of the document during the page's normal load. There are no required arguments -- only options.

HTML

<div id="put-bar-here2"></div>

Javascript

var pb = new dwProgressBar({
	container: $('put-bar-here2'),
	startPercentage: 10,
	speed:1000,
	boxID: 'box2',
	percentageID: 'perc2',
	displayID: 'text',
	displayText: true,
	step:15,
	onComplete: function() {
		alert('Done!');
	},
	onChange: function() {
		alert('Changed!');
	}
});

For specific usage and options, please read the documentation or visit http://davidwalsh.name/js/progressbar

progressbar's People

Contributors

darkwing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

progressbar's Issues

Using Ids

Hi,

I was trying to implement your ProgressBar. Great work though i was wondering : why are you using ids for each part of the ProgressBar ? Using a class names and accessing the objects using container.getElement('.myclass') would work perfectly and you wouldn't have to define ids for each loader you wana set on a page.

For instance, if i want to create two loaders and i don't want to bother defining ids for each, then your script is going to set the same id for each bar. I know i could just define the ids, but when doing group work, you never know what id has already been used so i try avoiding them.

I'm not an expert so if i'm wrong, do not hesitate to correct me.

Anyway, thanks for this great tool !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.