Browse Source

Remove Sandbox and Frame Fullscreeen

sebastien 6 years ago
parent
commit
735becebfe
5 changed files with 1 additions and 22 deletions
  1. 1 4
      Playground/frame.html
  2. 0 9
      Playground/js/frame.js
  3. 0 1
      sandbox/index-local.html
  4. 0 1
      sandbox/index.html
  5. 0 7
      sandbox/index.js

+ 1 - 4
Playground/frame.html

@@ -79,11 +79,8 @@
         <div class="footer">
         <span id="fpsLabel">FPS</span>
         <div class="footerRight">
-                <a href="javascript:void(null);" id="btnFullscreen">
-                    <img src="textures/icons/Icon_Fullscreen.svg" width="36" height="36" alt="Full screen" title="Full screen" />
-                </a> 
                 <a href="javascript:void(null);">
-                <img id="refresh" src="textures/icons/refresh.png"  width="36" height="36" alt="Reload page" title="Reload page"/>
+                    <img id="refresh" src="textures/icons/refresh.png"  width="36" height="36" alt="Reload page" title="Reload page"/>
                 </a>
                 <a id="edit" href="#" target="_blank">
                     <img src="textures/icons/edit.png" width="36" height="36" alt="Edit in playground" title="Edit in playground"/>

+ 0 - 9
Playground/js/frame.js

@@ -3,7 +3,6 @@
     var currentSnippetToken;
     var engine;
     var fpsLabel = document.getElementById("fpsLabel");
-    var btnFullScreen = document.getElementById("btnFullscreen");
     var refreshAnchor = document.getElementById("refresh");
     var editAnchor = document.getElementById("edit");
     var scripts;
@@ -150,15 +149,7 @@
         }
     });
 
-    btnFullScreen.addEventListener('click', function() {
-        if (engine) {
-            engine.switchFullscreen(true);
-        }
-    }, false);
-
-
     // UI
-
     var cleanHash = function () {
         var splits = decodeURIComponent(location.hash.substr(1)).split("#");
 

+ 0 - 1
sandbox/index-local.html

@@ -34,7 +34,6 @@
             </div>
         </div>
         <div class="footerRight">
-            <a href="javascript:void(null);" 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="javascript:void(null);" id="btnInspector" class="hidden"><img src="./Assets/Icon_EditModel.svg" alt="Display inspector" title="Display inspector" /></a> 
             <a href="javascript:void(null);">
                 <div class="custom-upload" title="Open your scene from your hard drive (.babylon, .gltf, .glb, .obj)">

+ 0 - 1
sandbox/index.html

@@ -65,7 +65,6 @@
             </div>
         </div>               
         <div class="footerRight">
-            <a href="javascript:void(null);" 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="javascript:void(null);" id="btnInspector" class="hidden"><img src="./Assets/Icon_EditModel.svg" alt="Display inspector" title="Display inspector" /></a> 
             <a href="javascript:void(null);">
                 <div class="custom-upload" title="Open your scene from your hard drive (.babylon, .gltf, .glb, .obj)">

+ 0 - 7
sandbox/index.js

@@ -46,7 +46,6 @@ if (BABYLON.Engine.isSupported()) {
     var engine = new BABYLON.Engine(canvas, true, { premultipliedAlpha: false, preserveDrawingBuffer: true });
     var htmlInput = document.getElementById("files");
     var footer = document.getElementById("footer");
-    var btnFullScreen = document.getElementById("btnFullscreen");
     var btnInspector = document.getElementById("btnInspector");
     var errorZone = document.getElementById("errorZone");
     var filesInput;
@@ -59,7 +58,6 @@ if (BABYLON.Engine.isSupported()) {
 
     engine.loadingUIBackgroundColor = "#a9b5bc";
 
-    btnFullScreen.classList.add("hidden");
     btnInspector.classList.add("hidden");
 
     canvas.addEventListener("contextmenu", function(evt) {
@@ -127,7 +125,6 @@ if (BABYLON.Engine.isSupported()) {
         // Clear the error
         errorZone.style.display = 'none';
 
-        btnFullScreen.classList.remove("hidden");
         btnInspector.classList.remove("hidden");
 
         currentScene = babylonScene;
@@ -305,10 +302,6 @@ if (BABYLON.Engine.isSupported()) {
         footer.style.display = "none";
     }
 
-    btnFullScreen.addEventListener('click', function() {
-        engine.switchFullscreen(true);
-    }, false);
-
     btnInspector.addEventListener('click', function() {
         if (currentScene) {
             if (currentScene.debugLayer.isVisible()) {