Skip to content

Instantly share code, notes, and snippets.

@robertz
Created January 18, 2013 18:12
Show Gist options
  • Select an option

  • Save robertz/4566773 to your computer and use it in GitHub Desktop.

Select an option

Save robertz/4566773 to your computer and use it in GitHub Desktop.
Chat application base html
<div id="messageContainer" style="display: none;">
<div id="displayName"><strong>Display Name</strong>: </div><br />
<div id="chatDiv" style="height: 300px; width: 80%; float: left; border: 1px solid gray; overflow: auto; background: #fff;"></div>
<div id="clientDiv" style="height: 300px; width: 18%; float: right; border: 1px solid gray; overflow: auto; background: #fff;"></div>
<br clear="all" />
<br /><br />
<div class="form-inline">
<input id="message" type="text" style="width: 90%;" />
<input type="button" id="send" value="Send" class="btn btn-primary" />
</div>
<br /><br />
<a href="/lib/js/chat.js" style="font-weight: bold;" class="code">View the Chat javascript file</a>
</div>
<div id="nameContainer" style="display: none;" class="form-inline">
<input id="userName" type="text" />
<input type="button" id="setName" value="Set Name" class="btn btn-primary" />
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment