show loading percentage
This commit is contained in:
parent
dc46a6bf4d
commit
4d38b42d2e
1 changed files with 3 additions and 2 deletions
|
@ -10,7 +10,7 @@
|
||||||
- check for html5 feature support where used: diveintohtml5.org/everything.html or www.modernizr.com
|
- check for html5 feature support where used: diveintohtml5.org/everything.html or www.modernizr.com
|
||||||
- write bin scripts to minify & join all js
|
- write bin scripts to minify & join all js
|
||||||
- when applying enhancements reading position gets lost
|
- when applying enhancements reading position gets lost
|
||||||
- use a loading bar / percentage indicator instead of explictly showing which pages are loading
|
- loading bar
|
||||||
- full browser test - IE9 / FF3.6+ / Chrome / Safari / Opera
|
- full browser test - IE9 / FF3.6+ / Chrome / Safari / Opera
|
||||||
|
|
||||||
Nice 2 have:
|
Nice 2 have:
|
||||||
|
@ -464,7 +464,8 @@ function ComicBook(id, srcs, opts) {
|
||||||
page.onload = function () {
|
page.onload = function () {
|
||||||
pages[i] = this;
|
pages[i] = this;
|
||||||
loaded.push(i);
|
loaded.push(i);
|
||||||
$("#cb-status").text("loaded page " + (i + 1) + " of " + no_pages);
|
|
||||||
|
$("#cb-status").text("loading " + Math.floor((loaded.length / no_pages) * 100) + "%");
|
||||||
|
|
||||||
// TODO: put back in the page render code, page request code
|
// TODO: put back in the page render code, page request code
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue