A text adventure game experiment
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
799B

  1. <!doctype html>
  2. <html>
  3. <head>
  4. <script src='node_modules/js-yaml/dist/js-yaml.min.js'></script>
  5. <script src='web.js' type='module'></script>
  6. <style>
  7. html {
  8. color: grey;
  9. background-color: black;
  10. font-family: "Lucida Console", Monaco, monospace;
  11. white-space: pre;
  12. overflow-x: hidden;
  13. }
  14. input {
  15. width: 100%;
  16. border: none;
  17. color: gray;
  18. background: black;
  19. font-size: 18px;
  20. height: 19px;
  21. }
  22. </style>
  23. </head>
  24. <body>
  25. <div id='game'></div><span id="delimiter"></span><input type='text' id='prompt'>
  26. </body>
  27. </html>