return;
}
$(doublePage).find('.' + position).remove();
- var page = '<div class="page ' + position + '" id="page_' + pageNr + '" data-page="' + pageNr + '"><div class="background" page="' + pageNr + '"></div><div class="texts" highlight=""></div><div class="clinks"></div><div class="shade"></div></div>';
+ var page = '<div class="page ' + position + '" id="page_' + pageNr + '" data-page="' + pageNr + '"><div class="background" page="' + pageNr + '"></div><div class="ctlinks"></div><div class="texts" highlight=""></div><div class="clinks"></div><div class="shade"></div></div>';
$(doublePage).append(page);
},
hidePage: function (position) {
return false;
},
initVideos: function () {
- var $this = this;
- $(".videoContainer").each(function () {
- $this.video.initVideo(this);
- });
+ this.video.initVideos();
},
getNextOffset: function () {
var offset = 2;
}
$(page).children('.clinks').html(this.fluidbook.settings.clinks[pageNr]);
+ $(page).children('.ctlinks').html(this.fluidbook.settings.ctlinks[pageNr]);
callback();
return;
}
this.loadDatas(pageNr, function () {
$(page).addClass(position);
$(page).children('.clinks').html($this.fluidbook.settings.clinks[pageNr]);
+ $(page).children('.ctlinks').html($this.fluidbook.settings.ctlinks[pageNr]);
callback();
});
},
}
FluidbookVideo.prototype = {
+
+ initVideos: function () {
+ var $this = this;
+
+ $(".videoContainer").each(function () {
+ $this.initVideo(this);
+ });
+ },
+
initVideo: function (e) {
var $this = this;
poster = path + '.jpg';
}
+ if ($(e).hasClass('integration-background_texts')) {
+ poster = false;
+ }
+
html = '<video class="video-js vjs-fluidbook-skin"';
if (poster) {
if (controls == '1') {
html += 'controls ';
+ } else {
+ html += 'disablePictureInPicture ';
}
if (loop == '1') {
poster = path + '.jpg';
// Build <video> element
- html = '<video class="video-js" poster="' + poster + '" ';
+ html = '<video class="video-js" disablePictureInPicture poster="' + poster + '" ';
if (!isNaN(width)) {
html += 'data-width="' + width + '" ';
top: 0px;
background-color: transparent;
+ .clinks, .ctlinks {
+ .link {
+ position: absolute;
+ pointer-events: none;
+ }
+ }
+
.clinks {
- position: relative;
+ position: absolute;
+ top: 0px;
+ left: 0px;
z-index: 3;
}
position: absolute;
top: -1px;
left: -1px;
+ z-index: 2;
+ }
+
+ .ctlinks {
+ position: absolute;
+ top: 0px;
+ left: 0px;
+ z-index: 1;
}
.background {
left: 0px;
width: 100%;
height: 100%;
+ z-index: 0;
}
&.right {
.content {
overflow-x: hidden;
}
- .ps__rail-x{
+
+ .ps__rail-x {
display: none;
}
}
width: @w;
height: @h;
- .pageholder{
+ .pageholder {
max-height: @h;
}
.macos.safari video.vjs-tech {
opacity: 0.999;
+}
+
+.videoContainer.integration-background_texts {
+ transition: opacity 500ms;
+
+ .video-js {
+ transition: opacity 500ms;
+ opacity: 0;
+
+ &.vjs-waiting {
+ background: transparent;
+ opacity: 0;
+ }
+
+ &.vjs-has-started {
+ opacity: 1;
+ }
+ }
+
+ .vjs-loading-spinner {
+ display: none !important;
+ }
+
+ .vjs-tech {
+ object-fit: cover;
+ }
+}
+
+#links .videoContainer.integration-background_texts {
+ opacity: 0;
}
\ No newline at end of file