index.html 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. #game-canvas {
  19. width:75%;
  20. height:60%;
  21. position:absolute;
  22. top:0;
  23. left:0;
  24. }
  25. .fakeToolbar {
  26. height:150px;
  27. background-color: #333;
  28. }
  29. </style>
  30. </head>
  31. <body>
  32. <div class="fakeToolbar"></div>
  33. <!--The game canvas-->
  34. <canvas id="game-canvas"></canvas>
  35. <!--Starting the game-->
  36. <script>
  37. BABYLONDEVTOOLS.Loader.require("test/index.js").load(function() {
  38. new Test('game-canvas');
  39. });
  40. </script>
  41. </body>
  42. </html>