game.html 742 B

12345678910111213141516171819202122232425
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Game Demo</title>
  6. <style type="text/css">
  7. #canvas-section {
  8. display: none;
  9. }
  10. </style>
  11. </head>
  12. <body>
  13. <div id="login-section">
  14. <input id="username" type="username" value="admin" placeholder="username" />
  15. <input id="password" type="password" value="password" placeholder="password" />
  16. <button id="login">Login</button>
  17. </div>
  18. <div id="canvas-section">
  19. <div id="container"></div>
  20. <button id="connect">Connect</button>
  21. </div>
  22. <!-- <script src="./cannon-es.js"></script> -->
  23. <script type="module" src="./game.js"></script>
  24. </body>
  25. </html>