]> _ Git - fluidbook-html5.git/commitdiff
wip #3909 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 29 Sep 2020 13:35:44 +0000 (15:35 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 29 Sep 2020 13:35:44 +0000 (15:35 +0200)
js/libs/fluidbook/fluidbook.js
js/libs/fluidbook/fluidbook.links.js

index da6d7cd24cae5c23848101620e709a7bbe066d69..c2689ee206dd04b3a9d171ee0aa6a00005fc9e03 100644 (file)
@@ -25,9 +25,9 @@ Fluidbook.prototype = {
         if ($_GET['nointerface'] !== undefined) {
             $('body').addClass('nointerface');
             settings.mobileTransitions = 'none';
-            this.nointerface=true;
-        }else{
-            this.nointerface=false;
+            this.nointerface = true;
+        } else {
+            this.nointerface = false;
         }
 
         this.initSettings(settings);
@@ -955,7 +955,7 @@ Fluidbook.prototype = {
             win = window;
         }
 
-        console.log('target');
+        url = url.replace('$uuid', this.stats.vid);
 
         if (target == undefined) {
             target = '_self';
index 89aa435cddc2d959a36ecd21ec607f8ba18a884b..240ada7c3a2d70af54cc7aff577848fb999f01b9 100644 (file)
@@ -696,8 +696,7 @@ FluidbookLinks.prototype = {
             delay = parseInt(delay);
         }
         this._blink($(link), delay + additionalDelay);
-    }
-    ,
+    },
 
     triggerLinkById: function (id) {
         var a = $('.link[data-id="' + id + '"] a:eq(0)');
@@ -722,8 +721,7 @@ FluidbookLinks.prototype = {
                 });
             }
         });
-    }
-    ,
+    },
 
     initSlideshow: function (s) {
         var $this = this;
@@ -767,20 +765,17 @@ FluidbookLinks.prototype = {
                 .attr('height', ih)
                 .css({width: iw, height: ih, transform: 'scale(' + (1 / $this.fluidbook.resize.bookScale) + ')'});
         });
-    }
-    ,
+    },
 
     rolloverEnter: function (iid) {
         var e = $('[data-id="' + iid + '"]');
         e.addClass('animaterollover');
-    }
-    ,
+    },
 
     rolloverLeave: function (iid) {
         var e = $('[data-id="' + iid + '"]');
         e.removeClass('animaterollover');
-    }
-    ,
+    },
     resizeIframe: function (height) {
         var iframe = $('.link iframe').eq(0);
         var container = iframe.closest('.content');