motion-hpple 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +52 -0
- data/README.md +1 -7
- data/Rakefile +16 -1
- data/lib/motion-hpple.rb +2 -4
- data/lib/motion-hpple/version.rb +1 -1
- data/motion-hpple.gemspec +1 -0
- data/vendor/Podfile.lock +11 -0
- data/vendor/{hpple → Pods/.build/Pods}/TFHpple.h +1 -1
- data/vendor/{hpple → Pods/.build/Pods}/TFHppleElement.h +7 -7
- data/vendor/Pods/.build/Pods/XPathQuery.h +10 -0
- data/vendor/Pods/.build/libPods.a +0 -0
- data/vendor/Pods/BuildHeaders/hpple/TFHpple.h +54 -0
- data/vendor/Pods/BuildHeaders/hpple/TFHppleElement.h +68 -0
- data/vendor/Pods/BuildHeaders/hpple/XPathQuery.h +10 -0
- data/vendor/Pods/Documentation/hpple/docset-installed.txt +4 -0
- data/vendor/Pods/Documentation/hpple/docset/Contents/Info.plist +39 -0
- data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/Documents/Classes/TFHpple.html +470 -0
- data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/Documents/Classes/TFHppleElement.html +470 -0
- data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/Documents/css/styles.css +584 -0
- data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/Documents/css/stylesPrint.css +22 -0
- data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/Documents/hierarchy.html +72 -0
- data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/Documents/img/button_bar_background.png +0 -0
- data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/Documents/img/disclosure.png +0 -0
- data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/Documents/img/disclosure_open.png +0 -0
- data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/Documents/img/library_background.png +0 -0
- data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/Documents/img/title_background.png +0 -0
- data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/Documents/index.html +135 -0
- data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/Nodes.xml +39 -0
- data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/Tokens1.xml +125 -0
- data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/Tokens2.xml +180 -0
- data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/docSet.dsidx +0 -0
- data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/docSet.mom +0 -0
- data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/docSet.skidx +0 -0
- data/vendor/Pods/Documentation/hpple/docset/Contents/Resources/docSet.toc +0 -0
- data/vendor/Pods/Documentation/hpple/html/Classes/TFHpple.html +470 -0
- data/vendor/Pods/Documentation/hpple/html/Classes/TFHppleElement.html +470 -0
- data/vendor/Pods/Documentation/hpple/html/css/styles.css +584 -0
- data/vendor/Pods/Documentation/hpple/html/css/stylesPrint.css +22 -0
- data/vendor/Pods/Documentation/hpple/html/hierarchy.html +72 -0
- data/vendor/Pods/Documentation/hpple/html/img/button_bar_background.png +0 -0
- data/vendor/Pods/Documentation/hpple/html/img/disclosure.png +0 -0
- data/vendor/Pods/Documentation/hpple/html/img/disclosure_open.png +0 -0
- data/vendor/Pods/Documentation/hpple/html/img/library_background.png +0 -0
- data/vendor/Pods/Documentation/hpple/html/img/title_background.png +0 -0
- data/vendor/Pods/Documentation/hpple/html/index.html +135 -0
- data/vendor/Pods/Headers/hpple/TFHpple.h +54 -0
- data/vendor/Pods/Headers/hpple/TFHppleElement.h +68 -0
- data/vendor/Pods/Headers/hpple/XPathQuery.h +10 -0
- data/vendor/Pods/Pods-Acknowledgements.markdown +29 -0
- data/vendor/Pods/Pods-Acknowledgements.plist +59 -0
- data/vendor/Pods/Pods-prefix.pch +3 -0
- data/vendor/Pods/Pods-resources.sh +19 -0
- data/vendor/Pods/Pods.bridgesupport +104 -0
- data/vendor/Pods/Pods.xcconfig +7 -0
- data/vendor/Pods/Pods.xcodeproj/project.pbxproj +633 -0
- data/vendor/Pods/PodsDummy_Pods.m +4 -0
- data/vendor/Pods/build-iPhoneSimulator/libPods.a +0 -0
- data/vendor/Pods/hpple/LICENSE.txt +22 -0
- data/vendor/Pods/hpple/README.markdown +50 -0
- data/vendor/Pods/hpple/TFHpple.h +54 -0
- data/vendor/Pods/hpple/TFHpple.m +102 -0
- data/vendor/Pods/hpple/TFHppleElement.h +68 -0
- data/vendor/Pods/hpple/TFHppleElement.m +114 -0
- data/vendor/Pods/hpple/XPathQuery.h +10 -0
- data/vendor/Pods/hpple/XPathQuery.m +197 -0
- metadata +86 -8
- data/vendor/hpple/hpple.bridgesupport +0 -78
- data/vendor/hpple/libHpple.a +0 -0
@@ -0,0 +1,470 @@
|
|
1
|
+
<!DOCTYPE HTML>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
|
5
|
+
<title>TFHppleElement Class Reference</title>
|
6
|
+
<meta id="xcode-display" name="xcode-display" content="render"/>
|
7
|
+
<meta name="viewport" content="width=550" />
|
8
|
+
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
|
9
|
+
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
|
10
|
+
<meta name="generator" content="appledoc 2.0.5 (build 789)" />
|
11
|
+
</head>
|
12
|
+
<body>
|
13
|
+
<header id="top_header">
|
14
|
+
<div id="library" class="hideInXcode">
|
15
|
+
<h1><a id="libraryTitle" href="../index.html">hpple 0.1.0 </a></h1>
|
16
|
+
<a id="developerHome" href="../index.html">Geoffrey Grosenbach</a>
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<div id="title" role="banner">
|
20
|
+
<h1 class="hideInXcode">TFHppleElement Class Reference</h1>
|
21
|
+
</div>
|
22
|
+
<ul id="headerButtons" role="toolbar">
|
23
|
+
<li id="toc_button">
|
24
|
+
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
|
25
|
+
</li>
|
26
|
+
<li id="jumpto_button" role="navigation">
|
27
|
+
<select id="jumpTo">
|
28
|
+
<option value="top">Jump To…</option>
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
<option value="tasks">Tasks</option>
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
<option value="properties">Properties</option>
|
40
|
+
|
41
|
+
<option value="//api/name/attributes"> attributes</option>
|
42
|
+
|
43
|
+
<option value="//api/name/children"> children</option>
|
44
|
+
|
45
|
+
<option value="//api/name/content"> content</option>
|
46
|
+
|
47
|
+
<option value="//api/name/firstChild"> firstChild</option>
|
48
|
+
|
49
|
+
<option value="//api/name/parent"> parent</option>
|
50
|
+
|
51
|
+
<option value="//api/name/tagName"> tagName</option>
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
<option value="class_methods">Class Methods</option>
|
57
|
+
|
58
|
+
<option value="//api/name/hppleElementWithNode:"> + hppleElementWithNode:</option>
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
<option value="instance_methods">Instance Methods</option>
|
64
|
+
|
65
|
+
<option value="//api/name/initWithNode:"> - initWithNode:</option>
|
66
|
+
|
67
|
+
<option value="//api/name/objectForKey:"> - objectForKey:</option>
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
</select>
|
72
|
+
</li>
|
73
|
+
</ul>
|
74
|
+
</header>
|
75
|
+
<nav id="tocContainer" class="isShowingTOC">
|
76
|
+
<ul id="toc" role="tree">
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
|
82
|
+
|
83
|
+
</ul></li>
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
|
90
|
+
|
91
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/attributes">attributes</a></span></li>
|
92
|
+
|
93
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/children">children</a></span></li>
|
94
|
+
|
95
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/content">content</a></span></li>
|
96
|
+
|
97
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/firstChild">firstChild</a></span></li>
|
98
|
+
|
99
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/parent">parent</a></span></li>
|
100
|
+
|
101
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/tagName">tagName</a></span></li>
|
102
|
+
|
103
|
+
</ul></li>
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
|
108
|
+
|
109
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/hppleElementWithNode:">hppleElementWithNode:</a></span></li>
|
110
|
+
|
111
|
+
</ul></li>
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
|
116
|
+
|
117
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithNode:">initWithNode:</a></span></li>
|
118
|
+
|
119
|
+
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/objectForKey:">objectForKey:</a></span></li>
|
120
|
+
|
121
|
+
</ul></li>
|
122
|
+
|
123
|
+
|
124
|
+
</ul>
|
125
|
+
</nav>
|
126
|
+
<article>
|
127
|
+
<div id="contents" class="isShowingTOC" role="main">
|
128
|
+
<a title="TFHppleElement Class Reference" name="top"></a>
|
129
|
+
<div class="main-navigation navigation-top">
|
130
|
+
<ul>
|
131
|
+
<li><a href="../index.html">Index</a></li>
|
132
|
+
<li><a href="../hierarchy.html">Hierarchy</a></li>
|
133
|
+
</ul>
|
134
|
+
</div>
|
135
|
+
<div id="header">
|
136
|
+
<div class="section-header">
|
137
|
+
<h1 class="title title-header">TFHppleElement Class Reference</h1>
|
138
|
+
</div>
|
139
|
+
</div>
|
140
|
+
<div id="container">
|
141
|
+
|
142
|
+
<div class="section section-specification"><table cellspacing="0"><tbody>
|
143
|
+
<tr>
|
144
|
+
<td class="specification-title">Inherits from</td>
|
145
|
+
<td class="specification-value">NSObject</td>
|
146
|
+
</tr><tr>
|
147
|
+
<td class="specification-title">Declared in</td>
|
148
|
+
<td class="specification-value">TFHppleElement.h</td>
|
149
|
+
</tr>
|
150
|
+
</tbody></table></div>
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
<div class="section section-tasks">
|
158
|
+
<a title="Tasks" name="tasks"></a>
|
159
|
+
<h2 class="subtitle subtitle-tasks">Tasks</h2>
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
<ul class="task-list">
|
166
|
+
<li>
|
167
|
+
<span class="tooltip">
|
168
|
+
<code><a href="#//api/name/initWithNode:">– initWithNode:</a></code>
|
169
|
+
|
170
|
+
</span>
|
171
|
+
|
172
|
+
|
173
|
+
</li><li>
|
174
|
+
<span class="tooltip">
|
175
|
+
<code><a href="#//api/name/hppleElementWithNode:">+ hppleElementWithNode:</a></code>
|
176
|
+
|
177
|
+
</span>
|
178
|
+
|
179
|
+
|
180
|
+
</li><li>
|
181
|
+
<span class="tooltip">
|
182
|
+
<code><a href="#//api/name/content"> content</a></code>
|
183
|
+
|
184
|
+
</span>
|
185
|
+
<span class="task-item-suffix">property</span>
|
186
|
+
|
187
|
+
</li><li>
|
188
|
+
<span class="tooltip">
|
189
|
+
<code><a href="#//api/name/tagName"> tagName</a></code>
|
190
|
+
|
191
|
+
</span>
|
192
|
+
<span class="task-item-suffix">property</span>
|
193
|
+
|
194
|
+
</li><li>
|
195
|
+
<span class="tooltip">
|
196
|
+
<code><a href="#//api/name/attributes"> attributes</a></code>
|
197
|
+
|
198
|
+
</span>
|
199
|
+
<span class="task-item-suffix">property</span>
|
200
|
+
|
201
|
+
</li><li>
|
202
|
+
<span class="tooltip">
|
203
|
+
<code><a href="#//api/name/children"> children</a></code>
|
204
|
+
|
205
|
+
</span>
|
206
|
+
<span class="task-item-suffix">property</span>
|
207
|
+
|
208
|
+
</li><li>
|
209
|
+
<span class="tooltip">
|
210
|
+
<code><a href="#//api/name/firstChild"> firstChild</a></code>
|
211
|
+
|
212
|
+
</span>
|
213
|
+
<span class="task-item-suffix">property</span>
|
214
|
+
|
215
|
+
</li><li>
|
216
|
+
<span class="tooltip">
|
217
|
+
<code><a href="#//api/name/parent"> parent</a></code>
|
218
|
+
|
219
|
+
</span>
|
220
|
+
<span class="task-item-suffix">property</span>
|
221
|
+
|
222
|
+
</li><li>
|
223
|
+
<span class="tooltip">
|
224
|
+
<code><a href="#//api/name/objectForKey:">– objectForKey:</a></code>
|
225
|
+
|
226
|
+
</span>
|
227
|
+
|
228
|
+
|
229
|
+
</li>
|
230
|
+
</ul>
|
231
|
+
|
232
|
+
</div>
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
<div class="section section-methods">
|
239
|
+
<a title="Properties" name="properties"></a>
|
240
|
+
<h2 class="subtitle subtitle-methods">Properties</h2>
|
241
|
+
|
242
|
+
<div class="section-method">
|
243
|
+
<a name="//api/name/attributes" title="attributes"></a>
|
244
|
+
<h3 class="subsubtitle method-title">attributes</h3>
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong, readonly) NSDictionary *attributes</code></div>
|
249
|
+
|
250
|
+
|
251
|
+
</div>
|
252
|
+
|
253
|
+
<div class="section-method">
|
254
|
+
<a name="//api/name/children" title="children"></a>
|
255
|
+
<h3 class="subsubtitle method-title">children</h3>
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong, readonly) NSArray *children</code></div>
|
260
|
+
|
261
|
+
|
262
|
+
</div>
|
263
|
+
|
264
|
+
<div class="section-method">
|
265
|
+
<a name="//api/name/content" title="content"></a>
|
266
|
+
<h3 class="subsubtitle method-title">content</h3>
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
<div class="method-subsection method-declaration"><code>@property (nonatomic, copy, readonly) NSString *content</code></div>
|
271
|
+
|
272
|
+
|
273
|
+
</div>
|
274
|
+
|
275
|
+
<div class="section-method">
|
276
|
+
<a name="//api/name/firstChild" title="firstChild"></a>
|
277
|
+
<h3 class="subsubtitle method-title">firstChild</h3>
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
<div class="method-subsection method-declaration"><code>@property (nonatomic, strong, readonly) TFHppleElement *firstChild</code></div>
|
282
|
+
|
283
|
+
|
284
|
+
</div>
|
285
|
+
|
286
|
+
<div class="section-method">
|
287
|
+
<a name="//api/name/parent" title="parent"></a>
|
288
|
+
<h3 class="subsubtitle method-title">parent</h3>
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
<div class="method-subsection method-declaration"><code>@property (nonatomic, unsafe_unretained, readonly) TFHppleElement *parent</code></div>
|
293
|
+
|
294
|
+
|
295
|
+
</div>
|
296
|
+
|
297
|
+
<div class="section-method">
|
298
|
+
<a name="//api/name/tagName" title="tagName"></a>
|
299
|
+
<h3 class="subsubtitle method-title">tagName</h3>
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
<div class="method-subsection method-declaration"><code>@property (nonatomic, copy, readonly) NSString *tagName</code></div>
|
304
|
+
|
305
|
+
|
306
|
+
</div>
|
307
|
+
|
308
|
+
</div>
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
<div class="section section-methods">
|
313
|
+
<a title="Class Methods" name="class_methods"></a>
|
314
|
+
<h2 class="subtitle subtitle-methods">Class Methods</h2>
|
315
|
+
|
316
|
+
<div class="section-method">
|
317
|
+
<a name="//api/name/hppleElementWithNode:" title="hppleElementWithNode:"></a>
|
318
|
+
<h3 class="subsubtitle method-title">hppleElementWithNode:</h3>
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
<div class="method-subsection method-declaration"><code>+ (TFHppleElement *)hppleElementWithNode:(NSDictionary *)<em>theNode</em></code></div>
|
323
|
+
|
324
|
+
|
325
|
+
</div>
|
326
|
+
|
327
|
+
</div>
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
<div class="section section-methods">
|
332
|
+
<a title="Instance Methods" name="instance_methods"></a>
|
333
|
+
<h2 class="subtitle subtitle-methods">Instance Methods</h2>
|
334
|
+
|
335
|
+
<div class="section-method">
|
336
|
+
<a name="//api/name/initWithNode:" title="initWithNode:"></a>
|
337
|
+
<h3 class="subsubtitle method-title">initWithNode:</h3>
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
<div class="method-subsection method-declaration"><code>- (id)initWithNode:(NSDictionary *)<em>theNode</em></code></div>
|
342
|
+
|
343
|
+
|
344
|
+
</div>
|
345
|
+
|
346
|
+
<div class="section-method">
|
347
|
+
<a name="//api/name/objectForKey:" title="objectForKey:"></a>
|
348
|
+
<h3 class="subsubtitle method-title">objectForKey:</h3>
|
349
|
+
|
350
|
+
|
351
|
+
|
352
|
+
<div class="method-subsection method-declaration"><code>- (NSString *)objectForKey:(NSString *)<em>theKey</em></code></div>
|
353
|
+
|
354
|
+
|
355
|
+
</div>
|
356
|
+
|
357
|
+
</div>
|
358
|
+
|
359
|
+
|
360
|
+
</div>
|
361
|
+
<div class="main-navigation navigation-bottom">
|
362
|
+
<ul>
|
363
|
+
<li><a href="../index.html">Index</a></li>
|
364
|
+
<li><a href="../hierarchy.html">Hierarchy</a></li>
|
365
|
+
</ul>
|
366
|
+
</div>
|
367
|
+
<div id="footer">
|
368
|
+
<hr />
|
369
|
+
<div class="footer-copyright">
|
370
|
+
<p><span class="copyright">© 2012 Geoffrey Grosenbach. All rights reserved. (Last updated: 2012-11-20)</span><br />
|
371
|
+
|
372
|
+
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.5 (build 789)</a>.</span></p>
|
373
|
+
|
374
|
+
</div>
|
375
|
+
</div>
|
376
|
+
</div>
|
377
|
+
</article>
|
378
|
+
<script type="text/javascript">
|
379
|
+
function jumpToChange()
|
380
|
+
{
|
381
|
+
window.location.hash = this.options[this.selectedIndex].value;
|
382
|
+
}
|
383
|
+
|
384
|
+
function toggleTOC()
|
385
|
+
{
|
386
|
+
var contents = document.getElementById('contents');
|
387
|
+
var tocContainer = document.getElementById('tocContainer');
|
388
|
+
|
389
|
+
if (this.getAttribute('class') == 'open')
|
390
|
+
{
|
391
|
+
this.setAttribute('class', '');
|
392
|
+
contents.setAttribute('class', '');
|
393
|
+
tocContainer.setAttribute('class', '');
|
394
|
+
|
395
|
+
window.name = "hideTOC";
|
396
|
+
}
|
397
|
+
else
|
398
|
+
{
|
399
|
+
this.setAttribute('class', 'open');
|
400
|
+
contents.setAttribute('class', 'isShowingTOC');
|
401
|
+
tocContainer.setAttribute('class', 'isShowingTOC');
|
402
|
+
|
403
|
+
window.name = "";
|
404
|
+
}
|
405
|
+
return false;
|
406
|
+
}
|
407
|
+
|
408
|
+
function toggleTOCEntryChildren(e)
|
409
|
+
{
|
410
|
+
e.stopPropagation();
|
411
|
+
var currentClass = this.getAttribute('class');
|
412
|
+
if (currentClass == 'children') {
|
413
|
+
this.setAttribute('class', 'children open');
|
414
|
+
}
|
415
|
+
else if (currentClass == 'children open') {
|
416
|
+
this.setAttribute('class', 'children');
|
417
|
+
}
|
418
|
+
return false;
|
419
|
+
}
|
420
|
+
|
421
|
+
function tocEntryClick(e)
|
422
|
+
{
|
423
|
+
e.stopPropagation();
|
424
|
+
return true;
|
425
|
+
}
|
426
|
+
|
427
|
+
function init()
|
428
|
+
{
|
429
|
+
var selectElement = document.getElementById('jumpTo');
|
430
|
+
selectElement.addEventListener('change', jumpToChange, false);
|
431
|
+
|
432
|
+
var tocButton = document.getElementById('table_of_contents');
|
433
|
+
tocButton.addEventListener('click', toggleTOC, false);
|
434
|
+
|
435
|
+
var taskTreeItem = document.getElementById('task_treeitem');
|
436
|
+
if (taskTreeItem.getElementsByTagName('li').length > 0)
|
437
|
+
{
|
438
|
+
taskTreeItem.setAttribute('class', 'children');
|
439
|
+
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
|
440
|
+
}
|
441
|
+
|
442
|
+
var tocList = document.getElementById('toc');
|
443
|
+
|
444
|
+
var tocEntries = tocList.getElementsByTagName('li');
|
445
|
+
for (var i = 0; i < tocEntries.length; i++) {
|
446
|
+
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
|
447
|
+
}
|
448
|
+
|
449
|
+
var tocLinks = tocList.getElementsByTagName('a');
|
450
|
+
for (var i = 0; i < tocLinks.length; i++) {
|
451
|
+
tocLinks[i].addEventListener('click', tocEntryClick, false);
|
452
|
+
}
|
453
|
+
|
454
|
+
if (window.name == "hideTOC") {
|
455
|
+
toggleTOC.call(tocButton);
|
456
|
+
}
|
457
|
+
}
|
458
|
+
|
459
|
+
window.onload = init;
|
460
|
+
|
461
|
+
// If showing in Xcode, hide the TOC and Header
|
462
|
+
if (navigator.userAgent.match(/xcode/i)) {
|
463
|
+
document.getElementById("contents").className = "hideInXcode"
|
464
|
+
document.getElementById("tocContainer").className = "hideInXcode"
|
465
|
+
document.getElementById("top_header").className = "hideInXcode"
|
466
|
+
}
|
467
|
+
|
468
|
+
</script>
|
469
|
+
</body>
|
470
|
+
</html>
|