ui
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>ws-nats chat</title>
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
|
||||
crossorigin="anonymous">
|
||||
<script type="module" src="/assets/nats.ws-1.30.3/examples/chat.js"></script>
|
||||
|
||||
</head>
|
||||
<!-- when the browser exits, we publish a message -->
|
||||
|
||||
<body onunload="chat.exiting()">
|
||||
|
||||
<!-- a form for entering messages -->
|
||||
<div class="container">
|
||||
<h1>ws-nats chat</h1>
|
||||
<input type="text" class="form-control" id="data" placeholder="Message" autocomplete="off"><br />
|
||||
<button id="send" onclick="chat.send()" class="btn btn-primary">Send</button>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
<!-- a place to record messages -->
|
||||
<div id="chats" class="container"></div>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user