fix trailling whitespace

This commit is contained in:
caribaud 2023-06-04 21:38:56 +02:00
parent f87f6c75f5
commit c6f88e8d85
1 changed files with 13 additions and 13 deletions

View File

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