]> _ Git - cubeextranet.git/commitdiff
fix #4270
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 19 Feb 2021 19:20:12 +0000 (19:20 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 19 Feb 2021 19:20:12 +0000 (19:20 +0000)
fluidbook/compile/hybrid/index.html

index 5b705d066d7cb6dadac6c21a133455e8c89c5523..34af5f653fef466b4f453779104f73c28f0c9ca7 100644 (file)
             padding: 0;\r
             margin: 0;\r
         }\r
+\r
         body, html {\r
             background-color: #$bgcolor;\r
             width: 100%;\r
             height: 100%;\r
         }\r
+\r
         footer {\r
             visibility: hidden;\r
         }\r
     <script>\r
         var redirect;\r
         var locationWithoutHash = window.location.href.split('#')[0];\r
+        var e = locationWithoutHash.split('?', 2);\r
+        var params = '';\r
+        if (e.length === 2 && e[1]!=='') {\r
+            params = e[1] + '&';\r
+        }\r
         var hash = window.location.hash;\r
         if (window.matchMedia('(min-device-width: $breakpoint) and (min-device-height: $breakpoint)').matches) {\r
             redirect = 'd';\r
         } else {\r
             redirect = 'mf';\r
         }\r
-        window.location = './' + redirect + '/index.html?hybrid=1&from=' + encodeURIComponent(locationWithoutHash) + hash;\r
+        window.location = './' + redirect + '/index.html?' + params + 'hybrid=1&from=' + encodeURIComponent(locationWithoutHash) + hash;\r
     </script>\r
 </head>\r
 <body>\r
-    <footer id="credits">$credits</footer>\r
+<footer id="credits">$credits</footer>\r
 </body>\r
 </html>
\ No newline at end of file