Skip to content
Permalink
Browse files

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

  • Loading branch information
jzaefferer committed Apr 24, 2014
1 parent 7d0ca5e commit 22de101e406c49697fee54a778f94d3535750342
Showing with 4 additions and 4 deletions.
  1. +1 −1 demos/progressbar/download.html
  2. +3 −3 demos/progressbar/label.html
@@ -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>

0 comments on commit 22de101

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