-
Notifications
You must be signed in to change notification settings - Fork 22
/
index.html
36 lines (36 loc) · 957 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>gRPC-Web Example</title>
<script src="./dist/main.js"></script>
<style type="text/css">
#submit-message {
display: none;
}
#messages {
margin-bottom: 0.5rem;
}
.container {
display: flex;
flex-direction: column;
margin: 2rem;
}
</style>
</head>
<body>
<section class="container">
<div id="messages"></div>
<form id="submit-name" action="#">
<p>Enter your name to join the chat</p>
<input autofocus placeholder="Enter your name..." type="text" id="name" />
<button type="submit">Submit</button>
</form>
<form id="submit-message" action="#">
Chat
<input autofocus placeholder="Type a message..." id="message" type="text" />
<button type="submit">Submit</button>
</form>
</section>
</body>
</html>