index.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Inspector - test</title>
  5. <meta charset='utf-8'/>
  6. <meta name="viewport" content="width=device-width, user-scalable=no">
  7. <!--Babylon-->
  8. <script src="../tools/DevLoader/BabylonLoader.js"></script>
  9. <style>
  10. html, body {
  11. width: 100%;
  12. height:100%;
  13. margin:0;
  14. padding:0;
  15. overflow:hidden;
  16. font-family:sans-serif;
  17. }
  18. /* First try : PG-like */
  19. /*#game-canvas {
  20. width:75%;
  21. height:100%;
  22. top:0;
  23. left:0;
  24. }
  25. .fakeToolbar {
  26. height:150px;
  27. background-color: #333;
  28. }
  29. .mini {
  30. display:flex;
  31. height:calc(100% - 150px);
  32. }
  33. .fakeBarAgain {
  34. width:50%;
  35. background-color: #333;
  36. }*/
  37. /*Second : sandbox like*/
  38. #game-canvas {
  39. position:absolute;
  40. width:100%;
  41. height:100%;
  42. top:0;
  43. }
  44. .fakeFooter {
  45. position:absolute;
  46. width:100%;
  47. height:50px;
  48. background-color: #333;
  49. bottom: 0;
  50. }
  51. </style>
  52. </head>
  53. <body>
  54. <!-- First try : PG-like
  55. <div class="fakeToolbar"></div>
  56. <div class="mini">
  57. <div class="fakeBarAgain"></div>
  58. <canvas id="game-canvas"></canvas>
  59. </div>-->
  60. <!--Second try : Sandbox-like -->
  61. <canvas id="game-canvas"></canvas>
  62. <div class="fakeFooter"></div>
  63. <!--Starting the game-->
  64. <script>
  65. BABYLONDEVTOOLS.Loader.require("test/index.js").load(function() {
  66. new Test('game-canvas');
  67. });
  68. </script>
  69. </body>
  70. </html>