wlapi 0.0.6 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/INSTALL +5 -0
- data/README +11 -5
- data/README.rdoc +22 -0
- data/Rakefile +14 -0
- data/lib/wlapi/api.rb +354 -0
- data/lib/wlapi.rb +1 -267
- data/test/test_api.rb +233 -0
- data/wlapi.gemspec +9 -7
- metadata +14 -47
- data/doc/INSTALL.html +0 -90
- data/doc/LICENSE.html +0 -115
- data/doc/README.html +0 -119
- data/doc/WLAPI/API.html +0 -1008
- data/doc/WLAPI.html +0 -155
- data/doc/created.rid +0 -6
- data/doc/example/example_rb.html +0 -65
- 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 +0 -131
- data/doc/js/darkfish.js +0 -116
- data/doc/js/jquery.js +0 -32
- data/doc/js/quicksearch.js +0 -114
- data/doc/js/thickbox-compressed.js +0 -10
- data/doc/lib/wlapi_rb.html +0 -59
- data/doc/rdoc.css +0 -706
- data/example/example.rb +0 -17
data/doc/WLAPI.html
DELETED
@@ -1,155 +0,0 @@
|
|
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: WLAPI</title>
|
9
|
-
|
10
|
-
<link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
|
11
|
-
|
12
|
-
<script src="./js/jquery.js" type="text/javascript"
|
13
|
-
charset="utf-8"></script>
|
14
|
-
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
15
|
-
charset="utf-8"></script>
|
16
|
-
<script src="./js/quicksearch.js" type="text/javascript"
|
17
|
-
charset="utf-8"></script>
|
18
|
-
<script src="./js/darkfish.js" type="text/javascript"
|
19
|
-
charset="utf-8"></script>
|
20
|
-
|
21
|
-
</head>
|
22
|
-
<body class="module">
|
23
|
-
|
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="file-metadata">
|
36
|
-
<div id="file-list-section" class="section">
|
37
|
-
<h3 class="section-header">In Files</h3>
|
38
|
-
<div class="section-body">
|
39
|
-
<ul>
|
40
|
-
|
41
|
-
<li><a href="./lib/wlapi_rb.html?TB_iframe=true&height=550&width=785"
|
42
|
-
class="thickbox" title="lib/wlapi.rb">lib/wlapi.rb</a></li>
|
43
|
-
|
44
|
-
</ul>
|
45
|
-
</div>
|
46
|
-
</div>
|
47
|
-
|
48
|
-
|
49
|
-
</div>
|
50
|
-
|
51
|
-
<div id="class-metadata">
|
52
|
-
|
53
|
-
<!-- Parent Class -->
|
54
|
-
|
55
|
-
|
56
|
-
<!-- Namespace Contents -->
|
57
|
-
|
58
|
-
<div id="namespace-list-section" class="section">
|
59
|
-
<h3 class="section-header">Namespace</h3>
|
60
|
-
<ul class="link-list">
|
61
|
-
|
62
|
-
<li><span class="type">CLASS</span> <a href="WLAPI/API.html">WLAPI::API</a></li>
|
63
|
-
|
64
|
-
</ul>
|
65
|
-
</div>
|
66
|
-
|
67
|
-
|
68
|
-
<!-- Method Quickref -->
|
69
|
-
|
70
|
-
|
71
|
-
<!-- Included Modules -->
|
72
|
-
|
73
|
-
</div>
|
74
|
-
|
75
|
-
<div id="project-metadata">
|
76
|
-
|
77
|
-
|
78
|
-
<div id="fileindex-section" class="section project-section">
|
79
|
-
<h3 class="section-header">Files</h3>
|
80
|
-
<ul>
|
81
|
-
|
82
|
-
<li class="file"><a href="./INSTALL.html">INSTALL</a></li>
|
83
|
-
|
84
|
-
<li class="file"><a href="./LICENSE.html">LICENSE</a></li>
|
85
|
-
|
86
|
-
<li class="file"><a href="./README.html">README</a></li>
|
87
|
-
|
88
|
-
</ul>
|
89
|
-
</div>
|
90
|
-
|
91
|
-
|
92
|
-
<div id="classindex-section" class="section project-section">
|
93
|
-
<h3 class="section-header">Class Index
|
94
|
-
<span class="search-toggle"><img src="./images/find.png"
|
95
|
-
height="16" width="16" alt="[+]"
|
96
|
-
title="show/hide quicksearch" /></span></h3>
|
97
|
-
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
98
|
-
<fieldset>
|
99
|
-
<legend>Quicksearch</legend>
|
100
|
-
<input type="text" name="quicksearch" value=""
|
101
|
-
class="quicksearch-field" />
|
102
|
-
</fieldset>
|
103
|
-
</form>
|
104
|
-
|
105
|
-
<ul class="link-list">
|
106
|
-
|
107
|
-
<li><a href="./WLAPI.html">WLAPI</a></li>
|
108
|
-
|
109
|
-
<li><a href="./WLAPI/API.html">WLAPI::API</a></li>
|
110
|
-
|
111
|
-
</ul>
|
112
|
-
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
113
|
-
</div>
|
114
|
-
|
115
|
-
|
116
|
-
</div>
|
117
|
-
</div>
|
118
|
-
|
119
|
-
<div id="documentation">
|
120
|
-
<h1 class="module">WLAPI</h1>
|
121
|
-
|
122
|
-
<div id="description">
|
123
|
-
<p>
|
124
|
-
Top level namespace wrapper for <a href="WLAPI.html">WLAPI</a>
|
125
|
-
</p>
|
126
|
-
|
127
|
-
</div>
|
128
|
-
|
129
|
-
<!-- Constants -->
|
130
|
-
|
131
|
-
|
132
|
-
<!-- Attributes -->
|
133
|
-
|
134
|
-
|
135
|
-
<!-- Methods -->
|
136
|
-
|
137
|
-
|
138
|
-
</div>
|
139
|
-
|
140
|
-
|
141
|
-
<div id="rdoc-debugging-section-dump" class="debugging-section">
|
142
|
-
|
143
|
-
<p>Disabled; run with --debug to generate this.</p>
|
144
|
-
|
145
|
-
</div>
|
146
|
-
|
147
|
-
<div id="validator-badges">
|
148
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
149
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
150
|
-
Rdoc Generator</a> 1.1.6</small>.</p>
|
151
|
-
</div>
|
152
|
-
|
153
|
-
</body>
|
154
|
-
</html>
|
155
|
-
|
data/doc/created.rid
DELETED
data/doc/example/example_rb.html
DELETED
@@ -1,65 +0,0 @@
|
|
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: example.rb [Ruby based API for Wortschatz Leipzig web services]</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">Sun Nov 14 22:11:52 +0100 2010</dd>
|
28
|
-
|
29
|
-
|
30
|
-
<dt class="requires">Requires</dt>
|
31
|
-
<dd class="requires">
|
32
|
-
<ul>
|
33
|
-
|
34
|
-
<li>rubygems</li>
|
35
|
-
|
36
|
-
<li>wlapi</li>
|
37
|
-
|
38
|
-
</ul>
|
39
|
-
</dd>
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
</dl>
|
44
|
-
</div>
|
45
|
-
|
46
|
-
<div id="documentation">
|
47
|
-
|
48
|
-
<div class="description">
|
49
|
-
<h2>Description</h2>
|
50
|
-
<pre>
|
51
|
-
See the source for some example invocations.
|
52
|
-
--
|
53
|
-
this string no more actual for Rubygems invokation
|
54
|
-
</pre>
|
55
|
-
<p>
|
56
|
-
$LOAD_PATH.unshift(File.expand_path(File.dirname(<em>FILE</em>) +
|
57
|
-
‘/../lib’))
|
58
|
-
</p>
|
59
|
-
|
60
|
-
</div>
|
61
|
-
|
62
|
-
</div>
|
63
|
-
</body>
|
64
|
-
</html>
|
65
|
-
|
data/doc/images/brick.png
DELETED
Binary file
|
data/doc/images/brick_link.png
DELETED
Binary file
|
data/doc/images/bug.png
DELETED
Binary file
|
data/doc/images/bullet_black.png
DELETED
Binary file
|
Binary file
|
Binary file
|
data/doc/images/date.png
DELETED
Binary file
|
data/doc/images/find.png
DELETED
Binary file
|
Binary file
|
data/doc/images/macFFBgHack.png
DELETED
Binary file
|
data/doc/images/package.png
DELETED
Binary file
|
data/doc/images/page_green.png
DELETED
Binary file
|
Binary file
|
Binary file
|
data/doc/images/plugin.png
DELETED
Binary file
|
data/doc/images/ruby.png
DELETED
Binary file
|
data/doc/images/tag_green.png
DELETED
Binary file
|
data/doc/images/wrench.png
DELETED
Binary file
|
Binary file
|
data/doc/images/zoom.png
DELETED
Binary file
|
data/doc/index.html
DELETED
@@ -1,131 +0,0 @@
|
|
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>Ruby based API for Wortschatz Leipzig web services</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>Ruby based API for Wortschatz Leipzig web services</h1>
|
23
|
-
|
24
|
-
|
25
|
-
<div id="main">
|
26
|
-
|
27
|
-
<ul>
|
28
|
-
<li><p>
|
29
|
-
<a href="http://rubygems.org/gems/wlapi">rubygems.org/gems/wlapi</a>
|
30
|
-
</p>
|
31
|
-
</li>
|
32
|
-
<li><p>
|
33
|
-
<a
|
34
|
-
href="http://www.uni-trier.de/index.php?id=24140">www.uni-trier.de/index.php?id=24140</a>
|
35
|
-
</p>
|
36
|
-
</li>
|
37
|
-
</ul>
|
38
|
-
<h2>DESCRIPTION</h2>
|
39
|
-
<p>
|
40
|
-
<a href="WLAPI.html">WLAPI</a> is a simple API for Wortschatz Leipzig
|
41
|
-
project.
|
42
|
-
</p>
|
43
|
-
<pre>
|
44
|
-
$ require 'wlapi'
|
45
|
-
$ api = WLAPI::API.new
|
46
|
-
$ api.synonyms('Haus', 15) # returns an array with string values (UTF8 encoded)
|
47
|
-
</pre>
|
48
|
-
<p>
|
49
|
-
See RDOC documentation for details on particular methods.
|
50
|
-
</p>
|
51
|
-
<p>
|
52
|
-
You can find some invocation examples in <a
|
53
|
-
href="example/example_rb.html">example/example.rb</a>
|
54
|
-
</p>
|
55
|
-
|
56
|
-
</div>
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
<h2>Files</h2>
|
62
|
-
<ul>
|
63
|
-
|
64
|
-
<li class="file"><a href="INSTALL.html">INSTALL</a></li>
|
65
|
-
|
66
|
-
<li class="file"><a href="LICENSE.html">LICENSE</a></li>
|
67
|
-
|
68
|
-
<li class="file"><a href="README.html">README</a></li>
|
69
|
-
|
70
|
-
</ul>
|
71
|
-
|
72
|
-
|
73
|
-
<h2 id="classes">Classes/Modules</h2>
|
74
|
-
<ul>
|
75
|
-
|
76
|
-
<li class="module"><a href="WLAPI.html">WLAPI</a></li>
|
77
|
-
|
78
|
-
<li class="class"><a href="WLAPI/API.html">WLAPI::API</a></li>
|
79
|
-
|
80
|
-
</ul>
|
81
|
-
|
82
|
-
<h2 id="methods">Methods</h2>
|
83
|
-
<ul>
|
84
|
-
|
85
|
-
<li><a href="WLAPI/API.html#method-c-new">::new — WLAPI::API</a></li>
|
86
|
-
|
87
|
-
<li><a href="WLAPI/API.html#method-i-baseform">#baseform — WLAPI::API</a></li>
|
88
|
-
|
89
|
-
<li><a href="WLAPI/API.html#method-i-cooccurrences">#cooccurrences — WLAPI::API</a></li>
|
90
|
-
|
91
|
-
<li><a href="WLAPI/API.html#method-i-cooccurrences_all">#cooccurrences_all — WLAPI::API</a></li>
|
92
|
-
|
93
|
-
<li><a href="WLAPI/API.html#method-i-domain">#domain — WLAPI::API</a></li>
|
94
|
-
|
95
|
-
<li><a href="WLAPI/API.html#method-i-experimental_synonyms">#experimental_synonyms — WLAPI::API</a></li>
|
96
|
-
|
97
|
-
<li><a href="WLAPI/API.html#method-i-frequencies">#frequencies — WLAPI::API</a></li>
|
98
|
-
|
99
|
-
<li><a href="WLAPI/API.html#method-i-get_answer">#get_answer — WLAPI::API</a></li>
|
100
|
-
|
101
|
-
<li><a href="WLAPI/API.html#method-i-intersection">#intersection — WLAPI::API</a></li>
|
102
|
-
|
103
|
-
<li><a href="WLAPI/API.html#method-i-left_collocation_finder">#left_collocation_finder — WLAPI::API</a></li>
|
104
|
-
|
105
|
-
<li><a href="WLAPI/API.html#method-i-left_neighbours">#left_neighbours — WLAPI::API</a></li>
|
106
|
-
|
107
|
-
<li><a href="WLAPI/API.html#method-i-query">#query — WLAPI::API</a></li>
|
108
|
-
|
109
|
-
<li><a href="WLAPI/API.html#method-i-right_collocation_finder">#right_collocation_finder — WLAPI::API</a></li>
|
110
|
-
|
111
|
-
<li><a href="WLAPI/API.html#method-i-right_neighbours">#right_neighbours — WLAPI::API</a></li>
|
112
|
-
|
113
|
-
<li><a href="WLAPI/API.html#method-i-sentences">#sentences — WLAPI::API</a></li>
|
114
|
-
|
115
|
-
<li><a href="WLAPI/API.html#method-i-similarity">#similarity — WLAPI::API</a></li>
|
116
|
-
|
117
|
-
<li><a href="WLAPI/API.html#method-i-synonyms">#synonyms — WLAPI::API</a></li>
|
118
|
-
|
119
|
-
<li><a href="WLAPI/API.html#method-i-thesaurus">#thesaurus — WLAPI::API</a></li>
|
120
|
-
|
121
|
-
<li><a href="WLAPI/API.html#method-i-wordforms">#wordforms — WLAPI::API</a></li>
|
122
|
-
|
123
|
-
</ul>
|
124
|
-
|
125
|
-
<div id="validator-badges">
|
126
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
127
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
128
|
-
Rdoc Generator</a> 1.1.6</small>.</p>
|
129
|
-
</div>
|
130
|
-
</body>
|
131
|
-
</html>
|
data/doc/js/darkfish.js
DELETED
@@ -1,116 +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-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
|
-
});
|