source: branches/unified_backend/popups/about.html @ 66

Last change on this file since 66 was 66, checked in by yermol, 15 years ago

test commit using front end script to make current version number appear
in the about box.

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