Make the print preview only fire when the presentation is finished rendering.
authorKim Nguyễn <kn@lri.fr>
Mon, 28 Sep 2015 20:04:39 +0000 (22:04 +0200)
committerKim Nguyễn <kn@lri.fr>
Mon, 28 Sep 2015 20:04:39 +0000 (22:04 +0200)
simpleWebSlides.js
themes/uPsud.css

index a0e0ef8..1c39da4 100644 (file)
@@ -519,7 +519,8 @@ SWS.Presentation = new function () {
                 progress.remove();
                window.status = 'Ready';
                $.fx.off = old_fx_status;
-               if (SWS.Utils.getParameterByName("dialog") != "off") window.print();
+               if (SWS.Utils.getParameterByName("dialog") != "off")
+                   $("body").ready( function () { window.print(); });
             }
         };
         loop();
index f08cea5..ea22813 100644 (file)
@@ -58,6 +58,7 @@ h1 {
     z-index:0;
 }
 
+
 .sws-inner-canvas {
     height: 88%;
     z-index: 2;
@@ -68,7 +69,7 @@ h1 {
 /* Title of the slide */
 .sws-title {
     height: 7%;
-    z-index:2;
+    z-index: 2;
 
 }
 
@@ -78,7 +79,7 @@ h1 {
     text-align:right;
     padding-right:1ex;
     vertical-align: middle;
-    z-index: 2;
+    z-index: 1;
 }
 
 .sws-footer::before {
@@ -92,10 +93,9 @@ h1 {
     background-size: contain;
     background-image: url("logo_psud_psay.png");
     background-repeat: no-repeat;
-    z-index: 1;
+    z-index: -1 ;
 }
 
-
 .sws-slide-num-sep:after {
     content: "/";
 }