1 |
<!DOCTYPE html SYSTEM> |
2 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
3 |
<head> |
4 |
<title lang="en">Object Viewer</title> |
5 |
<style type="text/css" media="all"> |
6 |
body { |
7 |
line-height: 2.0; |
8 |
} |
9 |
|
10 |
code, pre { |
11 |
font-size: 100%; |
12 |
} |
13 |
|
14 |
.attribute-name { |
15 |
width: 10em; |
16 |
color: green; |
17 |
font-family: "Courier New", "Courier", monospace; |
18 |
} |
19 |
|
20 |
.attribute-value { |
21 |
display: inline; |
22 |
height: 2em; |
23 |
border-left: 1px #C0C0C0 solid; |
24 |
border-right: 1px #C0C0C0 solid; |
25 |
padding-left: 0.2em; |
26 |
padding-right: 0.2em; |
27 |
overflow: auto; |
28 |
} |
29 |
|
30 |
.boolean { |
31 |
list-style-image: url(http://suika.fam.cx/icons/pie4); |
32 |
} |
33 |
.number { |
34 |
list-style-image: url(http://suika.fam.cx/icons/binary); |
35 |
} |
36 |
.string { |
37 |
list-style-image: url(http://suika.fam.cx/icons/text); |
38 |
} |
39 |
.function { |
40 |
list-style-image: url(http://suika.fam.cx/icons/link); |
41 |
} |
42 |
.object { |
43 |
list-style-image: url(http://suika.fam.cx/icons/sphere2); |
44 |
} |
45 |
.open { |
46 |
list-style-image: url(http://suika.fam.cx/icons/sphere1); |
47 |
} |
48 |
.undefined { |
49 |
list-style-image: url(http://suika.fam.cx/icons/unknown); |
50 |
} |
51 |
.error { |
52 |
list-style-image: url(http://suika.fam.cx/icons/bomb); |
53 |
} |
54 |
|
55 |
</style> |
56 |
</head> |
57 |
<body> |
58 |
<h1 lang="en">Object Viewer</h1> |
59 |
|
60 |
<div id="documentObjectViewerContainer"> |
61 |
<form> |
62 |
<p><label>URI: |
63 |
<input type="text" value="" style="width: 95%" onchange=" |
64 |
parent.contentFrame.location.href = value; |
65 |
" /></label></p> |
66 |
|
67 |
<p><label>Object: |
68 |
<input type="text" value="" style="width: 95%" onchange=" |
69 |
location.search = '?' + escape ('parent.contentFrame.' + value); |
70 |
" /></label></p> |
71 |
</form> |
72 |
|
73 |
<script> |
74 |
function htescape (s) { |
75 |
return new String (s).split ('&').join ('&').split ('<').join ('<'); |
76 |
} |
77 |
|
78 |
document.write ('<a href="' + htescape (location.pathname) + |
79 |
'" lang="en">Reset</a>'); |
80 |
</script> |
81 |
|
82 |
<div id="documentObjectViewerList"> |
83 |
<script> |
84 |
|
85 |
var varName = unescape (location.search.substring (1)); |
86 |
if (!varName.length) varName = 'parent.contentFrame'; |
87 |
document.write ('<p>' + htescape (varName) + ':<' + '/p>'); |
88 |
document.write ('<ul>'); |
89 |
for (var a in eval(varName)) { |
90 |
var af = varName + "['" + a.replace (/([\\'])/, '\\$1') + "']"; |
91 |
var val = eval (af); |
92 |
document.write ('<li><a href="' + htescape (location.pathname) + |
93 |
'?' + escape (af) + |
94 |
'">' + htescape (a) + |
95 |
'<' + '/a> :' + htescape (typeof (val)) + |
96 |
': "' + htescape (val) + '"<' + '/li>'); |
97 |
} |
98 |
document.write ('<' + '/ul>'); |
99 |
</script> |
100 |
</div> |
101 |
|
102 |
|
103 |
</div> |
104 |
|
105 |
</body> |
106 |
</html> |
107 |
|
108 |
<!-- Revision: $Date: 2005/04/26 12:21:21 $ --> |
109 |
|
110 |
<!-- ***** BEGIN LICENSE BLOCK ***** |
111 |
- Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
112 |
- |
113 |
- The contents of this file are subject to the Mozilla Public License Version |
114 |
- 1.1 (the "License"); you may not use this file except in compliance with |
115 |
- the License. You may obtain a copy of the License at |
116 |
- <http://www.mozilla.org/MPL/> |
117 |
- |
118 |
- Software distributed under the License is distributed on an "AS IS" basis, |
119 |
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
120 |
- for the specific language governing rights and limitations under the |
121 |
- License. |
122 |
- |
123 |
- The Original Code is Object Viewer code. |
124 |
- |
125 |
- The Initial Developer of the Original Code is Wakaba. |
126 |
- Portions created by the Initial Developer are Copyright (C) 2005 |
127 |
- the Initial Developer. All Rights Reserved. |
128 |
- |
129 |
- Contributor(s): |
130 |
- Wakaba <w@suika.fam.cx> |
131 |
- |
132 |
- Alternatively, the contents of this file may be used under the terms of |
133 |
- either the GNU General Public License Version 2 or later (the "GPL"), or |
134 |
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), |
135 |
- in which case the provisions of the GPL or the LGPL are applicable instead |
136 |
- of those above. If you wish to allow use of your version of this file only |
137 |
- under the terms of either the GPL or the LGPL, and not to allow others to |
138 |
- use your version of this file under the terms of the MPL, indicate your |
139 |
- decision by deleting the provisions above and replace them with the notice |
140 |
- and other provisions required by the LGPL or the GPL. If you do not delete |
141 |
- the provisions above, a recipient may use your version of this file under |
142 |
- the terms of any one of the MPL, the GPL or the LGPL. |
143 |
- |
144 |
- ***** END LICENSE BLOCK ***** --> |