Deltakosh 8 years ago
parent
commit
f78b3763cf
4 changed files with 42 additions and 0 deletions
  1. 28 0
      Playground/css/index.css
  2. 5 0
      Playground/index-local.html
  3. 5 0
      Playground/index.html
  4. 4 0
      Playground/js/index.js

+ 28 - 0
Playground/css/index.css

@@ -9,6 +9,34 @@ body {
     overflow: hidden;
     overflow: hidden;
     font-family: sans-serif;
     font-family: sans-serif;
 }
 }
+#waitDiv {
+    position: absolute;
+    width: 100%;
+    height: 100%;
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    background: black;
+    opacity: 0.8;
+    top:0px;
+    left:0px;
+    z-index: 10;
+    flex-direction: column;
+}
+
+#waitSpan {
+    text-align: center;
+    font-size: 20px;
+    font-weight: lighter;
+    color: white;
+}
+
+#waitTitle {
+    text-align: center;
+    font-size: 38px;
+    color: #15A4FA;
+}
+
 .wrapper {
 .wrapper {
     height: calc(100% - 40px - 30px); /* nvabar top and bottom*/
     height: calc(100% - 40px - 30px); /* nvabar top and bottom*/
     width: 100%;
     width: 100%;

+ 5 - 0
Playground/index-local.html

@@ -343,6 +343,11 @@
         </div>
         </div>
     </div>
     </div>
 
 
+    <div id="waitDiv">
+        <span id="waitTitle">Babylon.js Playground<BR><BR><BR></span>
+        <span id="waitSpan">please wait<br>loading editor...</span>
+    </div>    
+
     <script src="https://code.jquery.com/jquery.js"></script>
     <script src="https://code.jquery.com/jquery.js"></script>
 
 
     <script src="js/actions.js"></script>
     <script src="js/actions.js"></script>

+ 5 - 0
Playground/index.html

@@ -379,6 +379,11 @@
         </div>
         </div>
     </div>
     </div>
 
 
+    <div id="waitDiv">
+        <span id="waitTitle">Babylon.js Playground<BR><BR><BR></span>
+        <span id="waitSpan">please wait<br>loading editor...</span>
+    </div>    
+
     <script src="https://code.jquery.com/jquery.js"></script>
     <script src="https://code.jquery.com/jquery.js"></script>
 
 
     <script src="js/actions.js"></script>
     <script src="js/actions.js"></script>

+ 4 - 0
Playground/js/index.js

@@ -280,6 +280,10 @@
 
 
         compileAndRun = function () {
         compileAndRun = function () {
             try {
             try {
+                var waitRing = document.getElementById("waitDiv");
+                if (waitRing) {
+                    waitRing.style.display = "none";
+                }
 
 
                 if (!BABYLON.Engine.isSupported()) {
                 if (!BABYLON.Engine.isSupported()) {
                     showError("Your browser does not support WebGL", null);
                     showError("Your browser does not support WebGL", null);