Progressbar demo: Speed up the progress a bit to make them less annoying

This commit is contained in:
Jörn Zaefferer 2014-04-24 19:52:47 +02:00
parent 7d0ca5e37d
commit 22de101e40
2 changed files with 4 additions and 4 deletions

View File

@ -69,7 +69,7 @@
progressbar.progressbar( "value", val + Math.floor( Math.random() * 3 ) ); progressbar.progressbar( "value", val + Math.floor( Math.random() * 3 ) );
if ( val <= 99 ) { if ( val <= 99 ) {
progressTimer = setTimeout( progress, 100 ); progressTimer = setTimeout( progress, 50 );
} }
} }

View File

@ -39,14 +39,14 @@
function progress() { function progress() {
var val = progressbar.progressbar( "value" ) || 0; var val = progressbar.progressbar( "value" ) || 0;
progressbar.progressbar( "value", val + 1 ); progressbar.progressbar( "value", val + 2 );
if ( val < 99 ) { if ( val < 99 ) {
setTimeout( progress, 100 ); setTimeout( progress, 80 );
} }
} }
setTimeout( progress, 3000 ); setTimeout( progress, 2000 );
}); });
</script> </script>
</head> </head>