var name = 'fingers';
var text = this.fluidbook.l10n.__("scroll down to read the page content");
help += '<div class="illustration touch">' + getSpriteIcon('help-touch-scroll', {
- widh: 50 * touchzoom,
- height: 38 * touchzoom
+ widh: 50 * touchzoom, height: 38 * touchzoom
});
help += '<p>' + text + '</p>';
help += '</div>';
var name = 'fingers';
var text = this.fluidbook.l10n.__("tap twice or spread your fingers to zoom in");
help += '<div class="illustration touch">' + getSpriteIcon('help-touch-zoom', {
- width: 180 * touchzoom,
- height: 170 * touchzoom
+ width: 180 * touchzoom, height: 170 * touchzoom
});
help += '<p>' + text + '</p>';
help += '</div>';
help += '<div class="illustration keyboard">';
+ help += '<div class="bigkeys"><kbd>Esc</kbd></div>';
+ help += '<p>' + this.fluidbook.l10n.__('close windows and pop-ups') + '</p>';
help += '<div class="bigkeys"><kbd>Ctrl</kbd><span>+</span><kbd class="big">+</kbd><div class="separator"></div><kbd>Ctrl</kbd><span>+</span><kbd class="big">–</kbd></div>';
help += '<p>' + this.fluidbook.l10n.__('zoom in and zoom out') + '</p>';
help += '</div>'
}
help += '<div class="illustration mouse">' + getSpriteIcon('help-mouse', {
- width: 60 * mousezoom,
- height: 100 * mousezoom
+ width: 60 * mousezoom, height: 100 * mousezoom
});
help += '<p>' + text + '</p>';
help += '</div>';
if (this.fluidbook.mobilefirst.enabled) {
help += '<div class="illustration touch">' + getSpriteIcon('help-touch-swipe', {
- width: 50 * touchzoom,
- height: 38 * touchzoom
+ width: 50 * touchzoom, height: 38 * touchzoom
});
help += '<p>' + this.fluidbook.l10n.__('swipe to change the page') + '</p>';
help += '</div>';
}
this.view.html(help);
- },
- initEvents: function () {
+ }, initEvents: function () {
var $this = this;
$(document).on(this.fluidbook.input.clickEvent, '.icon-help', function (e) {
$this.hide();
}
})
- },
- isVisible: function () {
+ }, isVisible: function () {
return this.view.is(":visible");
- },
- show: function (time) {
+ }, show: function (time) {
this.clearTimeout();
if (time === undefined) {
time = 0;
$(this.fluidbook).trigger('fluidbook.help.show');
return false;
- },
- hide: function () {
+ }, hide: function () {
this.clearTimeout();
this.fluidbook.interface.checkHidden();
var $this = this;
$(this.fluidbook).trigger('fluidbook.help.hide');
}
return false;
- },
- toggle: function () {
+ }, toggle: function () {
if (this.isVisible()) {
this.hide();
} else {
this.show();
}
- },
- resize: function () {
+ }, resize: function () {
this.view.find('#help-illustrations').css({
transform: ''
}
if (this.fluidbook.bookmarks.enabled) {
- var inverted = this.fluidbook.nav.isInverted() ;
+ var inverted = this.fluidbook.nav.isInverted();
var side = ((this.fluidbook.l10n.dir === 'ltr' && inverted) || (this.fluidbook.l10n.dir === 'rtl' && !inverted)) ? 'left' : 'right';
if (this.fluidbook.mobilefirst.enabled) {
side = 'right';
var circleOffset = circleExtra / 2;
$(".bookmark-help .bookmark").css({
- width: Math.round(box.width),
- height: Math.round(box.height),
- margin: Math.round(circleOffset), // Centre inside circle
+ width: Math.round(box.width), height: Math.round(box.height), margin: Math.round(circleOffset), // Centre inside circle
});
$(".bookmark-help .bookmark-help-icon").css({
- width: Math.round(box.width + circleExtra),
- height: Math.round(box.height + circleExtra)
+ width: Math.round(box.width + circleExtra), height: Math.round(box.height + circleExtra)
});
var css = {top: Math.round(box.top - circleOffset)};
var sliderCursor = $('#slidercursor .visible');
var bottom = Math.round(hh - sliderCursor.offset().top);
var left = Math.round(sliderCursor.offset().left + (sliderCursor.width() / 2));
- var spanTop=-8;
- var spanLeft=0;
- var diff=($(span).width() + left) - ($this.fluidbook.resize.ww-10);
- var height=null;
- if (diff>0) {
- spanLeft=-diff;
- spanTop=-25;
- height=0;
+ var spanTop = -8;
+ var spanLeft = 0;
+ var diff = ($(span).width() + left) - ($this.fluidbook.resize.ww - 10);
+ var height = null;
+ if (diff > 0) {
+ spanLeft = -diff;
+ spanTop = -25;
+ height = 0;
}
sliderHelp.css({
- bottom: bottom,
- left: left,
- height:height,
- transformOrigin: 'left bottom'
+ bottom: bottom, left: left, height: height, transformOrigin: 'left bottom'
});
$(span).css({
- top:spanTop,
- left:spanLeft,
+ top: spanTop, left: spanLeft,
});
};
positionSliderLabel(); // Run immediately
}
this.view.find('#icons').css({
- top: menuHeightScaled,
- transform: 'scale(' + navScale + ')'
+ top: menuHeightScaled, transform: 'scale(' + navScale + ')'
});
var s = Math.max(0.9, Math.min(1.5, interfaceScale));
var top = (hh - $("#help-illustrations").outerHeight()) / 2;
$("#help-illustrations").css('top', top);
- },
- clearTimeout: function () {
+ }, clearTimeout: function () {
clearTimeout(this.autoTimeout);
},
return true;
}
- if (!this.fluidbook.nav.isInverted() && !this.fluidbook.getButtonsVisibility().next && this.fluidbook.contentlock.getMaxPage() % 2 === 0) {
+ if (!this.fluidbook.nav.isInverted() && !this.fluidbook.getButtonsVisibility().next && this.fluidbook.contentlock.getMaxPage() % 2 === 0) {
return false;
}