index.html 806 B

1234567891011121314151617181920212223242526272829303132
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <link rel="stylesheet" href="./style.css">
  8. <title>hw12-promiseChat</title>
  9. </head>
  10. <body>
  11. <h1>promise chat client</h1>
  12. <div id="msgField"></div>
  13. <div id='formContainer'>
  14. <input
  15. id="nickbox"
  16. type="text"
  17. placeholder="nickname"
  18. >
  19. <br>
  20. <textarea
  21. name="messagebox"
  22. id="msgbox"
  23. cols="30"
  24. rows="5"
  25. placeholder="message"
  26. ></textarea>
  27. <br>
  28. <button id="sendBtn">Send</button>
  29. </div>
  30. <script src="./script.js"></script>
  31. </body>
  32. </html>