initDelayedLink: function (link) {
$(link).addClass('revealed');
this.fluidbook.video.initVideos();
+ this.initInlineSlideshows();
+ },
+
+ isDelayed: function (e) {
+ let s = '[data-delay]:not(.revealed)';
+ return $(e).is(s) || $(e).closest(s).length > 0;
},
replaceVariableInTextLinks: function () {
if (this.fluidbook.slideshow !== undefined) {
$("#links .fb-slideshow, #currentDoublePage .fb-slideshow").each(function () {
- $this.fluidbook.slideshow.initInlineSlideshow(this);
+ if (!$this.isDelayed(this)) {
+ $this.fluidbook.slideshow.initInlineSlideshow(this);
+ }
});
this.fluidbook.slideshow.resizeInline();
}
}
var $__callback = function () {
-
-
if ($this.getVersionToLoad(page) === 'textasvector' || $this.getVersionToLoad(page) === 'vector') {
$this.loadTexts(page, $_callback);
} else {
});
});
}
- }, loadPage: function (pageNr, doublePage, position, callback) {
+ },
+
+ loadPage: function (pageNr, doublePage, position, callback) {
if (pageNr <= 0 || pageNr > this.fluidbook.settings.pages) {
callback();
var $this = this;
$(".videoContainer").each(function () {
- if ($(this).closest('[data-delay]:not(.revealed)').length > 0) {
+ if ($this.fluidbook.links.isDelayed(this)) {
return;
}
if ($(this).closest('.rightclone').length > 0 && $(this).is(':hidden')) {