index.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. #game-canvas {
  38. position:absolute;
  39. width:100%;
  40. height:650px;
  41. top:0;
  42. left : 150px;
  43. }
  44. </style>
  45. </head>
  46. <body>
  47. <!-- First try : PG-like
  48. <div class="fakeToolbar"></div>
  49. <div class="mini">
  50. <div class="fakeBarAgain"></div>
  51. <canvas id="game-canvas"></canvas>
  52. </div>
  53. -->
  54. <!--Second try : Sandbox-like-->
  55. <canvas id="game-canvas"></canvas>
  56. <!--Starting the game-->
  57. <script>
  58. BABYLONDEVTOOLS.Loader.require("test/index.js").load(function() {
  59. new Test('game-canvas');
  60. });
  61. </script>
  62. </body>
  63. </html>