From c6f88e8d85658cba6e782285670931e963ba9906 Mon Sep 17 00:00:00 2001 From: caribaud Date: Sun, 4 Jun 2023 21:38:56 +0200 Subject: [PATCH] fix trailling whitespace --- melpomene.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) 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;