added basic styling to the loading status box
This commit is contained in:
parent
b23a6f26b2
commit
59bf8bcfc2
2 changed files with 16 additions and 4 deletions
|
@ -131,7 +131,7 @@ function ComicBook(id, srcs, opts) {
|
|||
|
||||
var i = 0; // the current page counter for this method
|
||||
|
||||
$(canvas).before('<div id="status"><p></p></div>');
|
||||
$(canvas).after('<div id="status"><p></p></div>');
|
||||
|
||||
// I am using recursion instead of a forEach loop so that the next image is
|
||||
// only loaded when the previous one has completely finished
|
||||
|
@ -158,7 +158,7 @@ function ComicBook(id, srcs, opts) {
|
|||
|
||||
// start rendering the comic when the buffer level has been reached
|
||||
if (loaded === buffer) { ComicBook.prototype.drawPage(); }
|
||||
if (loaded === no_pages) { $("#status").remove(); }
|
||||
if (loaded === no_pages) { $("#status").fadeOut(150).remove(); }
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue