]> _ Git - fluidbook-html5.git/commitdiff
wait #4114 @0:25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 7 Dec 2020 14:57:12 +0000 (15:57 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 7 Dec 2020 14:57:12 +0000 (15:57 +0100)
js/libs/fluidbook/slideshow/fluidbook.slideshow.js
js/libs/fluidbook/slideshow/fluidbook.slideshow.splide.js

index 3cb5531f68a3bafed4c67bb091c0201f9dc2ee18..eae4cb9113e92abc2c654b3fbe82800f40cd108e 100644 (file)
@@ -67,6 +67,7 @@ FluidbookSlideshow.prototype = {
     },
     initSlideshow: function (s, context) {
         var s = this.normalizeSlideshowElement(s);
+
         if (context === 'popup') {
             this.initPopupSlideshow(s);
         } else if (context === 'inline') {
index 37573f43f72804d5382917e4c4d662725de17ba2..be822dacd3dd654abdfe1181c9f3a98d646d42da 100644 (file)
@@ -33,10 +33,9 @@ FluidbookSplideSlideshow.prototype = {
             arrows: true,
         };
 
-        this.primarySlider = new Splide(this.slideshowID, slideshowSettings);
-
+        this.primarySlider = new Splide('#' + this.slideshowID, slideshowSettings);
         if (this.showThumbnails) {
-            this.thumbSlider = new Splide(this.thumbnailsID, {
+            this.thumbSlider = new Splide('#' + this.thumbnailsID, {
                 autoWidth: true, // Height is handled by the CSS
                 start: openIndex,
                 gap: 10,
@@ -209,7 +208,7 @@ FluidbookSplideSlideshow.prototype = {
         return {w: w, h: h, fullscreen: fullscreen};
     },
 
-    resizeInline:function(){
+    resizeInline: function () {
 
     },
 };