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