12345678910111213141516171819202122232425262728293031323334 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <link rel="stylesheet" href="styles.css" />
- <title>JavaScript Promises 2 part</title>
- </head>
- <body>
- <div id="myForm">
- <h1 class="title">Chat</h1>
- <div>
- <label for="nickname">Your nickname:</label>
- <input
- id="nickname"
- type="text"
- placeholder="nickname"
- maxlength="14"
- value="surstrommed"
- />
- <br />
- <span>Your message:</span><br />
- <textarea id="message" placeholder="Write a message"></textarea>
- <br />
- <div id="errorBox"></div>
- <button id="sendBtn">Send</button>
- </div>
- <h2>Messages:</h2>
- <div class="history" id="historyChat"></div>
- </div>
- <script src="index.js"></script>
- </body>
- </html>
|