summaryrefslogtreecommitdiff
path: root/resources/ScalaReference.js
diff options
context:
space:
mode:
authorIain McGinniss <iainmcgin@gmail.com>2012-10-26 22:53:29 +0100
committerIain McGinniss <iainmcgin@gmail.com>2012-10-26 22:53:29 +0100
commitbb53357a77105d4c01cc0c7566497f05a7620878 (patch)
tree173585aa52d94951d3d43f002f9d57526f7da966 /resources/ScalaReference.js
parent3340862f0140b7f70dbea250a60fc4e2f41ff01b (diff)
downloadscala-bb53357a77105d4c01cc0c7566497f05a7620878.tar.gz
scala-bb53357a77105d4c01cc0c7566497f05a7620878.tar.bz2
scala-bb53357a77105d4c01cc0c7566497f05a7620878.zip
types chapter fully converted. Added link to jquery and some experimental
code for a fixed pop-out version of the table of contents, which is currently disabled.
Diffstat (limited to 'resources/ScalaReference.js')
-rw-r--r--resources/ScalaReference.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/resources/ScalaReference.js b/resources/ScalaReference.js
new file mode 100644
index 0000000000..51be0cf05b
--- /dev/null
+++ b/resources/ScalaReference.js
@@ -0,0 +1,20 @@
+$(function() {
+
+ var popoutTOC = $('<div>');
+ popoutTOC.attr('id', 'popoutTOC');
+
+ var popoutTOChead = $('<span class="head">Jump to...</span>');
+ popoutTOChead.appendTo(popoutTOC);
+
+ var content = $('<div class="links">');
+ $('#TOC > *').clone().appendTo(content);
+ content.appendTo(popoutTOC);
+ var enter = function() { content.css('display', 'block') };
+ var exit = function() { content.css('display', 'none') };
+
+ popoutTOC.hover(enter, exit);
+
+ // disabled for now, until better styled
+ // popoutTOC.appendTo($('body'));
+
+}) \ No newline at end of file