this.highlightEnabled = fluidbook.datas.highlightResults;
this.resultPages = [];
this.plugins = [];
+ this.singleMode = fluidbook.singleMode;
this.init();
}
if (page > maxPage) {
continue;
}
- if ((page % 2) == 1) {
+
+ if (!this.singleMode && (page % 2) === 1) {
page--;
}
if (page > maxPage) {
continue;
}
- if ((page % 2) == 1) {
+
+ if (!this.singleMode && (page % 2) === 1) {
page--;
}
// Test if we highlight results
if (!this.fluidbook.datas.highlightAllOccurences) {
var evenPageNumber = pageNr;
- if (evenPageNumber % 2 == 1) {
+
+ if (!this.singleMode && evenPageNumber % 2 === 1) {
evenPageNumber--;
}
+
if (this.resultPages.indexOf(evenPageNumber) == -1) {
return;
}
if (this.fluidbook.resize.orientation == 'portrait') {
pageNrs.push(pageNr);
} else {
- if (pageNr % 2 == 1) {
+
+ if (!this.singleMode && pageNr % 2 === 1) {
pageNr--;
}
pageNrs.push(pageNr);
.doubleThumb {
display: block !important;
margin: 0 auto 40px auto !important;
+
+ &.singlemode {
+ margin: 0px 10px 15px 17px !important;
+ display: inline-block !important;
+ vertical-align: top;
+ }
+
&:not(.simple), &.simple .thumb img {
}