Skip to content
Permalink
Browse files

Progressbar updates - using .animate()

  • Loading branch information
eduardolundgren committed Aug 9, 2008
1 parent 549fcf7 commit c654cd6ac56586daf7871104b42fad5e181cb125
Showing with 145 additions and 140 deletions.
  1. +68 −34 tests/visual/progressbar.html
  2. +77 −106 ui/ui.progressbar.js
@@ -89,7 +89,9 @@
border-top:1px solid #BEBEBE;
height:15px;
}

.bold {
color: red !important;
}
.ui-hidden {
left:-10000px;
position:absolute;
@@ -167,24 +169,27 @@ <h1>jQuery - ProgressBar</h1>

//align: 'right',

wait: 'loop',
width: 500,

duration: 1000,
duration: 5000,

stepping: 10,
interval: 500,

progress: function(range, ui) {
increment: 300,

progress: function(ui) {
//console.log(ui.pixelRange);
//console.log(range);
//console.log(ui);
//ui.instance.text('Waiting...');
},

stop: function(s, ui) {
//console.log('stop:' + ui.instance.inprogress);
stop: function(ui) {
//console.log('user stop', ui);
},

start: function() {
console.log('user start');
start: function(ui) {
//console.log('user start', ui);
console.log('p1', ui.identifier);
}

});
@@ -196,50 +201,79 @@ <h1>jQuery - ProgressBar</h1>

$('#p2').progressbar({

range: true,
text: 'Testing...',

//addClass: 'ui-progressbar-inner-custom teste',

//textClass: 'right-align',

wait: 2000,
//align: 'right',

duration:2000,
width: 500,

stepping: 5,
duration: 5000,

progress: function(range, ui) {
interval: 2000,

increment: 50,

progress: function(ui) {
//console.log(ui.pixelRange);
//console.log(range);
//console.log(ui);
//ui.instance.text('Waiting...');
},

stop: function(s, ui) {
//console.log('stop:' + ui.instance.inprogress);
stop: function(ui) {
//console.log('user stop', ui);
},

start: function() {
//console.log('user start');
start: function(ui) {
//console.log('user start', ui);
console.log('p2', ui.identifier);
}

});

}).trigger("click");


$('#p3-create').click(function() { $('#p3').progressbar({
$('#p3-create').click(function() {

duration: 2000,
$('#p3').progressbar({

stepping: 30,
//text: 'Testing again...',

stop: function(s, ui) {
console.log('stop:' + ui.instance.inProgress);
},
progress: function(range, ui) {
//console.log(ui.pixelRange);
//console.log(range);
},
start: function() {
console.log('user start');
}
}); }).trigger('click');
//addClass: 'ui-progressbar-inner-custom teste',

//textClass: 'right-align',

//align: 'right',

width: 700,

duration: 5000,

interval: 3000,

increment: 10,

progress: function(ui) {
//console.log(ui.pixelRange);
//console.log(ui);
//ui.instance.text('Waiting...');
},

stop: function(ui) {
//console.log('user stop', ui);
},

start: function(ui) {
//console.log('user start', ui);
console.log('p3', ui.identifier);
}

});
}).trigger('click');
});

if(!window.console) {

0 comments on commit c654cd6

Please sign in to comment.
You can’t perform that action at this time.