1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-04 15:09:16 +02:00

added Endnotes pop up and image resizing

This commit is contained in:
Fred Chasen 2013-03-26 17:26:47 -07:00
parent d69e12dc7e
commit 7f41f00775
18 changed files with 335 additions and 25 deletions

View file

@ -87,14 +87,14 @@ FP.Book.prototype.listeners = function(){
FP.Book.prototype.start = function(bookPath){
var location = window.location,
pathname = location.pathname,
absolute = this.bookUrl.search("://") != -1,
absolute = bookPath.search("://") != -1,
fromRoot = pathname[0] == "/",
cleaned = [],
folder = "/",
origin,
split;
//folder = (pathname[pathname.length - 1] == "/") ? pathname : "/",
if(bookPath[bookPath.length - 1] != "/") bookPath += "/";
@ -120,7 +120,7 @@ FP.Book.prototype.start = function(bookPath){
//-- 2. Check if url starts with /, add base url
if(!absolute && fromRoot){
this.bookUrl = origin + bookPath;
this.bookUrl = origin + "/" + bookPath;
}
//-- 3. Or find full path to url and add that