var links = $("#links").removeClass('right');
$(links).html('').show();
- if (this.fluidbook.displayOnePage && pageNr % 2 === 1 && this.fluidbook.l10n.dir==='ltr') {
+ if (this.fluidbook.displayOnePage && pageNr % 2 === 1 && this.fluidbook.l10n.dir === 'ltr') {
$(links).addClass('right')
}
if (this.fluidbook.datas.bookmark) {
}
links.prepend('<div class="leftContainer container"></div><div class="rightContainer container"></div>');
+
links.find('.rightContainer').html(this.fluidbook.datas.links[rightPage]);
links.find('.leftContainer').html(this.fluidbook.datas.links[leftPage]);
+
+ if (this.fluidbook.displayOnePage) {
+ if (pageNr !== rightPage) {
+ links.find('.rightContainer').hide();
+ }
+ if (pageNr !== leftPage) {
+ links.find('.leftContainer').hide();
+ }
+ }
+
if (links.find('.link.multimedia iframe').length > 0) {
this.fluidbook.networkControl.pause(30000);
}
}
/* Desktop devices */
-
-.msie {
- &.desktop {
- #links .nonlinkarea {
- cursor: url(./images/cursors/zoom-in.cur), auto;
- }
-
- .zoomed {
- #links .nonlinkarea {
- cursor: url(./images/cursors/zoom-out.cur), auto;
- }
- }
+&.using-mouse body:not(.zoom-disabled) {
+ #links .container {
+ cursor: zoom-in;
}
-}
-&.no-msie {
- &.desktop {
- #links .nonlinkarea {
- cursor: zoom-in;
- }
-
- .zoomed {
- #links .nonlinkarea {
- cursor: zoom-out;
- }
+ &.zoomed {
+ #links .container {
+ cursor: zoom-out;
}
}
}
+
#links {
.container {
position: absolute;
height: @book-page-height;
&.rightContainer {
- left: @book-page-width;
+ left: @book-page-width;
+
+ .mobilefirst & {
+ left: 0;
+ }
}
}
}
background-color: rgba(0, 0, 0, 0.001);
}
-.rtl #links {
+.rtl #links {
.leftContainer {
left: 50%;
}
top: 0px;
left: 0px;
display: block;
- cursor: zoom-in;
.zoom-disabled & {
cursor: auto !important;