});
});
+
$(document).on(this.fluidbook.input.clickEvent, '[data-id] a', function () {
var id = $(this).closest('[data-id]').attr('data-id');
$this.fluidbook.contentlock.addAction(id, 'click');
return true;
});
+ $(document).on('mouseover mouseout mouseenter mouseleave', '[data-related-animation]', function (e) {
+ var iframe = $('[data-id="' + $(this).data('related-animation') + '"] iframe');
+ if (iframe.length === 0) {
+ return true;
+ }
+ var iframeWindow = iframe.get(0).contentWindow;
+ var iframeDocument = iframeWindow.document;
+ var iframeLottie = iframeDocument.getElementById('lottie');
+
+ var event = new MouseEvent(e.type, {
+ 'view': iframeWindow, 'bubbles': true, 'cancelable': true
+ });
+ console.log(iframeLottie);
+
+ iframeLottie.dispatchEvent(event);
+ return true;
+ });
+
$(document).on(this.fluidbook.input.clickEvent, '.multimediaContainer[data-click-to-close="1"]', function () {
$this.fluidbook.menu.closeView();
return false;