single quote -> double quote

This commit is contained in:
caribaud 2023-06-05 00:20:32 +02:00
parent f1cfb326d5
commit 5a1987f77b
1 changed files with 5 additions and 5 deletions

View File

@ -45,7 +45,7 @@ const VERSION_DISPLAY = document.getElementById("melpomene-version");
var PAGES_ZOOMS; var PAGES_ZOOMS;
// The variable ZOOMS can either be defined by another JS file or contructed at init // The variable ZOOMS can either be defined by another JS file or contructed at init
if (typeof PAGES_ZOOMS === 'undefined') if (typeof PAGES_ZOOMS === "undefined")
{ {
PAGES_ZOOMS = null; PAGES_ZOOMS = null;
} }
@ -138,7 +138,7 @@ function globalZoomOffsetX()
{ {
if (READER_PAGES.dataset.globalZoomOffset !== undefined) if (READER_PAGES.dataset.globalZoomOffset !== undefined)
{ {
return parseFloat(READER_PAGES.dataset.globalZoomOffset.split(',')[0]); return parseFloat(READER_PAGES.dataset.globalZoomOffset.split(",")[0]);
} }
return 0.0; return 0.0;
@ -148,7 +148,7 @@ function globalZoomOffsetY()
{ {
if (READER_PAGES.dataset.globalZoomOffset !== undefined) if (READER_PAGES.dataset.globalZoomOffset !== undefined)
{ {
return parseFloat(READER_PAGES.dataset.globalZoomOffset.split(',')[1]); return parseFloat(READER_PAGES.dataset.globalZoomOffset.split(",")[1]);
} }
return 0.0; return 0.0;
@ -166,11 +166,11 @@ function loadZoomsFromImgTagsIfRequired()
{ {
const zoomsRawData = READER_PAGES.children[idx].dataset.zooms; const zoomsRawData = READER_PAGES.children[idx].dataset.zooms;
// ';' separates zooms data, ',' separates values // ";" separates zooms data, "," separates values
// We add the page number (adding 1 because of indexing) // We add the page number (adding 1 because of indexing)
const zooms = zoomsRawData.split(";").map( const zooms = zoomsRawData.split(";").map(
zoom => [idx + 1].concat( zoom => [idx + 1].concat(
zoom.split(',').map( zoom.split(",").map(
value => parseFloat(value) value => parseFloat(value)
) )
) )