Bladeren bron

Fix sandbox

David Catuhe 7 jaren geleden
bovenliggende
commit
d645123641
3 gewijzigde bestanden met toevoegingen van 45 en 106 verwijderingen
  1. 17 19
      sandbox/index-local.html
  2. 10 66
      sandbox/index.css
  3. 18 21
      sandbox/index.html

+ 17 - 19
sandbox/index-local.html

@@ -12,8 +12,23 @@
     <div id="logo">
     </div>
     <div id="footer" class="footer">
-        <div class="footerLeft">
-        </div>
+        <div id="animationBar">
+            <div class="dropdown">
+                <div id="dropdownBtn">
+                    <span id="dropdownLabel"></span>
+                    <img src="Assets/arrowUp.png">
+                </div>
+                <div id="dropdownContent">
+                </div>
+            </div>
+            <div class="row">
+                <button id="playBtn" class="pause">
+                    <img id="playImg" src="Assets/play.png">
+                    <img id="pauseImg" src="Assets/pause.png">
+                </button>
+                <input id="slider" type="range" min="0" max="100" value="0" step="any">
+            </div>
+        </div>               
         <div class="footerRight">
             <a href="#" id="btnFullscreen" class="hidden"><img src="./Assets/Icon_Fullscreen.svg" alt="Switch the scene to full screen" title="Switch the scene to full screen" /></a> 
             <a href="#" id="btnInspector" class="hidden"><img src="./Assets/Icon_EditModel.svg" alt="Display inspector" title="Display inspector" /></i></a> 
@@ -24,23 +39,6 @@
             </a>
         </div>
     </div>
-    <div id="animationBar">
-        <div class="dropdown">
-            <div id="dropdownBtn">
-                <span id="dropdownLabel"></span>
-                <img src="Assets/arrowUp.png">
-            </div>
-            <div id="dropdownContent">
-            </div>
-        </div>
-        <div class="row">
-            <button id="playBtn" class="pause">
-                <img id="playImg" src="Assets/play.png">
-                <img id="pauseImg" src="Assets/pause.png">
-            </button>
-            <input id="slider" type="range" min="0" max="100" value="0" step="any">
-        </div>
-    </div>
     <div id="errorZone"></div>
     <script>
         BABYLONDEVTOOLS.Loader

+ 10 - 66
sandbox/index.css

@@ -21,58 +21,6 @@
     -ms-touch-action: none;
 }
 
-.help {
-    display: none;
-    position: absolute;
-    background-color: #3B789A;
-    right: 0;
-    bottom: 70px;
-    color: white;
-    padding-right: 10px;
-    width: 360px;
-    height: 30px;
-    transition: all 0.5s ease;
-    -webkit-transition: all 0.5s ease;
-    transform: translateX(400px);
-    -webkit-transform: translateX(400px);
-        text-align: center;
-}
-
-    .help.shown {
-        transform: translateX(-100px);
-        -webkit-transform: translateX(-100px);
-        display: inline;
-    }
-
- .help2 {
-    display: none;
-    position: absolute;
-    background-color: #3B789A;
-    right: 0;
-    bottom: 70px;
-    color: white;
-    padding-right: 10px;
-    width: 360px;
-    height: 30px;
-    transition: all 0.5s ease;
-    -webkit-transition: all 0.5s ease;
-    transform: translateX(400px);
-    -webkit-transform: translateX(400px);
-        text-align: center;
-}
-
-    .help2.shown {
-        transform: translateX(0px);
-        -webkit-transform: translateX(0px);
-        display: inline;
-    }
-
-#helpArrow {
-    position: absolute;
-    right: -65px;
-    bottom: 10px;
-}
-
 #fps {
     position: absolute;
     font-size: 30px;
@@ -97,24 +45,16 @@ a {
     height: 56px;
     bottom: 0;
     background-color: #3B789A;
-    padding-left: 15px;
 }
 
 .footerRight {
     display: inline;
     position: absolute;
     bottom: 0;
-    right: 10px;
+    right: 0px;
     top: 0px;
 }
 
