-
Notifications
You must be signed in to change notification settings - Fork 215
/
Copy pathchatview.html
47 lines (45 loc) · 1.62 KB
/
chatview.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
37
38
39
40
41
42
43
44
45
46
47
<div id="loginContainer">
<div class="welcomeMessage">
<h2>Chat Demo</h2>
<p>Welcome! You can log in with any username / password</p>
</div>
<div id="loginForm">
<div class="line">
<label for="txtUserName">Username</label>
<input class="lineInput" type="text" id="txtUserName" tabindex="1"
onKeyDown="passwordFocus(event);"/>
</div>
<div class="line">
<label for="txtPassword">Password</label>
<input class="lineInput" type="password" id="txtPassword" value="" tabindex="2"
onKeyDown="loginOnEnterPressed(chatView, event);" onblur="focusId('txtUserName');"/>
</div>
<div class="line">
<div class="loginButtonWrapper">
<a class="button" href="#" onclick="chatView.login();">
<span>Login</span>
</a>
</div>
</div>
</div>
<div id="errorView"> </div>
<script type="text/javascript">
$('txtUserName').focus();
</script>
</div>
<div id="connectingContainer">
<div id="connecting">Connecting</div>
</div>
<!-- conversationView BEGIN-->
<div id="conversationView">
<ul id="userList"><li>Users</li></ul>
<div id="messageView"></div>
<div id="messageViewSeparator"></div>
<textarea id="txtMessage"
name="txtMessage"
onkeydown="chatView.processInputEvent(event)"
onkeyup="chatView.clearInputEvent(event)"
rows="3" cols="20"
tabindex="1" onblur="focusId('txtMessage');"></textarea>
</div>
<!-- conversationView END-->