1 | <!-- |
---|
2 | |
---|
3 | (c) dynarch.com, 2003-2004 |
---|
4 | Author: Mihai Bazon, http://dynarch.com/mishoo |
---|
5 | Distributed as part of HTMLArea 3.0 |
---|
6 | |
---|
7 | "You are not expected to understand this... I don't neither." |
---|
8 | |
---|
9 | (from The Linux Kernel Source Code, |
---|
10 | ./arch/x86_64/ia32/ptrace.c:90) |
---|
11 | |
---|
12 | ;-) |
---|
13 | |
---|
14 | // ------------------------------------------- |
---|
15 | This marker is incremented by svn_commit.pl foricing this file to |
---|
16 | be out of date on each commit. As a result the revision number for |
---|
17 | this file will match the version of the repository. |
---|
18 | |
---|
19 | [@@81@@] |
---|
20 | |
---|
21 | --> |
---|
22 | |
---|
23 | <html style="height: 100%"> |
---|
24 | <head> |
---|
25 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
---|
26 | <title>About Xinha</title> |
---|
27 | <script type="text/javascript" src="popup.js"></script> |
---|
28 | <script type="text/javascript"> |
---|
29 | window.resizeTo(450, 250); |
---|
30 | var TABS = []; |
---|
31 | var CURRENT_TAB = 0; |
---|
32 | var CONTENT_HEIGHT_DIFF = 0; |
---|
33 | var CONTENT_WIDTH_DIFF = 0; |
---|
34 | function selectTab(idx) { |
---|
35 | var ct = TABS[CURRENT_TAB]; |
---|
36 | ct.className = ct.className.replace(/\s*tab-current\s*/, ' '); |
---|
37 | ct = TABS[CURRENT_TAB = idx]; |
---|
38 | ct.className += ' tab-current'; |
---|
39 | for (var i = TABS.length; --i >= 0;) { |
---|
40 | var area = document.getElementById("tab-area-" + i); |
---|
41 | if (CURRENT_TAB == i) { |
---|
42 | area.style.display = "block"; |
---|
43 | } else { |
---|
44 | area.style.display = "none"; |
---|
45 | } |
---|
46 | } |
---|
47 | document.body.style.visibility = "hidden"; |
---|
48 | document.body.style.visibility = "visible"; |
---|
49 | document.cookie = "HTMLAREA-ABOUT-TAB=" + idx; |
---|
50 | } |
---|
51 | var editor = null; |
---|
52 | function initDocument() { |
---|
53 | editor = window.dialogArguments; |
---|
54 | HTMLArea = window.opener.HTMLArea; |
---|
55 | |
---|
56 | var plugins = document.getElementById("plugins"); |
---|
57 | var j = 0; |
---|
58 | var html = "<table width='99%' cellpadding='2' cellspacing=2 style='margin-top: 1em; collapse-borders: collapse; border: 1px solid black;'>" + |
---|
59 | "<thead><tr>" + |
---|
60 | "<td>Name</td>" + |
---|
61 | "<td>Developer</td>" + |
---|
62 | "<td>Sponsored by</td>" + |
---|
63 | "<td>License</td>" + |
---|
64 | "</tr></thead><tbody>"; |
---|
65 | for (var i in editor.plugins) { |
---|
66 | var info = editor.plugins[i]; |
---|
67 | html += "<tr><td>" + info.name + " v" + info.version + "</td>" + |
---|
68 | "<td><a href='" + info.developer_url + "' target='_blank' title='Visit developer website'>" + |
---|
69 | info.developer + "</a></td>" + |
---|
70 | "<td><a href='" + info.sponsor_url + "' target='_blank' title='Visit sponsor website'>" + |
---|
71 | info.sponsor + "</a></td>" + |
---|
72 | "<td>" + info.license + "</td></tr>"; |
---|
73 | ++j; |
---|
74 | } |
---|
75 | |
---|
76 | if (j) { |
---|
77 | html += "</tbody></table>" + |
---|
78 | "<p>License \"htmlArea\" means that the plugin is distributed under the same terms " + |
---|
79 | "as Xinha itself.</p>"; |
---|
80 | plugins.innerHTML = "<p>The following plugins have been loaded.</p>" + html; |
---|
81 | } else { |
---|
82 | plugins.innerHTML = "<p>No plugins have been loaded</p>"; |
---|
83 | } |
---|
84 | |
---|
85 | plugins.innerHTML += "<p>User agent reports:<br/>" + navigator.userAgent + "</p>"; |
---|
86 | |
---|
87 | var content = document.getElementById("content"); |
---|
88 | if (window.innerHeight) { |
---|
89 | CONTENT_HEIGHT_DIFF = window.innerHeight - 250; |
---|
90 | CONTENT_WIDTH_DIFF = window.innerWidth - content.offsetWidth; |
---|
91 | } else { |
---|
92 | CONTENT_HEIGHT_DIFF = document.body.offsetHeight - 250; |
---|
93 | CONTENT_WIDTH_DIFF = document.body.offsetWidth - 400; |
---|
94 | } |
---|
95 | window.onresize(); |
---|
96 | var bar = document.getElementById("tabbar"); |
---|
97 | j = 0; |
---|
98 | for (var i = bar.firstChild; i; i = i.nextSibling) { |
---|
99 | TABS.push(i); |
---|
100 | i.__msh_tab = j; |
---|
101 | i.onmousedown = function(ev) { selectTab(this.__msh_tab); HTMLArea._stopEvent(ev || window.event); }; |
---|
102 | var area = document.getElementById("tab-area-" + j); |
---|
103 | if (/tab-current/.test(i.className)) { |
---|
104 | CURRENT_TAB = j; |
---|
105 | area.style.display = "block"; |
---|
106 | } else { |
---|
107 | area.style.display = "none"; |
---|
108 | } |
---|
109 | ++j; |
---|
110 | } |
---|
111 | if (document.cookie.match(/HTMLAREA-ABOUT-TAB=([0-9]+)/)) |
---|
112 | selectTab(RegExp.$1); |
---|
113 | } |
---|
114 | window.onresize = function() { |
---|
115 | var content = document.getElementById("content"); |
---|
116 | if (window.innerHeight) { |
---|
117 | content.style.height = (window.innerHeight - CONTENT_HEIGHT_DIFF) + "px"; |
---|
118 | content.style.width = (window.innerWidth - CONTENT_WIDTH_DIFF) + "px"; |
---|
119 | } else { |
---|
120 | content.style.height = (document.body.offsetHeight - CONTENT_HEIGHT_DIFF) + "px"; |
---|
121 | //content.style.width = (document.body.offsetWidth - CONTENT_WIDTH_DIFF) + "px"; |
---|
122 | } |
---|
123 | } |
---|
124 | </script> |
---|
125 | <style> |
---|
126 | html,body,textarea,table |
---|
127 | { font-family: helvetica,arial,sans-serif; |
---|
128 | font-size: 11px; padding: 0px; margin: 0px; |
---|
129 | } |
---|
130 | |
---|
131 | body { padding: 0px; background: #f5f6f6; color: black; } |
---|
132 | a:link, a:visited { color: #00f; } |
---|
133 | a:hover { color: #f00; } |
---|
134 | a:active { color: #f80; } |
---|
135 | button { font: 11px; border-width: 1px; background-color:#f5f6f6; color:black; } |
---|
136 | |
---|
137 | p { margin: 0.5em 0px; } |
---|
138 | |
---|
139 | #tdheader h1 |
---|
140 | { font: bold 40px "Staccato222 BT", cursive; margin: 0px; padding-left:4px; border-bottom: 1px solid #6a6; } |
---|
141 | h1 { font: bold 20px; margin: 0px; border-bottom: 1px solid #6a6; } |
---|
142 | h2 { font: bold 110%; margin: 0.7em 0px; } |
---|
143 | |
---|
144 | thead { |
---|
145 | font-weight: bold; |
---|
146 | background-color: #CCC; |
---|
147 | } |
---|
148 | |
---|
149 | thead td { padding-left:4px; } |
---|
150 | |
---|
151 | .buttons { |
---|
152 | text-align: right; padding: 3px; |
---|
153 | background-color: white; |
---|
154 | border-top: 1px solid #555; |
---|
155 | } |
---|
156 | |
---|
157 | #tabbar { |
---|
158 | position: relative; |
---|
159 | left: 10px; |
---|
160 | } |
---|
161 | .tab { |
---|
162 | color: #OOO; |
---|
163 | cursor: pointer; |
---|
164 | margin-left: -5px; |
---|
165 | float: left; position: relative; |
---|
166 | border: 1px solid #555; |
---|
167 | top: -3px; left: -2px; |
---|
168 | padding: 2px 10px 3px 10px; |
---|
169 | border-top: none; background-color: #CCC; |
---|
170 | -moz-border-radius: 0px 0px 4px 4px; |
---|
171 | z-index: 0; |
---|
172 | } |
---|
173 | .tab-current |
---|
174 | { |
---|
175 | color: #000; |
---|
176 | top: -4px; |
---|
177 | background-color: #f5f6f6; |
---|
178 | padding: 3px 10px 4px 10px; |
---|
179 | z-index: 10; |
---|
180 | } |
---|
181 | |
---|
182 | li, ol, ul { margin-top: 0px; margin-bottom: 0px; } |
---|
183 | </style></head> |
---|
184 | <body onload="__dlg_init(); initDocument();" |
---|
185 | ><table cellspacing="0" cellpadding="0" style="border-collapse: collapse; |
---|
186 | width: 100%; height: 100%;"> |
---|
187 | |
---|
188 | <tr style="height: 1em"><td id="tdheader"> |
---|
189 | |
---|
190 | <h1>Xinha</h1> |
---|
191 | |
---|
192 | </td></tr> |
---|
193 | <tr><td id="tdcontent" style="padding: 0.5em;"> |
---|
194 | |
---|
195 | <div style="overflow: auto; height: 250px;" id="content"> |
---|
196 | <div id="tab-areas"> |
---|
197 | |
---|
198 | <div id="tab-area-0"> |
---|
199 | |
---|
200 | <p>A free WYSIWYG editor replacement for <tt><textarea></tt> fields.</p> |
---|
201 | <p>Visit the <a href="http://xinha.gogo.co.nz/">Xinha Website</a> for more information.</p> |
---|
202 | |
---|
203 | <p> |
---|
204 | Use of Xinha is granted by the terms of the htmlArea License (based on BSD license) |
---|
205 | </p> |
---|
206 | <p> |
---|
207 | Xinha was originally based on work by Mihai Bazon which is: |
---|
208 | </p> |
---|
209 | <blockquote><pre>Copyright (c) 2003-2004 dynarch.com. |
---|
210 | Copyright (c) 2002-2003 interactivetools.com, inc. |
---|
211 | This copyright notice MUST stay intact for use.</pre></blockquote> |
---|
212 | |
---|
213 | </div> |
---|
214 | |
---|
215 | <div id="tab-area-1"> |
---|
216 | |
---|
217 | <p> |
---|
218 | The development of Xinha would not have been possible without the original work of <a href="http://dynarch.com/">Mihai Bazon</a>, <a href="http://interactivetools.com" target="_blank">InteractiveTools.com</a>, and the many sponsors and contributors from around the world. |
---|
219 | </p> |
---|
220 | |
---|
221 | </div> |
---|
222 | |
---|
223 | <div id="tab-area-2"> |
---|
224 | <pre>htmlArea License (based on BSD license) |
---|
225 | Copyright (c) 2002-2004, interactivetools.com, inc. |
---|
226 | Copyright (c) 2003-2004 dynarch.com |
---|
227 | All rights reserved. |
---|
228 | |
---|
229 | Redistribution and use in source and binary forms, with or without |
---|
230 | modification, are permitted provided that the following conditions are met: |
---|
231 | |
---|
232 | 1) Redistributions of source code must retain the above copyright notice, |
---|
233 | this list of conditions and the following disclaimer. |
---|
234 | |
---|
235 | 2) Redistributions in binary form must reproduce the above copyright notice, |
---|
236 | this list of conditions and the following disclaimer in the documentation |
---|
237 | and/or other materials provided with the distribution. |
---|
238 | |
---|
239 | 3) Neither the name of interactivetools.com, inc. nor the names of its |
---|
240 | contributors may be used to endorse or promote products derived from this |
---|
241 | software without specific prior written permission. |
---|
242 | |
---|
243 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
---|
244 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
---|
245 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
---|
246 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
---|
247 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
---|
248 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
---|
249 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
---|
250 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
---|
251 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
---|
252 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
---|
253 | POSSIBILITY OF SUCH DAMAGE.</pre> |
---|
254 | </div> |
---|
255 | |
---|
256 | <div id="tab-area-3"> |
---|
257 | <div id="plugins"> |
---|
258 | </div> |
---|
259 | </div> |
---|
260 | |
---|
261 | |
---|
262 | <div id="tab-area-4"> |
---|
263 | <pre>$HeadURL$ |
---|
264 | $LastChangedDate$ |
---|
265 | $LastChangedRevision$ |
---|
266 | $LastChangedBy$</pre> |
---|
267 | </div> |
---|
268 | |
---|
269 | </div></div> |
---|
270 | |
---|
271 | |
---|
272 | </tr></td> |
---|
273 | <tr style="height: 1em"><td id="tdfooter"> |
---|
274 | |
---|
275 | |
---|
276 | <div class="buttons"> |
---|
277 | <div id="tabbar" |
---|
278 | ><div class="tab tab-current" |
---|
279 | >About</div><div class="tab" |
---|
280 | >Thanks</div><div class="tab" |
---|
281 | >License</div><div class="tab" |
---|
282 | >Plugins</div><div class="tab" |
---|
283 | >Version</div></div> |
---|
284 | <button type="button" onclick="__dlg_close(null);">Close</button> |
---|
285 | </div> |
---|
286 | |
---|
287 | </td></tr></table> |
---|
288 | |
---|
289 | </body></html> |
---|