index.html

Thu, 18 Mar 2010 18:33:27 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 18 Mar 2010 18:33:27 +0000
changeset 24
ae502df97907
parent 18
9e4230bb66e4
child 29
f8c700c601f9
permissions
-rw-r--r--

Some adjustments to lay out the conversation UI page

0
84917e0f649d Commit skeleton HTML page
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
1 <html>
84917e0f649d Commit skeleton HTML page
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
2 <head>
1
472c3486b43e Add jQuery 1.4.2
Matthew Wild <mwild1@gmail.com>
parents: 0
diff changeset
3 <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
11
bf6a0898e613 Include strophe in index.html
Matthew Wild <mwild1@gmail.com>
parents: 8
diff changeset
4
18
9e4230bb66e4 Update Strophe.js to 1.0.1 (fixes some issues)
Matthew Wild <mwild1@gmail.com>
parents: 17
diff changeset
5 <script type="text/javascript" src="js/strophe.js"></script>
11
bf6a0898e613 Include strophe in index.html
Matthew Wild <mwild1@gmail.com>
parents: 8
diff changeset
6
bf6a0898e613 Include strophe in index.html
Matthew Wild <mwild1@gmail.com>
parents: 8
diff changeset
7 <script type="text/javascript" src="js/xmpp_muc.js"></script>
2
ec7dc98a811d Hide UI by default, include supportchat.js
Matthew Wild <mwild1@gmail.com>
parents: 1
diff changeset
8 <script type="text/javascript" src="js/supportchat.js"></script>
1
472c3486b43e Add jQuery 1.4.2
Matthew Wild <mwild1@gmail.com>
parents: 0
diff changeset
9
0
84917e0f649d Commit skeleton HTML page
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
10 <style type="text/css">
84917e0f649d Commit skeleton HTML page
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
11 #support-chat
84917e0f649d Commit skeleton HTML page
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
12 {
2
ec7dc98a811d Hide UI by default, include supportchat.js
Matthew Wild <mwild1@gmail.com>
parents: 1
diff changeset
13 display:none;
0
84917e0f649d Commit skeleton HTML page
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
14 }
6
2ce4c2abf346 Clean up UI a little
Matthew Wild <mwild1@gmail.com>
parents: 5
diff changeset
15 #support-converse, #support-question,
2ce4c2abf346 Clean up UI a little
Matthew Wild <mwild1@gmail.com>
parents: 5
diff changeset
16 #support-converse-input, #support-question-type,
2ce4c2abf346 Clean up UI a little
Matthew Wild <mwild1@gmail.com>
parents: 5
diff changeset
17 #support-question-text
0
84917e0f649d Commit skeleton HTML page
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
18 {
84917e0f649d Commit skeleton HTML page
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
19 width:100%;
84917e0f649d Commit skeleton HTML page
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
20 }
6
2ce4c2abf346 Clean up UI a little
Matthew Wild <mwild1@gmail.com>
parents: 5
diff changeset
21 #support-send-button, #support-question-submit
0
84917e0f649d Commit skeleton HTML page
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
22 {
84917e0f649d Commit skeleton HTML page
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
23 float:right;
84917e0f649d Commit skeleton HTML page
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
24 }
17
6344a9a20da2 Add waiting screen to UI
Matthew Wild <mwild1@gmail.com>
parents: 11
diff changeset
25 #support-wait, #support-converse
5
10712e3ac061 Split UI into stages, add simple question form
Matthew Wild <mwild1@gmail.com>
parents: 2
diff changeset
26 {
10712e3ac061 Split UI into stages, add simple question form
Matthew Wild <mwild1@gmail.com>
parents: 2
diff changeset
27 display:none;
10712e3ac061 Split UI into stages, add simple question form
Matthew Wild <mwild1@gmail.com>
parents: 2
diff changeset
28 }
24
ae502df97907 Some adjustments to lay out the conversation UI page
Matthew Wild <mwild1@gmail.com>
parents: 18
diff changeset
29 #support-log
ae502df97907 Some adjustments to lay out the conversation UI page
Matthew Wild <mwild1@gmail.com>
parents: 18
diff changeset
30 {
ae502df97907 Some adjustments to lay out the conversation UI page
Matthew Wild <mwild1@gmail.com>
parents: 18
diff changeset
31 position:relative;
ae502df97907 Some adjustments to lay out the conversation UI page
Matthew Wild <mwild1@gmail.com>
parents: 18
diff changeset
32 top:0px;
ae502df97907 Some adjustments to lay out the conversation UI page
Matthew Wild <mwild1@gmail.com>
parents: 18
diff changeset
33 overflow: auto;
ae502df97907 Some adjustments to lay out the conversation UI page
Matthew Wild <mwild1@gmail.com>
parents: 18
diff changeset
34 height:90%;
ae502df97907 Some adjustments to lay out the conversation UI page
Matthew Wild <mwild1@gmail.com>
parents: 18
diff changeset
35 padding:5px;
ae502df97907 Some adjustments to lay out the conversation UI page
Matthew Wild <mwild1@gmail.com>
parents: 18
diff changeset
36 }
ae502df97907 Some adjustments to lay out the conversation UI page
Matthew Wild <mwild1@gmail.com>
parents: 18
diff changeset
37 #support-input
ae502df97907 Some adjustments to lay out the conversation UI page
Matthew Wild <mwild1@gmail.com>
parents: 18
diff changeset
38 {
ae502df97907 Some adjustments to lay out the conversation UI page
Matthew Wild <mwild1@gmail.com>
parents: 18
diff changeset
39 height:7%;
ae502df97907 Some adjustments to lay out the conversation UI page
Matthew Wild <mwild1@gmail.com>
parents: 18
diff changeset
40 bottom:0px;
ae502df97907 Some adjustments to lay out the conversation UI page
Matthew Wild <mwild1@gmail.com>
parents: 18
diff changeset
41 position:relative;
ae502df97907 Some adjustments to lay out the conversation UI page
Matthew Wild <mwild1@gmail.com>
parents: 18
diff changeset
42 }
6
2ce4c2abf346 Clean up UI a little
Matthew Wild <mwild1@gmail.com>
parents: 5
diff changeset
43
0
84917e0f649d Commit skeleton HTML page
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
44 </style>
84917e0f649d Commit skeleton HTML page
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
45 </head>
84917e0f649d Commit skeleton HTML page
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
46 <body>
84917e0f649d Commit skeleton HTML page
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
47 <div id="support-chat">
5
10712e3ac061 Split UI into stages, add simple question form
Matthew Wild <mwild1@gmail.com>
parents: 2
diff changeset
48 <div id="support-question">
10712e3ac061 Split UI into stages, add simple question form
Matthew Wild <mwild1@gmail.com>
parents: 2
diff changeset
49 <h2>What is the nature of your question?</h2>
8
09d33857ca04 Fix element ids in index.html
Matthew Wild <mwild1@gmail.com>
parents: 6
diff changeset
50 <select id="support-question-type">
5
10712e3ac061 Split UI into stages, add simple question form
Matthew Wild <mwild1@gmail.com>
parents: 2
diff changeset
51 <option>Sales</option>
10712e3ac061 Split UI into stages, add simple question form
Matthew Wild <mwild1@gmail.com>
parents: 2
diff changeset
52 <option>Technical</option>
10712e3ac061 Split UI into stages, add simple question form
Matthew Wild <mwild1@gmail.com>
parents: 2
diff changeset
53 </select>
10712e3ac061 Split UI into stages, add simple question form
Matthew Wild <mwild1@gmail.com>
parents: 2
diff changeset
54 <h2>What is your name?</h2>
8
09d33857ca04 Fix element ids in index.html
Matthew Wild <mwild1@gmail.com>
parents: 6
diff changeset
55 <input id="support-question-name" type="text" />
5
10712e3ac061 Split UI into stages, add simple question form
Matthew Wild <mwild1@gmail.com>
parents: 2
diff changeset
56 <h2>Your question:</h2>
6
2ce4c2abf346 Clean up UI a little
Matthew Wild <mwild1@gmail.com>
parents: 5
diff changeset
57 <textarea id="support-question-text"></textarea><br/>
2ce4c2abf346 Clean up UI a little
Matthew Wild <mwild1@gmail.com>
parents: 5
diff changeset
58 <input id="support-question-submit" type="submit" />
5
10712e3ac061 Split UI into stages, add simple question form
Matthew Wild <mwild1@gmail.com>
parents: 2
diff changeset
59 </div>
17
6344a9a20da2 Add waiting screen to UI
Matthew Wild <mwild1@gmail.com>
parents: 11
diff changeset
60 <div id="support-wait">Please wait...</div>
5
10712e3ac061 Split UI into stages, add simple question form
Matthew Wild <mwild1@gmail.com>
parents: 2
diff changeset
61 <div id="support-converse">
10712e3ac061 Split UI into stages, add simple question form
Matthew Wild <mwild1@gmail.com>
parents: 2
diff changeset
62 <div id="support-log">Hello</div>
10712e3ac061 Split UI into stages, add simple question form
Matthew Wild <mwild1@gmail.com>
parents: 2
diff changeset
63 <input id="support-input" type="text" value="Hello" />
10712e3ac061 Split UI into stages, add simple question form
Matthew Wild <mwild1@gmail.com>
parents: 2
diff changeset
64 <input id="support-send-button" type="submit" value="Send" />
10712e3ac061 Split UI into stages, add simple question form
Matthew Wild <mwild1@gmail.com>
parents: 2
diff changeset
65 </div>
0
84917e0f649d Commit skeleton HTML page
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
66 </div>
84917e0f649d Commit skeleton HTML page
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
67 </body>
84917e0f649d Commit skeleton HTML page
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
68 </html>

mercurial