A dead simple real time webchat with authorization using websockets
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
494 B

2 years ago
{{ template "base" . }}
{{ define "content" }}
<p>
logged in as <b id="logged_username" onload=""></b>
</p>
<div id="chatbox"></div>
2 years ago
<div>
<input type="text" id="text_input" multiple autofocus>
2 years ago
<input type="button" value="Send" id="send_button">
<input type="file" id="file_input" value="Add attachment">
2 years ago
<input type="button" value="Disconnect" id="disconnect_button">
</div>
<script src="/scripts/user.js"></script>
<script src="/scripts/chat.js"></script>
{{ end }}