return u.href;
},
+ showLinkById(id) {
+ var s = $('div.link[data-id="' + id + '"]');
+ s.show();
+ setTimeout(function () {
+ s.addClass('show');
+ }, 10);
+
+ },
+
+ hideLinkById(id) {
+ var s = $('div.link[data-id="' + id + '"]');
+ if ($(s).attr('data-hidden') != '1') {
+ $(s).attr('data-hidden', '1').addClass('show');
+ }
+ setTimeout(function () {
+ $(s).removeClass('show');
+ }, 10);
+ },
+
hidePlacedLink: function (p, timeout) {
if ($(p).length === 0) {
return;
timeout = 0;
}
setTimeout(function () {
-
$(p).removeClass('show');
$(p).find('.linkshowclose').remove();
setTimeout(function () {
poster,
html,
player;
+ var hidelinksonplay = $(e).data('hidelinksonplay') === '' ? [] : $(e).data('hidelinksonplay').split(',');
+ console.log('to hide', hidelinksonplay);
//console.log('Initialising video ID: ' + id);
setTimeout(function () {
player.pause();
}, 100);
+ } else {
+ console.log('hide ', hidelinksonplay);
+ $.each(hidelinksonplay, function (k, id) {
+ $this.fluidbook.links.hideLinkById(id);
+ });
}
});
+
player.play(); // Start player to go to current position - necessary even if it will be paused immediately
if (settings.paused) {
player.pause();
});
+ player.on('play', function () {
+ $.each(hidelinksonplay, function (k, id) {
+ $this.fluidbook.links.hideLinkById(id);
+ });
+ });
+
player.on('pause', function () {
// console.log(id + ' player paused');
player.one('play', function () {
this.bigPlayButton.hide();
});
+
+
+ $.each(hidelinksonplay, function (k, id) {
+ $this.fluidbook.links.showLinkById(id);
+ });
});
// player.on('fullscreenchange', function() {