Mercurial > eldonilo > barbecue
annotate index.xhtml @ 9:d3b37bbb2b88 default tip master
Support multiple participants.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 02 Feb 2012 16:37:28 +0100 |
parents | 7b2ca4d5af6d |
children |
rev | line source |
---|---|
0 | 1 <!DOCTYPE html> |
5
03ef53b969bd
Add XMPP support.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
2
diff
changeset
|
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
0 | 3 <head> |
2
683f56999fb3
'DOMNodeFocused' pseudo-event + Mutation Event Demo
Fabien Cazenave <fabien@cazenave.cc>
parents:
1
diff
changeset
|
4 <meta charset="UTF-8" /> |
1
eb3679d92996
put JS and CSS code in separated files
Sonny Piers <sonny.piers@gmail.com>
parents:
0
diff
changeset
|
5 <title> barbecue </title> |
eb3679d92996
put JS and CSS code in separated files
Sonny Piers <sonny.piers@gmail.com>
parents:
0
diff
changeset
|
6 <link type="text/css" href="style.css" rel="stylesheet" /> |
2
683f56999fb3
'DOMNodeFocused' pseudo-event + Mutation Event Demo
Fabien Cazenave <fabien@cazenave.cc>
parents:
1
diff
changeset
|
7 <script type="text/javascript" src="script.js"></script> |
5
03ef53b969bd
Add XMPP support.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
2
diff
changeset
|
8 <script type="text/javascript" src="lightstring/md5.js"></script> |
03ef53b969bd
Add XMPP support.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
2
diff
changeset
|
9 <script type="text/javascript" src="lightstring/lightstring.js"></script> |
03ef53b969bd
Add XMPP support.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
2
diff
changeset
|
10 <script type="text/javascript" src="lightstring/stanza.js"></script> |
03ef53b969bd
Add XMPP support.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
2
diff
changeset
|
11 <script type="text/javascript" src="lightstring/jid.js"></script> |
7
853dcbe8f06f
Make barbecue work with latest Lightstring.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
6
diff
changeset
|
12 <script type="text/javascript" src="lightstring/plugins/DIGEST-MD5.js"></script> |
5
03ef53b969bd
Add XMPP support.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
2
diff
changeset
|
13 <script type="text/javascript" src="lightstring/plugins/presence.js"></script> |
03ef53b969bd
Add XMPP support.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
2
diff
changeset
|
14 <script type="text/javascript" src="lightstring/plugins/disco.js"></script> |
03ef53b969bd
Add XMPP support.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
2
diff
changeset
|
15 <script type="text/javascript" src="record.js"></script> |
03ef53b969bd
Add XMPP support.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
2
diff
changeset
|
16 <script type="text/javascript" src="sxe-document.js"></script> |
03ef53b969bd
Add XMPP support.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
2
diff
changeset
|
17 <script type="text/javascript" src="config.js"></script> |
0 | 18 </head> |
19 <body> | |
6
24aa8dccb170
Make XMPP actually work.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
5
diff
changeset
|
20 <div id="state"/> |
24aa8dccb170
Make XMPP actually work.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
5
diff
changeset
|
21 <button id="host">Host</button> |
8
7b2ca4d5af6d
Add a resend-whole-state button and make it works.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
7
diff
changeset
|
22 <button id="resend-state">Resend the whole state</button> |
0 | 23 <form id="toolbar"> |
24 <dl> | |
25 <dt> edit: </dt> | |
26 <dd> | |
27 <input type="button" value=" " data-command="undo" /> | |
28 <input type="button" value=" " data-command="redo" /> | |
29 | | |
30 <input type="button" value=" " data-command="cut" disabled="" /> | |
31 <input type="button" value=" " data-command="copy" disabled="" /> | |
32 <input type="button" value=" " data-command="paste" disabled="" /> | |
33 | | |
34 <input type="checkbox" id="useCSS" data-command="styleWithCSS" checked="" /> | |
35 <label for="useCSS">style with CSS</label> | |
36 </dd> | |
37 <dt> inline: </dt> | |
38 <dd> | |
39 <select data-command="fontName"> | |
40 <option value="" disabled="" selected=""> Font </option> | |
41 <option value="serif"> serif </option> | |
42 <option value="sans-serif"> sans-serif </option> | |
43 <option value="monospace"> monospace </option> | |
44 <option value=" " disabled=""> - </option> | |
45 <option value="Arial"> Arial </option> | |
46 <option value="Courier New"> Courier New </option> | |
47 <option value="Times New Roman"> Times New Roman </option> | |
48 <option value="Verdana"> Verdana </option> | |
49 </select> | |
50 <select data-command="fontSize"> | |
51 <option value="" disabled="" selected=""> Size </option> | |
52 <option value="1"> 1 </option> | |
53 <option value="2"> 2 </option> | |
54 <option value="3"> 3 </option> | |
55 <option value="4"> 4 </option> | |
56 <option value="5"> 5 </option> | |
57 <option value="6"> 6 </option> | |
58 <option value="7"> 7 </option> | |
59 </select> | |
60 <input type="button" value="-" data-command="decreaseFontSize" /> | |
61 <input type="button" value="+" data-command="increaseFontSize" /> | |
62 | | |
63 <input type="button" value=" " data-command="bold" /> | |
64 <input type="button" value=" " data-command="italic" /> | |
65 <input type="button" value=" " data-command="underline" /> | |
66 <input type="button" value=" " data-command="strikeThrough" /> | |
67 | | |
68 <input type="button" value=" " data-command="subscript" /> | |
69 <input type="button" value=" " data-command="superscript" /> | |
70 </dd> | |
71 <dt> block: </dt> | |
72 <dd> | |
73 <select data-command="formatBlock"> | |
74 <option value="" disabled="" selected=""> Format </option> | |
75 <option value="<p>"> paragraph </option> | |
76 <option value="<h1>"> heading 1 </option> | |
77 <option value="<h2>"> heading 2 </option> | |
78 <option value="<h3>"> heading 3 </option> | |
79 <option value="<h4>"> heading 4 </option> | |
80 <option value="<h5>"> heading 5 </option> | |
81 <option value="<h6>"> heading 6 </option> | |
82 <option value="<address>"> address </option> | |
83 <option value="<pre>"> preformatted </option> | |
84 </select> | |
85 | | |
86 <input type="button" value=" " data-command="justifyLeft" /> | |
87 <input type="button" value=" " data-command="justifyCenter" /> | |
88 <input type="button" value=" " data-command="justifyRight" /> | |
89 <input type="button" value=" " data-command="justifyFull" /> | |
90 | | |
91 <input type="button" value=" " data-command="outdent" /> | |
92 <input type="button" value=" " data-command="indent" /> | |
93 | | |
94 <input type="button" value=" " data-command="insertOrderedList" /> | |
95 <input type="button" value=" " data-command="insertUnorderedList" /> | |
96 </dd> | |
97 </dl> | |
98 <pre id="execCommand" /> | |
99 </form> | |
2
683f56999fb3
'DOMNodeFocused' pseudo-event + Mutation Event Demo
Fabien Cazenave <fabien@cazenave.cc>
parents:
1
diff
changeset
|
100 <pre id="breadcrumb"> </pre> |
0 | 101 |
6
24aa8dccb170
Make XMPP actually work.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
5
diff
changeset
|
102 <section id="document" contenteditable="true"> |
0 | 103 <h2> Go ahead, edit away! </h2> |
8
7b2ca4d5af6d
Add a resend-whole-state button and make it works.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
7
diff
changeset
|
104 <p> Here's a <span style="color:red">typical</span> paragraph element </p> |
0 | 105 <ol><li> and now a list </li><li> with only </li><li> three items </li></ol> |
106 </section> | |
107 | |
5
03ef53b969bd
Add XMPP support.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
2
diff
changeset
|
108 <footer> |
0 | 109 <p> |
110 This HTML content editor is not intended to compete with <a | |
111 href="http://ckeditor.com/">CKEditor</a> or <a | |
112 href="http://tinymce.com/">TinyMCE</a>: it is designed to | |
113 <strong>test</strong> the various implementations of | |
114 <code>contentEditable</code> and <code>execCommand</code> | |
115 in modern browsers. | |
116 </p> | |
117 <p> | |
118 This is a standalone file: the JavaScript code (<40 lines!), CSS markup and | |
119 images are embedded. Feel free to download it to try it offline. | |
120 </p> | |
121 <p> | |
122 Useful links: | |
123 <a href="https://developer.mozilla.org/en/Rich-Text_Editing_in_Mozilla">Mozilla Developer Network</a>, | |
124 <a href="http://html5demos.com/contenteditable/">html5demos.com</a>, | |
125 <a href="http://www.browserscope.org/richtext2/test">Browserscope.org</a>. | |
126 </p> | |
127 </footer> | |
5
03ef53b969bd
Add XMPP support.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
2
diff
changeset
|
128 <script type="text/javascript" src="script2.js"></script> |
0 | 129 </body> |
130 </html> |