$(this.fluidbook).on('fluidbook.page.change.end', function () {
if ($this.lastTriggeredLinksPage == $this.fluidbook.currentPage) {
- // return;
+ // return;
}
$this.lastTriggeredLinksPage = $this.fluidbook.currentPage;
var pages = $this.fluidbook.getDisplayedPages();
var current = $(this).data('current-showid');
if (current === undefined) {
$.each(ids, function (k, id) {
- if ($('[data-id="' + id + '"].show').length > 0) {
- current = id;
- }
+ if ($('[data-id="' + id + '"].show').length > 0) {
+ current = id;
}
- );
+ });
}
if (current === undefined) {
showid = [ids[0]];
var attached = $('.link[data-id="' + $(this).data('attached') + '"]');
var visible = true;
if (attached.length === 0 || !$(attached).is(':visible') || ($(attached).attr('data-hidden') === '1' && !$(attached).hasClass('show'))) {
- console.log(attached, this);
visible = false;
}
} else if ($(this).is('[data-animations]')) {
var $link = this;
setTimeout(function () {
- $this.fluidbook.links.animateContentLink($link);
+ $this.fluidbook.links.animateContentLink($link, true);
}, delay);
}
}
}, 500);
$(".indexViewHolder").perfectScrollbar({
- suppressScrollY: true,
- useBothWheelAxes: true
+ suppressScrollY: true, useBothWheelAxes: true
});
$(".indexViewHolder").find('.ps__rail-x').addClass('ps--clicking');