(folderIndex)
| 1056 | |
| 1057 | //Go to a specific comic folder |
| 1058 | function 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 |
| 1077 | function goToPage(page) |
no test coverage detected