]> _ Git - fluidbook-html5.git/commitdiff
wip #6800 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 21 Mar 2024 09:01:49 +0000 (10:01 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 21 Mar 2024 09:01:49 +0000 (10:01 +0100)
js/libs/fluidbook/fluidbook.links.js
js/libs/fluidbook/fluidbook.loader.js

index 2983929e3af063fda96a06a21b3ff6138c1b5611..c7be5b1cf5fef2ed8f53fb4b43a63fc32d99d80e 100644 (file)
@@ -326,7 +326,6 @@ FluidbookLinks.prototype = {
                         hide.push(id);
                     }
                 });
-                console.log('showhide', showid, hide);
             } else {
                 showid = ids;
             }
@@ -372,7 +371,6 @@ FluidbookLinks.prototype = {
                 $.each(showid, function (k, id) {
                     selector += ':not([data-id$="' + id + '"])';
                 });
-                console.log(selector);
                 $(selector).each(function () {
                     let timeout = hideTimeout;
                     if ($(selector).is('[data-animation-hide]')) {
@@ -383,7 +381,6 @@ FluidbookLinks.prototype = {
                         if ($(this).is('[data-zindex]')) {
                             $(this).css('z-index', $(this).data('zindex'));
                         }
-                        console.log('hide ', id);
                         $this.hidePlacedLink(this, timeout);
                     }
                 });
@@ -533,7 +530,6 @@ FluidbookLinks.prototype = {
     stopLinkById: function (id) {
         var link = $('.link[data-id="' + id + '"]');
         if ($(link).length === 0) {
-            console.warn('Link ' + id + ' cant be stopped');
             return;
         }
 
@@ -1164,7 +1160,6 @@ FluidbookLinks.prototype = {
         if (usegsap) {
             to.duration = duration;
             let anim = gsap.fromTo(animatedElement, from, to);
-            console.log(animatedElement, from, to, anim);
 
             let anims = [];
             if ($(link).data('gsap') !== undefined) {
index f39ae696bac8810e483031421d29d9af5904edbb..7d7dc526c6737e36b8309bd6ef7b55cfdd2c9b4d 100644 (file)
@@ -783,9 +783,6 @@ FluidbookLoader.prototype = {
                             } else if ($(this).is('[data-image]')) {
                                 try {
                                     ctx.drawImage(texture, sx, sy, sw, sh, left, top, width, height);
-                                    if (scale != 1) {
-                                        console.log(scale, '|', sx, sy, sw, sh, '|', tw, th, '|', left, top, width, height);
-                                    }
                                 } catch (e) {
                                     console.warn(texture);
                                 }