-.footerLeft {
-    position: absolute;
-    bottom: 20px;
-    left: 15px;
-    color: white;
-}
-
 .footerRight a {
     float: left; /* Float links side by side */
     width: 56px; 
@@ -228,16 +168,18 @@ a {
     position: absolute;
     bottom: 0px;
     display: none;
-    justify-content: space-around;
     align-items: center;
     color: white;
     font-weight: bold;
-    width: calc(100% - 200px);
+    width: calc(100% - 168px);
+    bottom: 12px;
 }
 
 .row {
     display: flex;
     flex-direction: row;
+    justify-content: center;
+    flex-grow: 10;
 }
 
 #animationBar * {
@@ -245,8 +187,7 @@ a {
     margin: 0px;
 }
 
-#animationBar,
-#dropdownContent {
+#animationBar #dropdownContent {
     padding: 10px;
     background-color: #3B789A;
 }
@@ -259,6 +200,7 @@ a {
 .dropdown {
     position: relative;
     display: inline-block;
+    width: 150px;
 }
 
 #dropdownBtn,
@@ -328,6 +270,8 @@ a {
     width: 1000px;
     outline: none;
     border-radius: 5px;
+    height: 4px; 
+    margin-top: 10px;   
 }
 
 /*Chrome -webkit */
@@ -344,7 +288,7 @@ a {
     height: 10px;
     -webkit-appearance: none;
     color: white;
-    margin-top: -1px;
+    margin-top: -10px;
 }
 
 

+ 18 - 21
sandbox/index.html

@@ -29,8 +29,7 @@
 
     <script src="https://preview.babylonjs.com/cannon.js"></script>
     <script src="https://preview.babylonjs.com/Oimo.js"></script>
-    <!-- <script src="https://preview.babylonjs.com/babylon.js"></script> -->
-    <script src="../dist/preview release/babylon.js"></script>
+    <script src="https://preview.babylonjs.com/babylon.js"></script>
     <script src="https://preview.babylonjs.com/inspector/babylon.inspector.bundle.js"></script>
 
     <script src="https://preview.babylonjs.com/loaders/babylonjs.loaders.min.js"></script>
@@ -42,8 +41,23 @@
     <div id="logo">
     </div>
     <div id="footer" class="footer">
-        <div class="footerLeft">
-        </div>
+        <div id="animationBar">
+            <div class="dropdown">
+                <div id="dropdownBtn">
+                    <span id="dropdownLabel"></span>
+                    <img src="Assets/arrowUp.png">
+                </div>
+                <div id="dropdownContent">
+                </div>
+            </div>
+            <div class="row">
+                <button id="playBtn" class="pause">
+                    <img id="playImg" src="Assets/play.png">
+                    <img id="pauseImg" src="Assets/pause.png">
+                </button>
+                <input id="slider" type="range" min="0" max="100" value="0" step="any">
+            </div>
+        </div>               
         <div class="footerRight">
             <a href="#" id="btnFullscreen" class="hidden"><img src="./Assets/Icon_Fullscreen.svg" alt="Switch the scene to full screen" title="Switch the scene to full screen" /></a> 
             <a href="#" id="btnInspector" class="hidden"><img src="./Assets/Icon_EditModel.svg" alt="Display inspector" title="Display inspector" /></i></a> 
@@ -54,23 +68,6 @@
             </a>
         </div>
     </div>
-    <div id="animationBar">
-        <div class="dropdown">
-            <div id="dropdownBtn">
-                <span id="dropdownLabel"></span>
-                <img src="Assets/arrowUp.png">
-            </div>
-            <div id="dropdownContent">
-            </div>
-        </div>
-        <div class="row">
-            <button id="playBtn" class="pause">
-                <img id="playImg" src="Assets/play.png">
-                <img id="pauseImg" src="Assets/pause.png">
-            </button>
-            <input id="slider" type="range" min="0" max="100" value="0" step="any">
-        </div>
-    </div>
     <div id="errorZone"></div>
     <script src="index.js"></script>
 </body>