-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
37 lines (34 loc) · 1.08 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>WebSocket Client</title>
<meta name="author" content="Barkibu" />
<meta
name="description"
content="Basic Web Client connecting to the websocket"
/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="style.css" rel="stylesheet" />
</head>
<body>
<p>Basic WebSocket Send and Receive!</p>
<form id="connection_form">
<input id="websocket_server_url" type="text" value="localhost:5555" />
<button type="submit">Connect To WebSocket</button>
</form>
<h2>Message List</h2>
<ol id="message_list" class="message-container"></ol>
<hr />
<form id="message_form">
<div id="button-container"></div>
<textarea id="message_input" ></textarea>
<button type="submit">Send Message</button>
</form>
<form id="rollback_form">
<input id="rollback_steps" type="number" min="1" value="1"/>
<button type="submit">Rollback</button>
</form>
<script src="script.js" defer></script>
</body>
</html>