diff --git a/melpomene.js b/melpomene.js index 8689592..87a73ab 100644 --- a/melpomene.js +++ b/melpomene.js @@ -231,7 +231,7 @@ function previousPagesWidth(pageNumber) function initReader() { VERSION_DISPLAY.innerText = VERSION_DISPLAY.innerText.replace("Unknown version", MELPOMENE_VERSION); - + loadZoomsFromImgTagsIfRequired(); moveReaderDisplayToZoom(0); @@ -246,7 +246,7 @@ function initReader() entry.target.style.opacity = 1; entry.target.style.visibility = "visible"; } - + else { entry.target.style.opacity = 0; @@ -307,7 +307,7 @@ function moveReaderDisplayToArea(pageNumber, oWidth, oHeight, oPosx, oPosy) width = width + posx; posx = 0; } - + if ((posx + width) > pageOriginalWidth(pageNumber)) { width = pageOriginalWidth(pageNumber) - posx; @@ -319,7 +319,7 @@ function moveReaderDisplayToArea(pageNumber, oWidth, oHeight, oPosx, oPosy) height = height + posy; posy = 0; } - + if ((posy + height) > pageOriginalHeight(pageNumber)) { height = pageOriginalHeight(pageNumber) - posy; @@ -359,7 +359,7 @@ function moveReaderDisplayToArea(pageNumber, oWidth, oHeight, oPosx, oPosy) updateFocusByWidth(scaledWidth); } - + else { // Frame narower than zoom => scale so left/right match, offset on y @@ -420,15 +420,15 @@ function toggleViewMode() { moveReaderDisplayToZoom(CURRENT_ZOOM); } - + else { moveReaderDisplayToZoom(getFirstZoomOfPage(CURRENT_PAGE)); } - + IS_PAGE_MODE = false; } - + else { moveReaderDisplayToPage(CURRENT_PAGE); @@ -454,7 +454,7 @@ function moveReader(toNext) CURRENT_ZOOM = null; } } - + else { if (toNext && CURRENT_ZOOM < PAGES_ZOOMS.length - 1) @@ -494,7 +494,7 @@ function handleKeyPress(key) { READER_FRAME.requestFullscreen(); } - + else { document.exitFullscreen(); @@ -507,12 +507,12 @@ function handleKeyPress(key) { PROGRESS_BAR_CONTAINER.hidden = false; } - + else { PROGRESS_BAR_CONTAINER.hidden = true; } - + refreshReaderDisplay(); } @@ -541,7 +541,7 @@ function handleMouseWhell(event) { return; } - + else { MOUSEWHELL_WAIT = true;