Mercurial > cosocket
annotate openwebchat.html @ 50:f78b986ecb6e
OWC now remembers your name.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Tue, 28 Apr 2009 19:08:16 +0000 |
parents | 42b8c0229cd0 |
children | 878871076cfa |
rev | line source |
---|---|
26 | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
4 <head> | |
5 <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
6 <link rel="stylesheet" type="text/css" media="all" | |
7 href="openwebchat.css" /> | |
8 <title>Open Web Chat</title> | |
9 </head> | |
10 <body> | |
42
f560e6f01c22
misc changes, including now scrolling to the bottom when new messages arrive.
Atul Varma <varmaa@toolness.com>
parents:
39
diff
changeset
|
11 <div id="content"> |
f560e6f01c22
misc changes, including now scrolling to the bottom when new messages arrive.
Atul Varma <varmaa@toolness.com>
parents:
39
diff
changeset
|
12 <h1>This is a conversation.</h1> |
34 | 13 <div id="incoming-messages"></div> |
33
8146a59c8045
Added basic 'chat' functionality.
Atul Varma <varmaa@toolness.com>
parents:
26
diff
changeset
|
14 <textarea id="outgoing-message"></textarea> |
39 | 15 <p>Your name is <input type="text" id="name"/>.</p> |
47 | 16 <div id="bottom"></div> |
42
f560e6f01c22
misc changes, including now scrolling to the bottom when new messages arrive.
Atul Varma <varmaa@toolness.com>
parents:
39
diff
changeset
|
17 </div> |
f560e6f01c22
misc changes, including now scrolling to the bottom when new messages arrive.
Atul Varma <varmaa@toolness.com>
parents:
39
diff
changeset
|
18 <div id="templates"> |
45
27785e0ac4d8
Added error detection on the client-side.
Atul Varma <varmaa@toolness.com>
parents:
43
diff
changeset
|
19 <div class="error"> |
27785e0ac4d8
Added error detection on the client-side.
Atul Varma <varmaa@toolness.com>
parents:
43
diff
changeset
|
20 It appears that your connection to the server has been |
27785e0ac4d8
Added error detection on the client-side.
Atul Varma <varmaa@toolness.com>
parents:
43
diff
changeset
|
21 severed. Please reload this page to reconnect. (Sorry, this will |
27785e0ac4d8
Added error detection on the client-side.
Atul Varma <varmaa@toolness.com>
parents:
43
diff
changeset
|
22 be more user-friendly in the future!) |
27785e0ac4d8
Added error detection on the client-side.
Atul Varma <varmaa@toolness.com>
parents:
43
diff
changeset
|
23 </div> |
42
f560e6f01c22
misc changes, including now scrolling to the bottom when new messages arrive.
Atul Varma <varmaa@toolness.com>
parents:
39
diff
changeset
|
24 <div class="message"> |
f560e6f01c22
misc changes, including now scrolling to the bottom when new messages arrive.
Atul Varma <varmaa@toolness.com>
parents:
39
diff
changeset
|
25 <div class="author"></div> |
43
728f162add5d
added timestamp info into DOM, though it's currently hidden.
Atul Varma <varmaa@toolness.com>
parents:
42
diff
changeset
|
26 <div class="timestamp"></div> |
42
f560e6f01c22
misc changes, including now scrolling to the bottom when new messages arrive.
Atul Varma <varmaa@toolness.com>
parents:
39
diff
changeset
|
27 <div class="content"></div> |
f560e6f01c22
misc changes, including now scrolling to the bottom when new messages arrive.
Atul Varma <varmaa@toolness.com>
parents:
39
diff
changeset
|
28 </div> |
f560e6f01c22
misc changes, including now scrolling to the bottom when new messages arrive.
Atul Varma <varmaa@toolness.com>
parents:
39
diff
changeset
|
29 </div> |
26 | 30 <script src="jquery.js"></script> |
33
8146a59c8045
Added basic 'chat' functionality.
Atul Varma <varmaa@toolness.com>
parents:
26
diff
changeset
|
31 <script src="json2.js"></script> |
26 | 32 <script src="openwebchat.js"></script> |
42
f560e6f01c22
misc changes, including now scrolling to the bottom when new messages arrive.
Atul Varma <varmaa@toolness.com>
parents:
39
diff
changeset
|
33 </body> |
26 | 34 </html> |