myexperiment-rest 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +4 -1
- data/README +2 -2
- data/Rakefile +3 -3
- metadata +7 -50
- data/doc/rdoc/CHANGES.html +0 -168
- data/doc/rdoc/LICENSE.html +0 -127
- data/doc/rdoc/MyExperimentREST.html +0 -271
- data/doc/rdoc/MyExperimentREST/MyExperimentIOData.html +0 -319
- data/doc/rdoc/MyExperimentREST/MyExperimentUser.html +0 -405
- data/doc/rdoc/MyExperimentREST/MyExperimentWorkflow.html +0 -369
- data/doc/rdoc/MyExperimentREST/SessionCookie.html +0 -216
- data/doc/rdoc/MyExperimentREST/Urls.html +0 -175
- data/doc/rdoc/MyExperimentREST/User.html +0 -262
- data/doc/rdoc/MyExperimentREST/Workflow.html +0 -271
- data/doc/rdoc/README.html +0 -145
- data/doc/rdoc/created.rid +0 -9
- data/doc/rdoc/images/brick.png +0 -0
- data/doc/rdoc/images/brick_link.png +0 -0
- data/doc/rdoc/images/bug.png +0 -0
- data/doc/rdoc/images/bullet_black.png +0 -0
- data/doc/rdoc/images/bullet_toggle_minus.png +0 -0
- data/doc/rdoc/images/bullet_toggle_plus.png +0 -0
- data/doc/rdoc/images/date.png +0 -0
- data/doc/rdoc/images/find.png +0 -0
- data/doc/rdoc/images/loadingAnimation.gif +0 -0
- data/doc/rdoc/images/macFFBgHack.png +0 -0
- data/doc/rdoc/images/package.png +0 -0
- data/doc/rdoc/images/page_green.png +0 -0
- data/doc/rdoc/images/page_white_text.png +0 -0
- data/doc/rdoc/images/page_white_width.png +0 -0
- data/doc/rdoc/images/plugin.png +0 -0
- data/doc/rdoc/images/ruby.png +0 -0
- data/doc/rdoc/images/tag_green.png +0 -0
- data/doc/rdoc/images/wrench.png +0 -0
- data/doc/rdoc/images/wrench_orange.png +0 -0
- data/doc/rdoc/images/zoom.png +0 -0
- data/doc/rdoc/index.html +0 -142
- data/doc/rdoc/js/darkfish.js +0 -116
- data/doc/rdoc/js/jquery.js +0 -32
- data/doc/rdoc/js/quicksearch.js +0 -114
- data/doc/rdoc/js/thickbox-compressed.js +0 -10
- data/doc/rdoc/lib/myexperiment-rest/authentication_rb.html +0 -54
- data/doc/rdoc/lib/myexperiment-rest/constants_rb.html +0 -52
- data/doc/rdoc/lib/myexperiment-rest/user_rb.html +0 -54
- data/doc/rdoc/lib/myexperiment-rest/workflow_rb.html +0 -54
- data/doc/rdoc/lib/myexperiment-rest_rb.html +0 -64
- data/doc/rdoc/rdoc.css +0 -763
data/doc/rdoc/README.html
DELETED
@@ -1,145 +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: README [myexperiment-rest Docs]</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="./CHANGES.html">CHANGES</a></li>
|
43
|
-
|
44
|
-
<li class="file"><a href="./LICENSE.html">LICENSE</a></li>
|
45
|
-
|
46
|
-
<li class="file"><a href="./README.html">README</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="./MyExperimentREST.html">MyExperimentREST</a></li>
|
68
|
-
|
69
|
-
<li><a href="./MyExperimentREST/MyExperimentIOData.html">MyExperimentREST::MyExperimentIOData</a></li>
|
70
|
-
|
71
|
-
<li><a href="./MyExperimentREST/MyExperimentUser.html">MyExperimentREST::MyExperimentUser</a></li>
|
72
|
-
|
73
|
-
<li><a href="./MyExperimentREST/MyExperimentWorkflow.html">MyExperimentREST::MyExperimentWorkflow</a></li>
|
74
|
-
|
75
|
-
<li><a href="./MyExperimentREST/SessionCookie.html">MyExperimentREST::SessionCookie</a></li>
|
76
|
-
|
77
|
-
<li><a href="./MyExperimentREST/Urls.html">MyExperimentREST::Urls</a></li>
|
78
|
-
|
79
|
-
<li><a href="./MyExperimentREST/User.html">MyExperimentREST::User</a></li>
|
80
|
-
|
81
|
-
<li><a href="./MyExperimentREST/Workflow.html">MyExperimentREST::Workflow</a></li>
|
82
|
-
|
83
|
-
</ul>
|
84
|
-
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
85
|
-
</div>
|
86
|
-
|
87
|
-
|
88
|
-
</div>
|
89
|
-
</div>
|
90
|
-
|
91
|
-
<div id="documentation">
|
92
|
-
|
93
|
-
<h1>MyExperiment Interaction via REST</h1>
|
94
|
-
<table class="rdoc-list"><tr><td class="rdoc-term"><p>Authors</p></td>
|
95
|
-
<td>
|
96
|
-
<p>Konstantinos Karasavvas</p>
|
97
|
-
</td></tr><tr><td class="rdoc-term"><p>Gem Version</p></td>
|
98
|
-
<td>
|
99
|
-
<p>0.3.3</p>
|
100
|
-
</td></tr><tr><td class="rdoc-term"><p>Contact</p></td>
|
101
|
-
<td>
|
102
|
-
<p><a href="mailto:kostas.karasavvas@nbic.nl">kostas.karasavvas@nbic.nl</a></p>
|
103
|
-
</td></tr><tr><td class="rdoc-term"><p>Licence</p></td>
|
104
|
-
<td>
|
105
|
-
<p>MIT (See LICENCE or <a
|
106
|
-
href="http://www.opensource.org/licenses/mit-license">www.opensource.org/licenses/mit-license</a>)</p>
|
107
|
-
</td></tr><tr><td class="rdoc-term"><p>Copyright</p></td>
|
108
|
-
<td>
|
109
|
-
<p>© 2010 Netherlands Bioinformatics Centre, The Netherlands</p>
|
110
|
-
</td></tr></table>
|
111
|
-
|
112
|
-
<h2>Description</h2>
|
113
|
-
|
114
|
-
<p>This is a simple library to access data on myExperiment via its REST API.</p>
|
115
|
-
|
116
|
-
<h2>Features/Problems</h2>
|
117
|
-
|
118
|
-
<p>Only a subset of myExperiment workflow and user data can be currently
|
119
|
-
accessed.</p>
|
120
|
-
|
121
|
-
<h2>Usage</h2>
|
122
|
-
|
123
|
-
<p>There is an example script inside the <tt>bin</tt> directory that
|
124
|
-
demonstrates how you can use the library: $ get_workflow_data.rb.</p>
|
125
|
-
|
126
|
-
<h2>Installation</h2>
|
127
|
-
|
128
|
-
<pre>[sudo] gem install myexperiment-rest</pre>
|
129
|
-
|
130
|
-
<h2>References</h2>
|
131
|
-
<table class="rdoc-list"><tr><td class="rdoc-term"><p>myExperiment</p></td>
|
132
|
-
<td>
|
133
|
-
<p><a href="http://www.myexperiment.org">www.myexperiment.org</a></p>
|
134
|
-
</td></tr></table>
|
135
|
-
|
136
|
-
</div>
|
137
|
-
|
138
|
-
<div id="validator-badges">
|
139
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
140
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
141
|
-
Rdoc Generator</a> 2</small>.</p>
|
142
|
-
</div>
|
143
|
-
</body>
|
144
|
-
</html>
|
145
|
-
|
data/doc/rdoc/created.rid
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
Mon, 13 Feb 2012 16:25:51 +0100
|
2
|
-
LICENSE Tue, 26 Jul 2011 16:45:34 +0200
|
3
|
-
lib/myexperiment-rest/constants.rb Thu, 29 Sep 2011 16:33:55 +0200
|
4
|
-
README Tue, 07 Feb 2012 15:53:26 +0100
|
5
|
-
lib/myexperiment-rest/user.rb Wed, 28 Sep 2011 12:11:32 +0200
|
6
|
-
lib/myexperiment-rest.rb Mon, 13 Feb 2012 16:25:36 +0100
|
7
|
-
CHANGES Mon, 13 Feb 2012 16:14:27 +0100
|
8
|
-
lib/myexperiment-rest/authentication.rb Mon, 03 Oct 2011 12:20:41 +0200
|
9
|
-
lib/myexperiment-rest/workflow.rb Tue, 07 Feb 2012 16:23:39 +0100
|
data/doc/rdoc/images/brick.png
DELETED
Binary file
|
Binary file
|
data/doc/rdoc/images/bug.png
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/doc/rdoc/images/date.png
DELETED
Binary file
|
data/doc/rdoc/images/find.png
DELETED
Binary file
|
Binary file
|
Binary file
|
data/doc/rdoc/images/package.png
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/doc/rdoc/images/plugin.png
DELETED
Binary file
|
data/doc/rdoc/images/ruby.png
DELETED
Binary file
|
Binary file
|
data/doc/rdoc/images/wrench.png
DELETED
Binary file
|
Binary file
|
data/doc/rdoc/images/zoom.png
DELETED
Binary file
|
data/doc/rdoc/index.html
DELETED
@@ -1,142 +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>myexperiment-rest Docs</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>myexperiment-rest Docs</h1>
|
23
|
-
|
24
|
-
|
25
|
-
<div id="main">
|
26
|
-
|
27
|
-
<table class="rdoc-list"><tr><td class="rdoc-term"><p>Authors</p></td>
|
28
|
-
<td>
|
29
|
-
<p>Konstantinos Karasavvas</p>
|
30
|
-
</td></tr><tr><td class="rdoc-term"><p>Gem Version</p></td>
|
31
|
-
<td>
|
32
|
-
<p>0.3.3</p>
|
33
|
-
</td></tr><tr><td class="rdoc-term"><p>Contact</p></td>
|
34
|
-
<td>
|
35
|
-
<p><a href="mailto:kostas.karasavvas@nbic.nl">kostas.karasavvas@nbic.nl</a></p>
|
36
|
-
</td></tr><tr><td class="rdoc-term"><p>Licence</p></td>
|
37
|
-
<td>
|
38
|
-
<p>MIT (See LICENCE or <a
|
39
|
-
href="http://www.opensource.org/licenses/mit-license">www.opensource.org/licenses/mit-license</a>)</p>
|
40
|
-
</td></tr><tr><td class="rdoc-term"><p>Copyright</p></td>
|
41
|
-
<td>
|
42
|
-
<p>© 2010 Netherlands Bioinformatics Centre, The Netherlands</p>
|
43
|
-
</td></tr></table>
|
44
|
-
|
45
|
-
<h2>Description</h2>
|
46
|
-
|
47
|
-
<p>This is a simple library to access data on myExperiment via its REST API.</p>
|
48
|
-
|
49
|
-
<h2>Features/Problems</h2>
|
50
|
-
|
51
|
-
<p>Only a subset of myExperiment workflow and user data can be currently
|
52
|
-
accessed.</p>
|
53
|
-
|
54
|
-
<h2>Usage</h2>
|
55
|
-
|
56
|
-
<p>There is an example script inside the <tt>bin</tt> directory that
|
57
|
-
demonstrates how you can use the library: $ get_workflow_data.rb.</p>
|
58
|
-
|
59
|
-
<h2>Installation</h2>
|
60
|
-
|
61
|
-
<pre>[sudo] gem install myexperiment-rest</pre>
|
62
|
-
|
63
|
-
<h2>References</h2>
|
64
|
-
<table class="rdoc-list"><tr><td class="rdoc-term"><p>myExperiment</p></td>
|
65
|
-
<td>
|
66
|
-
<p><a href="http://www.myexperiment.org">www.myexperiment.org</a></p>
|
67
|
-
</td></tr></table>
|
68
|
-
|
69
|
-
</div>
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
<h2>Files</h2>
|
75
|
-
<ul>
|
76
|
-
|
77
|
-
<li class="file"><a href="CHANGES.html">CHANGES</a></li>
|
78
|
-
|
79
|
-
<li class="file"><a href="LICENSE.html">LICENSE</a></li>
|
80
|
-
|
81
|
-
<li class="file"><a href="README.html">README</a></li>
|
82
|
-
|
83
|
-
</ul>
|
84
|
-
|
85
|
-
|
86
|
-
<h2 id="classes">Classes/Modules</h2>
|
87
|
-
<ul>
|
88
|
-
|
89
|
-
<li class="module"><a href="MyExperimentREST.html">MyExperimentREST</a></li>
|
90
|
-
|
91
|
-
<li class="class"><a href="MyExperimentREST/MyExperimentIOData.html">MyExperimentREST::MyExperimentIOData</a></li>
|
92
|
-
|
93
|
-
<li class="class"><a href="MyExperimentREST/MyExperimentUser.html">MyExperimentREST::MyExperimentUser</a></li>
|
94
|
-
|
95
|
-
<li class="class"><a href="MyExperimentREST/MyExperimentWorkflow.html">MyExperimentREST::MyExperimentWorkflow</a></li>
|
96
|
-
|
97
|
-
<li class="class"><a href="MyExperimentREST/SessionCookie.html">MyExperimentREST::SessionCookie</a></li>
|
98
|
-
|
99
|
-
<li class="module"><a href="MyExperimentREST/Urls.html">MyExperimentREST::Urls</a></li>
|
100
|
-
|
101
|
-
<li class="class"><a href="MyExperimentREST/User.html">MyExperimentREST::User</a></li>
|
102
|
-
|
103
|
-
<li class="class"><a href="MyExperimentREST/Workflow.html">MyExperimentREST::Workflow</a></li>
|
104
|
-
|
105
|
-
</ul>
|
106
|
-
|
107
|
-
<h2 id="methods">Methods</h2>
|
108
|
-
<ul>
|
109
|
-
|
110
|
-
<li><a href="MyExperimentREST/SessionCookie.html#method-c-create_session_cookie">::create_session_cookie — MyExperimentREST::SessionCookie</a></li>
|
111
|
-
|
112
|
-
<li><a href="MyExperimentREST/User.html#method-c-from_id">::from_id — MyExperimentREST::User</a></li>
|
113
|
-
|
114
|
-
<li><a href="MyExperimentREST/Workflow.html#method-c-from_id_and_version">::from_id_and_version — MyExperimentREST::Workflow</a></li>
|
115
|
-
|
116
|
-
<li><a href="MyExperimentREST/Workflow.html#method-c-from_uri">::from_uri — MyExperimentREST::Workflow</a></li>
|
117
|
-
|
118
|
-
<li><a href="MyExperimentREST/User.html#method-c-from_uri">::from_uri — MyExperimentREST::User</a></li>
|
119
|
-
|
120
|
-
<li><a href="MyExperimentREST/MyExperimentIOData.html#method-c-from_xml">::from_xml — MyExperimentREST::MyExperimentIOData</a></li>
|
121
|
-
|
122
|
-
<li><a href="MyExperimentREST.html#method-c-get_myexperiment_data">::get_myexperiment_data — MyExperimentREST</a></li>
|
123
|
-
|
124
|
-
<li><a href="MyExperimentREST/MyExperimentWorkflow.html#method-c-new">::new — MyExperimentREST::MyExperimentWorkflow</a></li>
|
125
|
-
|
126
|
-
<li><a href="MyExperimentREST/MyExperimentUser.html#method-c-new">::new — MyExperimentREST::MyExperimentUser</a></li>
|
127
|
-
|
128
|
-
<li><a href="MyExperimentREST/MyExperimentIOData.html#method-c-new">::new — MyExperimentREST::MyExperimentIOData</a></li>
|
129
|
-
|
130
|
-
<li><a href="MyExperimentREST/MyExperimentUser.html#method-c-parse">::parse — MyExperimentREST::MyExperimentUser</a></li>
|
131
|
-
|
132
|
-
<li><a href="MyExperimentREST/MyExperimentWorkflow.html#method-c-parse">::parse — MyExperimentREST::MyExperimentWorkflow</a></li>
|
133
|
-
|
134
|
-
</ul>
|
135
|
-
|
136
|
-
<div id="validator-badges">
|
137
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
138
|
-
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
139
|
-
Rdoc Generator</a> 2</small>.</p>
|
140
|
-
</div>
|
141
|
-
</body>
|
142
|
-
</html>
|
data/doc/rdoc/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
|
-
});
|