index.html 1000 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8" />
  5. <title>webgl learn</title>
  6. <script type="module" src="/src/base/index.ts"></script>
  7. <meta
  8. name="viewport"
  9. content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1"
  10. />
  11. </head>
  12. <style>
  13. * {
  14. padding: 0;
  15. margin: 0;
  16. }
  17. #container {
  18. display: flex;
  19. flex-direction: column;
  20. position: absolute;
  21. left: 0;
  22. top: 0;
  23. height: 100% !important;
  24. width: 100%;
  25. }
  26. #canvas-wrap {
  27. flex-grow: 1;
  28. }
  29. #canvas {
  30. width: 100%;
  31. height: 100%;
  32. }
  33. #toolbar {
  34. height: 100px;
  35. }
  36. </style>
  37. <body style="background-color: #ccc">
  38. <div id="container">
  39. <div id="canvas-wrap">
  40. <canvas id="canvas" style="background-color: #efefef"></canvas>
  41. </div>
  42. <div id="toolbar">
  43. <button id="toggleTestLayer">toggleTestLayer</button>
  44. </div>
  45. </div>
  46. </body>
  47. </html>