Mercurial > eldonilo > barbecue
annotate index.xhtml @ 5:03ef53b969bd
Add XMPP support.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Tue, 31 Jan 2012 01:09:41 +0100 (2012-01-31) |
parents | 683f56999fb3 |
children | 24aa8dccb170 |
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> |
03ef53b969bd
Add XMPP support.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
2
diff
changeset
|
12 <script type="text/javascript" src="lightstring/plugins/presence.js"></script> |
03ef53b969bd
Add XMPP support.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
2
diff
changeset
|
13 <script type="text/javascript" src="lightstring/plugins/disco.js"></script> |
03ef53b969bd
Add XMPP support.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
2
diff
changeset
|
14 <script type="text/javascript" src="lightstring/plugins/feature-not-implemented.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> | |
20 <form id="toolbar"> | |
21 <dl> | |
22 <dt> edit: </dt> | |
23 <dd> | |
24 <input type="button" value=" " data-command="undo" /> | |
25 <input type="button" value=" " data-command="redo" /> | |
26 | | |
27 <input type="button" value=" " data-command="cut" disabled="" /> | |
28 <input type="button" value=" " data-command="copy" disabled="" /> | |
29 <input type="button" value=" " data-command="paste" disabled="" /> | |
30 | | |
31 <input type="checkbox" id="useCSS" data-command="styleWithCSS" checked="" /> | |
32 <label for="useCSS">style with CSS</label> | |
33 </dd> | |
34 <dt> inline: </dt> | |
35 <dd> | |
36 <select data-command="fontName"> | |
37 <option value="" disabled="" selected=""> Font </option> | |
38 <option value="serif"> serif </option> | |
39 <option value="sans-serif"> sans-serif </option> | |
40 <option value="monospace"> monospace </option> | |
41 <option value=" " disabled=""> - </option> | |
42 <option value="Arial"> Arial </option> | |
43 <option value="Courier New"> Courier New </option> | |
44 <option value="Times New Roman"> Times New Roman </option> | |
45 <option value="Verdana"> Verdana </option> | |
46 </select> | |
47 <select data-command="fontSize"> | |
48 <option value="" disabled="" selected=""> Size </option> | |
49 <option value="1"> 1 </option> | |
50 <option value="2"> 2 </option> | |
51 <option value="3"> 3 </option> | |
52 <option value="4"> 4 </option> | |
53 <option value="5"> 5 </option> | |
54 <option value="6"> 6 </option> | |
55 <option value="7"> 7 </option> | |
56 </select> | |
57 <input type="button" value="-" data-command="decreaseFontSize" /> | |
58 <input type="button" value="+" data-command="increaseFontSize" /> | |
59 | | |
60 <input type="button" value=" " data-command="bold" /> | |
61 <input type="button" value=" " data-command="italic" /> | |
62 <input type="button" value=" " data-command="underline" /> | |
63 <input type="button" value=" " data-command="strikeThrough" /> | |
64 | | |
65 <input type="button" value=" " data-command="subscript" /> | |
66 <input type="button" value=" " data-command="superscript" /> | |
67 </dd> | |
68 <dt> block: </dt> | |
69 <dd> | |
70 <select data-command="formatBlock"> | |
71 <option value="" disabled="" selected=""> Format </option> | |
72 <option value="<p>"> paragraph </option> | |
73 <option value="<h1>"> heading 1 </option> | |
74 <option value="<h2>"> heading 2 </option> | |
75 <option value="<h3>"> heading 3 </option> | |
76 <option value="<h4>"> heading 4 </option> | |
77 <option value="<h5>"> heading 5 </option> | |
78 <option value="<h6>"> heading 6 </option> | |
79 <option value="<address>"> address </option> | |
80 <option value="<pre>"> preformatted </option> | |
81 </select> | |
82 | | |
83 <input type="button" value=" " data-command="justifyLeft" /> | |
84 <input type="button" value=" " data-command="justifyCenter" /> | |
85 <input type="button" value=" " data-command="justifyRight" /> | |
86 <input type="button" value=" " data-command="justifyFull" /> | |
87 | | |
88 <input type="button" value=" " data-command="outdent" /> | |
89 <input type="button" value=" " data-command="indent" /> | |
90 | | |
91 <input type="button" value=" " data-command="insertOrderedList" /> | |
92 <input type="button" value=" " data-command="insertUnorderedList" /> | |
93 </dd> | |
94 </dl> | |
95 <pre id="execCommand" /> | |
96 </form> | |
2
683f56999fb3
'DOMNodeFocused' pseudo-event + Mutation Event Demo
Fabien Cazenave <fabien@cazenave.cc>
parents:
1
diff
changeset
|
97 <pre id="breadcrumb"> </pre> |
0 | 98 |
99 <section contenteditable="true"> | |
100 <h2> Go ahead, edit away! </h2> | |
101 <p> Here's a typical paragraph element </p> | |
102 <ol><li> and now a list </li><li> with only </li><li> three items </li></ol> | |
103 </section> | |
104 | |
5
03ef53b969bd
Add XMPP support.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
2
diff
changeset
|
105 <footer> |
0 | 106 <p> |
107 This HTML content editor is not intended to compete with <a | |
108 href="http://ckeditor.com/">CKEditor</a> or <a | |
109 href="http://tinymce.com/">TinyMCE</a>: it is designed to | |
110 <strong>test</strong> the various implementations of | |
111 <code>contentEditable</code> and <code>execCommand</code> | |
112 in modern browsers. | |
113 </p> | |
114 <p> | |
115 This is a standalone file: the JavaScript code (<40 lines!), CSS markup and | |
116 images are embedded. Feel free to download it to try it offline. | |
117 </p> | |
118 <p> | |
119 Useful links: | |
120 <a href="https://developer.mozilla.org/en/Rich-Text_Editing_in_Mozilla">Mozilla Developer Network</a>, | |
121 <a href="http://html5demos.com/contenteditable/">html5demos.com</a>, | |
122 <a href="http://www.browserscope.org/richtext2/test">Browserscope.org</a>. | |
123 </p> | |
124 </footer> | |
5
03ef53b969bd
Add XMPP support.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
parents:
2
diff
changeset
|
125 <script type="text/javascript" src="script2.js"></script> |
0 | 126 </body> |
127 </html> |