moovatom 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +5 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +7 -0
- data/README.md +87 -0
- data/Rakefile +1 -0
- data/doc/Gemfile.html +94 -0
- data/doc/LICENSE_txt.html +110 -0
- data/doc/MoovAtom/MoovEngine.html +587 -0
- data/doc/MoovAtom.html +168 -0
- data/doc/Rakefile.html +92 -0
- data/doc/created.rid +7 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +72 -0
- data/doc/init_rb.html +54 -0
- data/doc/js/darkfish.js +116 -0
- data/doc/js/jquery.js +32 -0
- data/doc/js/quicksearch.js +114 -0
- data/doc/js/thickbox-compressed.js +10 -0
- data/doc/lib/moovatom/version_rb.html +52 -0
- data/doc/lib/moovatom_rb.html +70 -0
- data/doc/rdoc.css +763 -0
- data/init.rb +1 -0
- data/lib/moovatom/version.rb +3 -0
- data/lib/moovatom.rb +146 -0
- data/moovatom.gemspec +26 -0
- metadata +101 -0
data/doc/MoovAtom.html
ADDED
@@ -0,0 +1,168 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
7
|
+
|
8
|
+
<title>Module: MoovAtom</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
11
|
+
|
12
|
+
<script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
13
|
+
<script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
14
|
+
<script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
15
|
+
<script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body id="top" class="module">
|
19
|
+
|
20
|
+
<div id="metadata">
|
21
|
+
<div id="home-metadata">
|
22
|
+
<div id="home-section" class="section">
|
23
|
+
<h3 class="section-header">
|
24
|
+
<a href="./index.html">Home</a>
|
25
|
+
<a href="./index.html#classes">Classes</a>
|
26
|
+
<a href="./index.html#methods">Methods</a>
|
27
|
+
</h3>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div id="file-metadata">
|
32
|
+
<div id="file-list-section" class="section">
|
33
|
+
<h3 class="section-header">In Files</h3>
|
34
|
+
<div class="section-body">
|
35
|
+
<ul>
|
36
|
+
|
37
|
+
<li><a href="./lib/moovatom/version_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
+
class="thickbox" title="lib/moovatom/version.rb">lib/moovatom/version.rb</a></li>
|
39
|
+
|
40
|
+
<li><a href="./lib/moovatom_rb.html?TB_iframe=true&height=550&width=785"
|
41
|
+
class="thickbox" title="lib/moovatom.rb">lib/moovatom.rb</a></li>
|
42
|
+
|
43
|
+
</ul>
|
44
|
+
</div>
|
45
|
+
</div>
|
46
|
+
|
47
|
+
|
48
|
+
</div>
|
49
|
+
|
50
|
+
<div id="class-metadata">
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
<!-- Namespace Contents -->
|
57
|
+
<div id="namespace-list-section" class="section">
|
58
|
+
<h3 class="section-header">Namespace</h3>
|
59
|
+
<ul class="link-list">
|
60
|
+
|
61
|
+
<li><span class="type">CLASS</span> <a href="MoovAtom/MoovEngine.html">MoovAtom::MoovEngine</a></li>
|
62
|
+
|
63
|
+
</ul>
|
64
|
+
</div>
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</div>
|
71
|
+
|
72
|
+
<div id="project-metadata">
|
73
|
+
|
74
|
+
|
75
|
+
<div id="fileindex-section" class="section project-section">
|
76
|
+
<h3 class="section-header">Files</h3>
|
77
|
+
<ul>
|
78
|
+
|
79
|
+
<li class="file"><a href="./Gemfile.html">Gemfile</a></li>
|
80
|
+
|
81
|
+
<li class="file"><a href="./LICENSE_txt.html">LICENSE.txt</a></li>
|
82
|
+
|
83
|
+
<li class="file"><a href="./Rakefile.html">Rakefile</a></li>
|
84
|
+
|
85
|
+
</ul>
|
86
|
+
</div>
|
87
|
+
|
88
|
+
|
89
|
+
<div id="classindex-section" class="section project-section">
|
90
|
+
<h3 class="section-header">Class/Module Index
|
91
|
+
<span class="search-toggle"><img src="./images/find.png"
|
92
|
+
height="16" width="16" alt="[+]"
|
93
|
+
title="show/hide quicksearch" /></span></h3>
|
94
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
95
|
+
<fieldset>
|
96
|
+
<legend>Quicksearch</legend>
|
97
|
+
<input type="text" name="quicksearch" value=""
|
98
|
+
class="quicksearch-field" />
|
99
|
+
</fieldset>
|
100
|
+
</form>
|
101
|
+
|
102
|
+
<ul class="link-list">
|
103
|
+
|
104
|
+
<li><a href="./MoovAtom.html">MoovAtom</a></li>
|
105
|
+
|
106
|
+
<li><a href="./MoovAtom/MoovEngine.html">MoovAtom::MoovEngine</a></li>
|
107
|
+
|
108
|
+
</ul>
|
109
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
110
|
+
</div>
|
111
|
+
|
112
|
+
|
113
|
+
</div>
|
114
|
+
</div>
|
115
|
+
|
116
|
+
<div id="documentation">
|
117
|
+
<h1 class="module">MoovAtom</h1>
|
118
|
+
|
119
|
+
<div id="description" class="description">
|
120
|
+
|
121
|
+
</div><!-- description -->
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
<!-- Constants -->
|
133
|
+
<div id="constants-list" class="section">
|
134
|
+
<h3 class="section-header">Constants</h3>
|
135
|
+
<dl>
|
136
|
+
|
137
|
+
<dt><a name="API_URL">API_URL</a></dt>
|
138
|
+
|
139
|
+
<dd class="description"></dd>
|
140
|
+
|
141
|
+
|
142
|
+
<dt><a name="VERSION">VERSION</a></dt>
|
143
|
+
|
144
|
+
<dd class="description"></dd>
|
145
|
+
|
146
|
+
|
147
|
+
</dl>
|
148
|
+
</div>
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
<!-- Methods -->
|
154
|
+
|
155
|
+
</div><!-- 5Buntitled-5D -->
|
156
|
+
|
157
|
+
|
158
|
+
</div><!-- documentation -->
|
159
|
+
|
160
|
+
<div id="validator-badges">
|
161
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
162
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
163
|
+
Rdoc Generator</a> 2</small>.</p>
|
164
|
+
</div>
|
165
|
+
|
166
|
+
</body>
|
167
|
+
</html>
|
168
|
+
|
data/doc/Rakefile.html
ADDED
@@ -0,0 +1,92 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
|
5
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
6
|
+
<head>
|
7
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
8
|
+
|
9
|
+
<title>File: Rakefile [MoovAtom API Documentation]</title>
|
10
|
+
|
11
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet" />
|
12
|
+
|
13
|
+
<script src="./js/jquery.js" type="text/javascript"
|
14
|
+
charset="utf-8"></script>
|
15
|
+
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
16
|
+
charset="utf-8"></script>
|
17
|
+
<script src="./js/quicksearch.js" type="text/javascript"
|
18
|
+
charset="utf-8"></script>
|
19
|
+
<script src="./js/darkfish.js" type="text/javascript"
|
20
|
+
charset="utf-8"></script>
|
21
|
+
</head>
|
22
|
+
|
23
|
+
<body class="file">
|
24
|
+
<div id="metadata">
|
25
|
+
<div id="home-metadata">
|
26
|
+
<div id="home-section" class="section">
|
27
|
+
<h3 class="section-header">
|
28
|
+
<a href="./index.html">Home</a>
|
29
|
+
<a href="./index.html#classes">Classes</a>
|
30
|
+
<a href="./index.html#methods">Methods</a>
|
31
|
+
</h3>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="project-metadata">
|
36
|
+
|
37
|
+
|
38
|
+
<div id="fileindex-section" class="section project-section">
|
39
|
+
<h3 class="section-header">Files</h3>
|
40
|
+
<ul>
|
41
|
+
|
42
|
+
<li class="file"><a href="./Gemfile.html">Gemfile</a></li>
|
43
|
+
|
44
|
+
<li class="file"><a href="./LICENSE_txt.html">LICENSE.txt</a></li>
|
45
|
+
|
46
|
+
<li class="file"><a href="./Rakefile.html">Rakefile</a></li>
|
47
|
+
|
48
|
+
</ul>
|
49
|
+
</div>
|
50
|
+
|
51
|
+
|
52
|
+
<div id="classindex-section" class="section project-section">
|
53
|
+
<h3 class="section-header">Class Index
|
54
|
+
<span class="search-toggle"><img src="./images/find.png"
|
55
|
+
height="16" width="16" alt="[+]"
|
56
|
+
title="show/hide quicksearch" /></span></h3>
|
57
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
58
|
+
<fieldset>
|
59
|
+
<legend>Quicksearch</legend>
|
60
|
+
<input type="text" name="quicksearch" value=""
|
61
|
+
class="quicksearch-field" />
|
62
|
+
</fieldset>
|
63
|
+
</form>
|
64
|
+
|
65
|
+
<ul class="link-list">
|
66
|
+
|
67
|
+
<li><a href="./MoovAtom.html">MoovAtom</a></li>
|
68
|
+
|
69
|
+
<li><a href="./MoovAtom/MoovEngine.html">MoovAtom::MoovEngine</a></li>
|
70
|
+
|
71
|
+
</ul>
|
72
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
73
|
+
</div>
|
74
|
+
|
75
|
+
|
76
|
+
</div>
|
77
|
+
</div>
|
78
|
+
|
79
|
+
<div id="documentation">
|
80
|
+
|
81
|
+
<p>require ‘bundler/gem_tasks’</p>
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
<div id="validator-badges">
|
86
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
87
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
88
|
+
Rdoc Generator</a> 2</small>.</p>
|
89
|
+
</div>
|
90
|
+
</body>
|
91
|
+
</html>
|
92
|
+
|
data/doc/created.rid
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
Tue, 06 Sep 2011 06:30:54 -0400
|
2
|
+
./Gemfile Wed, 10 Aug 2011 21:42:10 -0400
|
3
|
+
./init.rb Fri, 12 Aug 2011 19:25:47 -0400
|
4
|
+
./lib/moovatom/version.rb Wed, 10 Aug 2011 21:51:40 -0400
|
5
|
+
./lib/moovatom.rb Tue, 06 Sep 2011 06:30:10 -0400
|
6
|
+
./LICENSE.txt Wed, 10 Aug 2011 21:53:06 -0400
|
7
|
+
./Rakefile Wed, 10 Aug 2011 21:42:10 -0400
|
Binary file
|
Binary file
|
data/doc/images/bug.png
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/doc/images/date.png
ADDED
Binary file
|
data/doc/images/find.png
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/doc/images/ruby.png
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/doc/images/zoom.png
ADDED
Binary file
|
data/doc/index.html
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
4
|
+
|
5
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
|
6
|
+
<head>
|
7
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
8
|
+
|
9
|
+
<title>MoovAtom API Documentation</title>
|
10
|
+
|
11
|
+
<link type="text/css" media="screen" href="rdoc.css" rel="stylesheet" />
|
12
|
+
|
13
|
+
<script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
14
|
+
<script src="js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
15
|
+
<script src="js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
16
|
+
<script src="js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
17
|
+
|
18
|
+
</head>
|
19
|
+
<body class="indexpage">
|
20
|
+
|
21
|
+
|
22
|
+
<h1>MoovAtom API Documentation</h1>
|
23
|
+
|
24
|
+
|
25
|
+
<p>This is the API documentation for 'MoovAtom API Documentation'.</p>
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
<h2>Files</h2>
|
31
|
+
<ul>
|
32
|
+
|
33
|
+
<li class="file"><a href="Gemfile.html">Gemfile</a></li>
|
34
|
+
|
35
|
+
<li class="file"><a href="LICENSE_txt.html">LICENSE.txt</a></li>
|
36
|
+
|
37
|
+
<li class="file"><a href="Rakefile.html">Rakefile</a></li>
|
38
|
+
|
39
|
+
</ul>
|
40
|
+
|
41
|
+
|
42
|
+
<h2 id="classes">Classes/Modules</h2>
|
43
|
+
<ul>
|
44
|
+
|
45
|
+
<li class="module"><a href="MoovAtom.html">MoovAtom</a></li>
|
46
|
+
|
47
|
+
<li class="class"><a href="MoovAtom/MoovEngine.html">MoovAtom::MoovEngine</a></li>
|
48
|
+
|
49
|
+
</ul>
|
50
|
+
|
51
|
+
<h2 id="methods">Methods</h2>
|
52
|
+
<ul>
|
53
|
+
|
54
|
+
<li><a href="MoovAtom/MoovEngine.html#method-c-new">::new — MoovAtom::MoovEngine</a></li>
|
55
|
+
|
56
|
+
<li><a href="MoovAtom/MoovEngine.html#method-i-cancel">#cancel — MoovAtom::MoovEngine</a></li>
|
57
|
+
|
58
|
+
<li><a href="MoovAtom/MoovEngine.html#method-i-details">#details — MoovAtom::MoovEngine</a></li>
|
59
|
+
|
60
|
+
<li><a href="MoovAtom/MoovEngine.html#method-i-encode">#encode — MoovAtom::MoovEngine</a></li>
|
61
|
+
|
62
|
+
<li><a href="MoovAtom/MoovEngine.html#method-i-status">#status — MoovAtom::MoovEngine</a></li>
|
63
|
+
|
64
|
+
</ul>
|
65
|
+
|
66
|
+
<div id="validator-badges">
|
67
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
68
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
69
|
+
Rdoc Generator</a> 2</small>.</p>
|
70
|
+
</div>
|
71
|
+
</body>
|
72
|
+
</html>
|
data/doc/init_rb.html
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
|
5
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
6
|
+
<head>
|
7
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
8
|
+
|
9
|
+
<title>File: init.rb [MoovAtom API Documentation]</title>
|
10
|
+
|
11
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet" />
|
12
|
+
|
13
|
+
<script src="./js/jquery.js" type="text/javascript"
|
14
|
+
charset="utf-8"></script>
|
15
|
+
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
16
|
+
charset="utf-8"></script>
|
17
|
+
<script src="./js/quicksearch.js" type="text/javascript"
|
18
|
+
charset="utf-8"></script>
|
19
|
+
<script src="./js/darkfish.js" type="text/javascript"
|
20
|
+
charset="utf-8"></script>
|
21
|
+
</head>
|
22
|
+
|
23
|
+
<body class="file file-popup">
|
24
|
+
<div id="metadata">
|
25
|
+
<dl>
|
26
|
+
<dt class="modified-date">Last Modified</dt>
|
27
|
+
<dd class="modified-date">2011-08-12 19:25:47 -0400</dd>
|
28
|
+
|
29
|
+
|
30
|
+
<dt class="requires">Requires</dt>
|
31
|
+
<dd class="requires">
|
32
|
+
<ul>
|
33
|
+
|
34
|
+
<li>moovatom</li>
|
35
|
+
|
36
|
+
</ul>
|
37
|
+
</dd>
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
</dl>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
<div id="documentation">
|
45
|
+
|
46
|
+
<div class="description">
|
47
|
+
<h2>Description</h2>
|
48
|
+
|
49
|
+
</div>
|
50
|
+
|
51
|
+
</div>
|
52
|
+
</body>
|
53
|
+
</html>
|
54
|
+
|
data/doc/js/darkfish.js
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
/**
|
2
|
+
*
|
3
|
+
* Darkfish Page Functions
|
4
|
+
* $Id: darkfish.js 53 2009-01-07 02:52:03Z deveiant $
|
5
|
+
*
|
6
|
+
* Author: Michael Granger <mgranger@laika.com>
|
7
|
+
*
|
8
|
+
*/
|
9
|
+
|
10
|
+
/* Provide console simulation for firebug-less environments */
|
11
|
+
if (!("console" in window) || !("firebug" in console)) {
|
12
|
+
var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
|
13
|
+
"group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
|
14
|
+
|
15
|
+
window.console = {};
|
16
|
+
for (var i = 0; i < names.length; ++i)
|
17
|
+
window.console[names[i]] = function() {};
|
18
|
+
};
|
19
|
+
|
20
|
+
|
21
|
+
/**
|
22
|
+
* Unwrap the first element that matches the given @expr@ from the targets and return them.
|
23
|
+
*/
|
24
|
+
$.fn.unwrap = function( expr ) {
|
25
|
+
return this.each( function() {
|
26
|
+
$(this).parents( expr ).eq( 0 ).after( this ).remove();
|
27
|
+
});
|
28
|
+
};
|
29
|
+
|
30
|
+
|
31
|
+
function showSource( e ) {
|
32
|
+
var target = e.target;
|
33
|
+
var codeSections = $(target).
|
34
|
+
parents('.method-detail').
|
35
|
+
find('.method-source-code');
|
36
|
+
|
37
|
+
$(target).
|
38
|
+
parents('.method-detail').
|
39
|
+
find('.method-source-code').
|
40
|
+
slideToggle();
|
41
|
+
};
|
42
|
+
|
43
|
+
function hookSourceViews() {
|
44
|
+
$('.method-description,.method-heading').click( showSource );
|
45
|
+
};
|
46
|
+
|
47
|
+
function toggleDebuggingSection() {
|
48
|
+
$('.debugging-section').slideToggle();
|
49
|
+
};
|
50
|
+
|
51
|
+
function hookDebuggingToggle() {
|
52
|
+
$('#debugging-toggle img').click( toggleDebuggingSection );
|
53
|
+
};
|
54
|
+
|
55
|
+
function hookQuickSearch() {
|
56
|
+
$('.quicksearch-field').each( function() {
|
57
|
+
var searchElems = $(this).parents('.section').find( 'li' );
|
58
|
+
var toggle = $(this).parents('.section').find('h3 .search-toggle');
|
59
|
+
// console.debug( "Toggle is: %o", toggle );
|
60
|
+
var qsbox = $(this).parents('form').get( 0 );
|
61
|
+
|
62
|
+
$(this).quicksearch( this, searchElems, {
|
63
|
+
noSearchResultsIndicator: 'no-class-search-results',
|
64
|
+
focusOnLoad: false
|
65
|
+
});
|
66
|
+
$(toggle).click( function() {
|
67
|
+
// console.debug( "Toggling qsbox: %o", qsbox );
|
68
|
+
$(qsbox).toggle();
|
69
|
+
});
|
70
|
+
});
|
71
|
+
};
|
72
|
+
|
73
|
+
function highlightTarget( anchor ) {
|
74
|
+
console.debug( "Highlighting target '%s'.", anchor );
|
75
|
+
|
76
|
+
$("a[name=" + anchor + "]").each( function() {
|
77
|
+
if ( !$(this).parent().parent().hasClass('target-section') ) {
|
78
|
+
console.debug( "Wrapping the target-section" );
|
79
|
+
$('div.method-detail').unwrap( 'div.target-section' );
|
80
|
+
$(this).parent().wrap( '<div class="target-section"></div>' );
|
81
|
+
} else {
|
82
|
+
console.debug( "Already wrapped." );
|
83
|
+
}
|
84
|
+
});
|
85
|
+
};
|
86
|
+
|
87
|
+
function highlightLocationTarget() {
|
88
|
+
console.debug( "Location hash: %s", window.location.hash );
|
89
|
+
if ( ! window.location.hash || window.location.hash.length == 0 ) return;
|
90
|
+
|
91
|
+
var anchor = window.location.hash.substring(1);
|
92
|
+
console.debug( "Found anchor: %s; matching %s", anchor, "a[name=" + anchor + "]" );
|
93
|
+
|
94
|
+
highlightTarget( anchor );
|
95
|
+
};
|
96
|
+
|
97
|
+
function highlightClickTarget( event ) {
|
98
|
+
console.debug( "Highlighting click target for event %o", event.target );
|
99
|
+
try {
|
100
|
+
var anchor = $(event.target).attr( 'href' ).substring(1);
|
101
|
+
console.debug( "Found target anchor: %s", anchor );
|
102
|
+
highlightTarget( anchor );
|
103
|
+
} catch ( err ) {
|
104
|
+
console.error( "Exception while highlighting: %o", err );
|
105
|
+
};
|
106
|
+
};
|
107
|
+
|
108
|
+
|
109
|
+
$(document).ready( function() {
|
110
|
+
hookSourceViews();
|
111
|
+
hookDebuggingToggle();
|
112
|
+
hookQuickSearch();
|
113
|
+
highlightLocationTarget();
|
114
|
+
|
115
|
+
$('ul.link-list a').bind( "click", highlightClickTarget );
|
116
|
+
});
|