]> _ Git - fluidbook-html5.git/commitdiff
wip #3313 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 20 Jan 2020 17:52:08 +0000 (18:52 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 20 Jan 2020 17:52:08 +0000 (18:52 +0100)
js/libs/fluidbook/fluidbook.help.js

index 9f3633ac182f1689c4ebb11b152ce9e446b57f6f..059ec8735951510fa79b650acda596fcdf29371b 100644 (file)
@@ -206,7 +206,7 @@ FluidbookHelp.prototype = {
         var $this = this;
 
         this.overlay.show();
-        this.view.css('opacity',0).show();
+        this.view.css('opacity', 0).show();
         this.view.find('.interface').show();
 
         $("#help-illustrations").css('opacity', '0');
@@ -223,7 +223,7 @@ FluidbookHelp.prototype = {
             $this.resize();
             $("body,#previous,#next").addClass('help');
             this.fluidbook.showAllButtons();
-            $this.view.css('opacity',1);
+            $this.view.css('opacity', 1);
         }, 50);
         setTimeout(function () {
             $this.resize();
@@ -392,12 +392,17 @@ FluidbookHelp.prototype = {
             this.ignoreResize = true;
             setTimeout(function () {
                 $this.ignoreResize = false;
-            }, (time+1) * 1000);
+            }, (time + 1) * 1000);
             this.show(time);
             if (this.fluidbook.pad.enabled) {
                 this.fluidbook.pad.displayInterface();
             }
         } else {
+            if (this.fluidbook.datas.landscapeWarning !== '' && (this.fluidbook.support.iOS || this.fluidbook.support.android)) {
+                this.fluidbook.menu.openView('text', this.fluidbook.datas.landscapeWarning, function () {
+
+                });
+            }
             this.fluidbook.hideUnnecessaryButtons();
         }
     }