-
Notifications
You must be signed in to change notification settings - Fork 0
/
client.html
74 lines (72 loc) · 2.27 KB
/
client.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<html>
<head>
<title>Esgrima Server</title>
<script src="web-client.js" lang="javascript"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Martian+Mono:[email protected]&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap" rel="stylesheet">
<style>
html {
font-family: "Rubik", sans-serif;
font-optical-sizing: auto;
font-weight: 400;
font-style: normal;
margin: 0;
padding: 0;
}
body {
margin: 2rem;
padding: 0;
}
hr {
border: 0;
height: 3px;
background-color: #202084;
}
#board {
font-family: "Martian Mono", monospace;
font-optical-sizing: auto;
font-weight: 400;
font-style: normal;
font-size: .9rem;
}
</style>
</head>
<body>
<h1>Esgrima Protocol Server</h1>
<h2> Proof of Concept</h2>
<div>
<label for="server">Server:</label>
<input type="text" id="server" value="ws://localhost:8080/ws/">
<label for="protocol">Protocol:</label>
<input type="text" id="protocol" value="esgrima">
</div>
<br/>
<div>
<label for="name">User Name:</label>
<input type="text" id="name" value="Alice">
<button onclick="connect()">Connect</button>
<button onclick="disconnect()">Disconnect</button>
</div>
<br/>
<div>
<label for="refId">Collab. space:</label>
<button onclick="createRoom()">Create space</button>
</div>
<br/>
<div></div>
<label>Locator</label>
<input type="text" id="locator" value="" placeholder="locator">
<button onclick="enrollRoom()">Enroll space</button>
<label>Message</label>
<input type="text" id="message" placeholder="message" value='d1'>
<button onclick="sendAddMessage()">Send Add</button>
</div>
<br/>
<br/>
<hr/>
<div id="board">
</div>
</body>
</html>