MCPcopy
hub / github.com/ollm/OpenComic / goToFolder

Function goToFolder

scripts/reading.js:1058–1074  ·  view source on GitHub ↗
(folderIndex)

Source from the content-addressed store, hash-verified

1056
1057//Go to a specific comic folder
1058function goToFolder(folderIndex)
1059{
1060 if(typeof foldersPosition[folderIndex] !== 'undefined')
1061 {
1062 readingDirection = true;
1063
1064 let newIndex = foldersPosition[folderIndex] + 1;
1065
1066 if(readingManga())
1067 newIndex = (indexNum - newIndex) + 1;
1068
1069 calculateRealReadingDirection(newIndex);
1070
1071 goToIndex(newIndex);
1072 goToImageCL(folderIndex, true)
1073 }
1074}
1075
1076//Go to a specific page
1077function goToPage(page)

Callers 1

goToPageFunction · 0.85

Calls 4

readingMangaFunction · 0.85
goToImageCLFunction · 0.85
goToIndexFunction · 0.70

Tested by

no test coverage detected