()
| 33 | } |
| 34 | |
| 35 | function bar3() { |
| 36 | var bar = new ProgressBar(' download |:bar| :percent', { |
| 37 | complete: '=' |
| 38 | , incomplete: ' ' |
| 39 | , width: 40 |
| 40 | , total: 20 |
| 41 | }); |
| 42 | |
| 43 | var id = setInterval(function(){ |
| 44 | bar.tick(); |
| 45 | if (bar.complete) { |
| 46 | clearInterval(id); |
| 47 | bar4(); |
| 48 | } |
| 49 | }, 100); |
| 50 | } |
| 51 | |
| 52 | function bar4() { |
| 53 | var bar = new ProgressBar(' :current of :total :percent', { |