initInlineSlideshows: function () {
var $this = this;
+ this.fluidbook.slideshow.clear();
$(".inlineslideshow").each(function () {
if ($(this).is(':visible')) {
$this.fluidbook.slideshow.initInlineSlideshow($(this));
}
FluidbookDummySlideshow.prototype = {
+ clear: function () {
+ $.each(this.intervals, function (k, v) {
+ clearInterval(v);
+ });
+ },
+
initSlideshow: function (s) {
+ if ($(s).data('init') === true) {
+ return;
+ }
var $this = this;
s.data('init', true);
var dir = 'data/links/' + $(s).data('dir') + '/';
$(current).removeClass('show').css('display', 'none');
$(this).css({zIndex: ''});
});
- }, 100);
+ }, 200);
}, parseFloat(this.fluidbook.settings.inlineSlideshowDuration) * 1000));
},
return $(s);
},
+ clear: function () {
+ try {
+ this.inlineInstance.clear();
+ } catch (e) {
+
+ }
+ try {
+ this.popupInstance.clear();
+ } catch (e) {
+
+ }
+ },
+
initPopupSlideshow: function (s) {
var s = this.normalizeSlideshowElement(s);
this.popupInstance.initSlideshow(s);
}
}
-.inlineslideshow {
- width: 100%;
- height: 100%;
- max-width: 100%;
- max-height: 100%;
- overflow: hidden;
-
- .slide {
- display: none;
- width: 100%;
- height: 100%;
- background-size: cover;
- background-position: 50% 50%;
- opacity: 0;
-
- position: absolute;
- top: 0;
- left: 0;
- z-index: 0;
-
- &.show {
- z-index: 1;
- opacity: 1;
- transition: opacity @inlineslideshow-transition-time;
- }
- }
-}
-
#links .fb_iframe_widget {
transform-origin: 0 0 0;
transform: scale(2.5);
+@import "../variables";
+
+.inlineslideshow {
+ width: 100%;
+ height: 100%;
+ max-width: 100%;
+ max-height: 100%;
+ overflow: hidden;
+
+ .slide {
+ display: none;
+ width: 100%;
+ height: 100%;
+ background-size: cover;
+ background-position: 50% 50%;
+
+ opacity: 0;
+ position: absolute;
+ top: 0;
+ left: 0;
+ z-index: 0;
+
+
+ &.show {
+ transition: opacity @inlineslideshow-transition-time;
+ z-index: 1;
+ opacity: 1;
+ }
+ }
+}
\ No newline at end of file
+@import "../variables";
+
// Splide JS Styling (adapted from SCSS)
@main-color: @menu-select-background;
@light-main-color: lighten(@main-color, 20%);
+@import "../variables";
\ No newline at end of file