()
| 17 | }, 100); |
| 18 | |
| 19 | function bar2() { |
| 20 | var bar = new ProgressBar(' processing: [:bar]', { |
| 21 | total: 15 |
| 22 | , complete: '*' |
| 23 | , incomplete: ' ' |
| 24 | }); |
| 25 | |
| 26 | var id = setInterval(function(){ |
| 27 | bar.tick(); |
| 28 | if (bar.complete) { |
| 29 | clearInterval(id); |
| 30 | bar3(); |
| 31 | } |
| 32 | }, 100); |
| 33 | } |
| 34 | |
| 35 | function bar3() { |
| 36 | var bar = new ProgressBar(' download |:bar| :percent', { |