diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-03-16 15:40:23 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-03-16 15:40:23 -0700 |
commit | 02aec299453670c5fb2a8aa9f24e426ffdc5c9d8 (patch) | |
tree | 46c3f407677183685b51752a75ac0ff193dec18b /src/shell.html | |
parent | c096ac45eee7ed5362e417d07eeffbbff777435c (diff) |
show download number progress
Diffstat (limited to 'src/shell.html')
-rw-r--r-- | src/shell.html | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/shell.html b/src/shell.html index 11970241..2f83f9f9 100644 --- a/src/shell.html +++ b/src/shell.html @@ -8,6 +8,8 @@ <hr> <div id='output'></div> <hr> + <center><div id='status'></div></center> + <hr> <script type='text/javascript'> // connect to canvas var Module = { @@ -21,10 +23,15 @@ element.innerHTML += text + '<br>'; }; })(), - canvas: document.getElementById('canvas') + canvas: document.getElementById('canvas'), + totalDependencies: 0, + monitorRunDependencies: function(left) { + this.totalDependencies = Math.max(this.totalDependencies, left); + document.getElementById('status').innerHTML = left ? 'Downloading files: ' + (this.totalDependencies-left) + '/' + this.totalDependencies : + 'All downloads complete.'; + } }; - // The compiled code {{{ SCRIPT_CODE }}} </script> </body> |