mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Progressbar demo: Speed up the progress a bit to make them less annoying
This commit is contained in:
parent
7d0ca5e37d
commit
22de101e40
@ -69,7 +69,7 @@
|
||||
progressbar.progressbar( "value", val + Math.floor( Math.random() * 3 ) );
|
||||
|
||||
if ( val <= 99 ) {
|
||||
progressTimer = setTimeout( progress, 100 );
|
||||
progressTimer = setTimeout( progress, 50 );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -39,14 +39,14 @@
|
||||
function progress() {
|
||||
var val = progressbar.progressbar( "value" ) || 0;
|
||||
|
||||
progressbar.progressbar( "value", val + 1 );
|
||||
progressbar.progressbar( "value", val + 2 );
|
||||
|
||||
if ( val < 99 ) {
|
||||
setTimeout( progress, 100 );
|
||||
setTimeout( progress, 80 );
|
||||
}
|
||||
}
|
||||
|
||||
setTimeout( progress, 3000 );
|
||||
setTimeout( progress, 2000 );
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
Loading…
Reference in New Issue
Block a user