squarecoder 0.0.0 → 0.0.1
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/README.rdoc +12 -1
- data/lib/squarecoder/core_ext/string.rb +11 -0
- data/lib/squarecoder/errors.rb +4 -1
- data/lib/squarecoder/transcoder.rb +13 -7
- data/lib/squarecoder.rb +2 -0
- metadata +2 -39
- data/lib/doc/Squarecoder/Transcoder.html +0 -236
- data/lib/doc/Squarecoder.html +0 -116
- data/lib/doc/String.html +0 -266
- data/lib/doc/created.rid +0 -5
- data/lib/doc/images/add.png +0 -0
- data/lib/doc/images/brick.png +0 -0
- data/lib/doc/images/brick_link.png +0 -0
- data/lib/doc/images/bug.png +0 -0
- data/lib/doc/images/bullet_black.png +0 -0
- data/lib/doc/images/bullet_toggle_minus.png +0 -0
- data/lib/doc/images/bullet_toggle_plus.png +0 -0
- data/lib/doc/images/date.png +0 -0
- data/lib/doc/images/delete.png +0 -0
- data/lib/doc/images/find.png +0 -0
- data/lib/doc/images/loadingAnimation.gif +0 -0
- data/lib/doc/images/macFFBgHack.png +0 -0
- data/lib/doc/images/package.png +0 -0
- data/lib/doc/images/page_green.png +0 -0
- data/lib/doc/images/page_white_text.png +0 -0
- data/lib/doc/images/page_white_width.png +0 -0
- data/lib/doc/images/plugin.png +0 -0
- data/lib/doc/images/ruby.png +0 -0
- data/lib/doc/images/tag_blue.png +0 -0
- data/lib/doc/images/tag_green.png +0 -0
- data/lib/doc/images/transparent.png +0 -0
- data/lib/doc/images/wrench.png +0 -0
- data/lib/doc/images/wrench_orange.png +0 -0
- data/lib/doc/images/zoom.png +0 -0
- data/lib/doc/index.html +0 -73
- data/lib/doc/js/darkfish.js +0 -153
- data/lib/doc/js/jquery.js +0 -18
- data/lib/doc/js/navigation.js +0 -142
- data/lib/doc/js/search.js +0 -94
- data/lib/doc/js/search_index.js +0 -1
- data/lib/doc/js/searcher.js +0 -228
- data/lib/doc/rdoc.css +0 -543
- data/lib/doc/table_of_contents.html +0 -64
data/lib/doc/String.html
DELETED
@@ -1,266 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
-
|
7
|
-
<title>Class: String</title>
|
8
|
-
|
9
|
-
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
|
-
|
11
|
-
<script type="text/javascript">
|
12
|
-
var rdoc_rel_prefix = "./";
|
13
|
-
</script>
|
14
|
-
|
15
|
-
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
16
|
-
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
17
|
-
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
18
|
-
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
19
|
-
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
20
|
-
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
21
|
-
|
22
|
-
|
23
|
-
<body id="top" class="class">
|
24
|
-
<nav id="metadata">
|
25
|
-
<nav id="home-section" class="section">
|
26
|
-
<h3 class="section-header">
|
27
|
-
<a href="./index.html">Home</a>
|
28
|
-
<a href="./table_of_contents.html#classes">Classes</a>
|
29
|
-
<a href="./table_of_contents.html#methods">Methods</a>
|
30
|
-
</h3>
|
31
|
-
</nav>
|
32
|
-
|
33
|
-
|
34
|
-
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
-
<form action="#" method="get" accept-charset="utf-8">
|
36
|
-
<h3 class="section-header">
|
37
|
-
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
-
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
-
</h3>
|
40
|
-
</form>
|
41
|
-
|
42
|
-
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
-
</nav>
|
44
|
-
|
45
|
-
|
46
|
-
<div id="file-metadata">
|
47
|
-
<nav id="file-list-section" class="section">
|
48
|
-
<h3 class="section-header">Defined In</h3>
|
49
|
-
<ul>
|
50
|
-
<li>squarecoder/core_ext/string.rb
|
51
|
-
</ul>
|
52
|
-
</nav>
|
53
|
-
|
54
|
-
|
55
|
-
</div>
|
56
|
-
|
57
|
-
<div id="class-metadata">
|
58
|
-
|
59
|
-
<nav id="parent-class-section" class="section">
|
60
|
-
<h3 class="section-header">Parent</h3>
|
61
|
-
|
62
|
-
<p class="link">Object
|
63
|
-
|
64
|
-
</nav>
|
65
|
-
|
66
|
-
|
67
|
-
<!-- Method Quickref -->
|
68
|
-
<nav id="method-list-section" class="section">
|
69
|
-
<h3 class="section-header">Methods</h3>
|
70
|
-
|
71
|
-
<ul class="link-list">
|
72
|
-
|
73
|
-
<li><a href="#method-i-square_decode">#square_decode</a>
|
74
|
-
|
75
|
-
<li><a href="#method-i-square_decode-21">#square_decode!</a>
|
76
|
-
|
77
|
-
<li><a href="#method-i-square_encode">#square_encode</a>
|
78
|
-
|
79
|
-
<li><a href="#method-i-square_encode-21">#square_encode!</a>
|
80
|
-
|
81
|
-
</ul>
|
82
|
-
</nav>
|
83
|
-
|
84
|
-
</div>
|
85
|
-
|
86
|
-
<div id="project-metadata">
|
87
|
-
|
88
|
-
<nav id="classindex-section" class="section project-section">
|
89
|
-
<h3 class="section-header">Class and Module Index</h3>
|
90
|
-
|
91
|
-
<ul class="link-list">
|
92
|
-
|
93
|
-
<li><a href="./Squarecoder.html">Squarecoder</a>
|
94
|
-
|
95
|
-
<li><a href="./Squarecoder/Transcoder.html">Squarecoder::Transcoder</a>
|
96
|
-
|
97
|
-
<li><a href="./String.html">String</a>
|
98
|
-
|
99
|
-
</ul>
|
100
|
-
</nav>
|
101
|
-
|
102
|
-
</div>
|
103
|
-
</nav>
|
104
|
-
|
105
|
-
<div id="documentation">
|
106
|
-
<h1 class="class">class String</h1>
|
107
|
-
|
108
|
-
<div id="description" class="description">
|
109
|
-
|
110
|
-
</div><!-- description -->
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
<!-- Methods -->
|
125
|
-
|
126
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
127
|
-
<h3 class="section-header">Public Instance Methods</h3>
|
128
|
-
|
129
|
-
|
130
|
-
<div id="method-i-square_decode" class="method-detail ">
|
131
|
-
|
132
|
-
<div class="method-heading">
|
133
|
-
<span class="method-name">square_decode</span><span
|
134
|
-
class="method-args">()</span>
|
135
|
-
<span class="method-click-advice">click to toggle source</span>
|
136
|
-
</div>
|
137
|
-
|
138
|
-
|
139
|
-
<div class="method-description">
|
140
|
-
|
141
|
-
<p>Decode a <a href="String.html">String</a></p>
|
142
|
-
|
143
|
-
<p>Returns a <a href="String.html">String</a></p>
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
<div class="method-source-code" id="square_decode-source">
|
148
|
-
<pre><span class="ruby-comment"># File squarecoder/core_ext/string.rb, line 17</span>
|
149
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">square_decode</span>
|
150
|
-
<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">square_decode!</span>
|
151
|
-
<span class="ruby-keyword">end</span></pre>
|
152
|
-
</div><!-- square_decode-source -->
|
153
|
-
|
154
|
-
</div>
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
</div><!-- square_decode-method -->
|
160
|
-
|
161
|
-
|
162
|
-
<div id="method-i-square_decode-21" class="method-detail ">
|
163
|
-
|
164
|
-
<div class="method-heading">
|
165
|
-
<span class="method-name">square_decode!</span><span
|
166
|
-
class="method-args">()</span>
|
167
|
-
<span class="method-click-advice">click to toggle source</span>
|
168
|
-
</div>
|
169
|
-
|
170
|
-
|
171
|
-
<div class="method-description">
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
<div class="method-source-code" id="square_decode-21-source">
|
178
|
-
<pre><span class="ruby-comment"># File squarecoder/core_ext/string.rb, line 21</span>
|
179
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">square_decode!</span>
|
180
|
-
<span class="ruby-identifier">replace</span>( <span class="ruby-constant">Squarecoder</span><span class="ruby-operator">::</span><span class="ruby-constant">Transcoder</span>.<span class="ruby-identifier">decode</span>( <span class="ruby-keyword">self</span> ) )
|
181
|
-
<span class="ruby-keyword">end</span></pre>
|
182
|
-
</div><!-- square_decode-21-source -->
|
183
|
-
|
184
|
-
</div>
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
</div><!-- square_decode-21-method -->
|
190
|
-
|
191
|
-
|
192
|
-
<div id="method-i-square_encode" class="method-detail ">
|
193
|
-
|
194
|
-
<div class="method-heading">
|
195
|
-
<span class="method-name">square_encode</span><span
|
196
|
-
class="method-args">()</span>
|
197
|
-
<span class="method-click-advice">click to toggle source</span>
|
198
|
-
</div>
|
199
|
-
|
200
|
-
|
201
|
-
<div class="method-description">
|
202
|
-
|
203
|
-
<p>Encode a <a href="String.html">String</a></p>
|
204
|
-
|
205
|
-
<p>Returns a <a href="String.html">String</a></p>
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
<div class="method-source-code" id="square_encode-source">
|
210
|
-
<pre><span class="ruby-comment"># File squarecoder/core_ext/string.rb, line 6</span>
|
211
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">square_encode</span>
|
212
|
-
<span class="ruby-identifier">dup</span>.<span class="ruby-identifier">square_encode!</span>
|
213
|
-
<span class="ruby-keyword">end</span></pre>
|
214
|
-
</div><!-- square_encode-source -->
|
215
|
-
|
216
|
-
</div>
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
</div><!-- square_encode-method -->
|
222
|
-
|
223
|
-
|
224
|
-
<div id="method-i-square_encode-21" class="method-detail ">
|
225
|
-
|
226
|
-
<div class="method-heading">
|
227
|
-
<span class="method-name">square_encode!</span><span
|
228
|
-
class="method-args">()</span>
|
229
|
-
<span class="method-click-advice">click to toggle source</span>
|
230
|
-
</div>
|
231
|
-
|
232
|
-
|
233
|
-
<div class="method-description">
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
<div class="method-source-code" id="square_encode-21-source">
|
240
|
-
<pre><span class="ruby-comment"># File squarecoder/core_ext/string.rb, line 10</span>
|
241
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">square_encode!</span>
|
242
|
-
<span class="ruby-identifier">replace</span>( <span class="ruby-constant">Squarecoder</span><span class="ruby-operator">::</span><span class="ruby-constant">Transcoder</span>.<span class="ruby-identifier">encode</span>( <span class="ruby-keyword">self</span> ) )
|
243
|
-
<span class="ruby-keyword">end</span></pre>
|
244
|
-
</div><!-- square_encode-21-source -->
|
245
|
-
|
246
|
-
</div>
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
</div><!-- square_encode-21-method -->
|
252
|
-
|
253
|
-
|
254
|
-
</section><!-- public-instance-method-details -->
|
255
|
-
|
256
|
-
</section><!-- 5Buntitled-5D -->
|
257
|
-
|
258
|
-
</div><!-- documentation -->
|
259
|
-
|
260
|
-
|
261
|
-
<footer id="validator-badges">
|
262
|
-
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
263
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.11.
|
264
|
-
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
265
|
-
</footer>
|
266
|
-
|
data/lib/doc/created.rid
DELETED
data/lib/doc/images/add.png
DELETED
Binary file
|
data/lib/doc/images/brick.png
DELETED
Binary file
|
Binary file
|
data/lib/doc/images/bug.png
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/doc/images/date.png
DELETED
Binary file
|
data/lib/doc/images/delete.png
DELETED
Binary file
|
data/lib/doc/images/find.png
DELETED
Binary file
|
Binary file
|
Binary file
|
data/lib/doc/images/package.png
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/doc/images/plugin.png
DELETED
Binary file
|
data/lib/doc/images/ruby.png
DELETED
Binary file
|
data/lib/doc/images/tag_blue.png
DELETED
Binary file
|
Binary file
|
Binary file
|
data/lib/doc/images/wrench.png
DELETED
Binary file
|
Binary file
|
data/lib/doc/images/zoom.png
DELETED
Binary file
|
data/lib/doc/index.html
DELETED
@@ -1,73 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
-
|
7
|
-
<title>RDoc Documentation</title>
|
8
|
-
|
9
|
-
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
|
-
|
11
|
-
<script type="text/javascript">
|
12
|
-
var rdoc_rel_prefix = "./";
|
13
|
-
</script>
|
14
|
-
|
15
|
-
<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
|
16
|
-
<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
|
17
|
-
<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
|
18
|
-
<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
|
19
|
-
<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
|
20
|
-
<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
|
21
|
-
|
22
|
-
|
23
|
-
<body>
|
24
|
-
<nav id="metadata">
|
25
|
-
<nav id="home-section" class="section">
|
26
|
-
<h3 class="section-header">
|
27
|
-
<a href="./index.html">Home</a>
|
28
|
-
<a href="./table_of_contents.html#classes">Classes</a>
|
29
|
-
<a href="./table_of_contents.html#methods">Methods</a>
|
30
|
-
</h3>
|
31
|
-
</nav>
|
32
|
-
|
33
|
-
|
34
|
-
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
-
<form action="#" method="get" accept-charset="utf-8">
|
36
|
-
<h3 class="section-header">
|
37
|
-
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
-
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
-
</h3>
|
40
|
-
</form>
|
41
|
-
|
42
|
-
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
-
</nav>
|
44
|
-
|
45
|
-
|
46
|
-
<div id="project-metadata">
|
47
|
-
|
48
|
-
<nav id="classindex-section" class="section project-section">
|
49
|
-
<h3 class="section-header">Class and Module Index</h3>
|
50
|
-
|
51
|
-
<ul class="link-list">
|
52
|
-
|
53
|
-
<li><a href="./Squarecoder.html">Squarecoder</a>
|
54
|
-
|
55
|
-
<li><a href="./Squarecoder/Transcoder.html">Squarecoder::Transcoder</a>
|
56
|
-
|
57
|
-
<li><a href="./String.html">String</a>
|
58
|
-
|
59
|
-
</ul>
|
60
|
-
</nav>
|
61
|
-
|
62
|
-
</div>
|
63
|
-
</nav>
|
64
|
-
|
65
|
-
<p>This is the API documentation for RDoc Documentation.
|
66
|
-
|
67
|
-
|
68
|
-
<footer id="validator-badges">
|
69
|
-
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
70
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.11.
|
71
|
-
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
72
|
-
</footer>
|
73
|
-
|
data/lib/doc/js/darkfish.js
DELETED
@@ -1,153 +0,0 @@
|
|
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-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 hookTableOfContentsToggle() {
|
56
|
-
$('.indexpage li .toc-toggle').each( function() {
|
57
|
-
$(this).click( function() {
|
58
|
-
$(this).toggleClass('open');
|
59
|
-
});
|
60
|
-
|
61
|
-
var section = $(this).next();
|
62
|
-
|
63
|
-
$(this).click( function() {
|
64
|
-
section.slideToggle();
|
65
|
-
});
|
66
|
-
});
|
67
|
-
}
|
68
|
-
|
69
|
-
function hookSearch() {
|
70
|
-
var input = $('#search-field').eq(0);
|
71
|
-
var result = $('#search-results').eq(0);
|
72
|
-
$(result).show();
|
73
|
-
|
74
|
-
var search_section = $('#search-section').get(0);
|
75
|
-
$(search_section).show();
|
76
|
-
|
77
|
-
var search = new Search(search_data, input, result);
|
78
|
-
|
79
|
-
search.renderItem = function(result) {
|
80
|
-
var li = document.createElement('li');
|
81
|
-
var html = '';
|
82
|
-
|
83
|
-
// TODO add relative path to <script> per-page
|
84
|
-
html += '<p class="search-match"><a href="' + rdoc_rel_prefix + result.path + '">' + this.hlt(result.title);
|
85
|
-
if (result.params)
|
86
|
-
html += '<span class="params">' + result.params + '</span>';
|
87
|
-
html += '</a>';
|
88
|
-
|
89
|
-
|
90
|
-
if (result.namespace)
|
91
|
-
html += '<p class="search-namespace">' + this.hlt(result.namespace);
|
92
|
-
|
93
|
-
if (result.snippet)
|
94
|
-
html += '<div class="search-snippet">' + result.snippet + '</div>';
|
95
|
-
|
96
|
-
li.innerHTML = html;
|
97
|
-
|
98
|
-
return li;
|
99
|
-
}
|
100
|
-
|
101
|
-
search.select = function(result) {
|
102
|
-
var result_element = result.get(0);
|
103
|
-
window.location.href = result_element.firstChild.firstChild.href;
|
104
|
-
}
|
105
|
-
|
106
|
-
search.scrollIntoView = search.scrollInWindow;
|
107
|
-
};
|
108
|
-
|
109
|
-
function highlightTarget( anchor ) {
|
110
|
-
console.debug( "Highlighting target '%s'.", anchor );
|
111
|
-
|
112
|
-
$("a[name=" + anchor + "]").each( function() {
|
113
|
-
if ( !$(this).parent().parent().hasClass('target-section') ) {
|
114
|
-
console.debug( "Wrapping the target-section" );
|
115
|
-
$('div.method-detail').unwrap( 'div.target-section' );
|
116
|
-
$(this).parent().wrap( '<div class="target-section"></div>' );
|
117
|
-
} else {
|
118
|
-
console.debug( "Already wrapped." );
|
119
|
-
}
|
120
|
-
});
|
121
|
-
};
|
122
|
-
|
123
|
-
function highlightLocationTarget() {
|
124
|
-
console.debug( "Location hash: %s", window.location.hash );
|
125
|
-
if ( ! window.location.hash || window.location.hash.length == 0 ) return;
|
126
|
-
|
127
|
-
var anchor = window.location.hash.substring(1);
|
128
|
-
console.debug( "Found anchor: %s; matching %s", anchor, "a[name=" + anchor + "]" );
|
129
|
-
|
130
|
-
highlightTarget( anchor );
|
131
|
-
};
|
132
|
-
|
133
|
-
function highlightClickTarget( event ) {
|
134
|
-
console.debug( "Highlighting click target for event %o", event.target );
|
135
|
-
try {
|
136
|
-
var anchor = $(event.target).attr( 'href' ).substring(1);
|
137
|
-
console.debug( "Found target anchor: %s", anchor );
|
138
|
-
highlightTarget( anchor );
|
139
|
-
} catch ( err ) {
|
140
|
-
console.error( "Exception while highlighting: %o", err );
|
141
|
-
};
|
142
|
-
};
|
143
|
-
|
144
|
-
|
145
|
-
$(document).ready( function() {
|
146
|
-
hookSourceViews();
|
147
|
-
hookDebuggingToggle();
|
148
|
-
hookSearch();
|
149
|
-
highlightLocationTarget();
|
150
|
-
hookTableOfContentsToggle();
|
151
|
-
|
152
|
-
$('ul.link-list a').bind( "click", highlightClickTarget );
|
153
|
-
});
|