Thu, 18 Mar 2010 18:33:27 +0000
Some adjustments to lay out the conversation UI page
0 | 1 | <html> |
2 | <head> | |
1 | 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 | 9 | |
0 | 10 | <style type="text/css"> |
11 | #support-chat | |
12 | { | |
2
ec7dc98a811d
Hide UI by default, include supportchat.js
Matthew Wild <mwild1@gmail.com>
parents:
1
diff
changeset
|
13 | display:none; |
0 | 14 | } |
6 | 15 | #support-converse, #support-question, |
16 | #support-converse-input, #support-question-type, | |
17 | #support-question-text | |
0 | 18 | { |
19 | width:100%; | |
20 | } | |
6 | 21 | #support-send-button, #support-question-submit |
0 | 22 | { |
23 | float:right; | |
24 | } | |
17 | 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 | 43 | |
0 | 44 | </style> |
45 | </head> | |
46 | <body> | |
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 | 57 | <textarea id="support-question-text"></textarea><br/> |
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 | 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 | 66 | </div> |
67 | </body> | |
68 | </html> |