Messed around with API document: Improved layout, removed animation, added <Content...
[jquery.git] / build / docs / js / doc.js
1 var types = {
2         jQuery: "A jQuery object.",
3         Object: "A simple Javascript object. For example, it could be a String or a Number.",
4         String: "A string of characters.",
5         Number: "A numeric valid.",
6         Element: "The Javascript object representation of a DOM Element.",
7         Hash: "A Javascript object that contains key/value pairs in the form of properties and values.",
8         "Array&lt;Element&gt;": "An Array of DOM Elements.",
9         "Array&lt;String&gt;": "An Array of strings.",
10         Function: "A reference to a Javascript function.",
11         XMLHttpRequest: "An XMLHttpRequest object (referencing a HTTP request).",
12         "&lt;Content&gt;": "A String (to generate HTML on-the-fly), a DOM Element, an Array of DOM Elements or a jQuery object"
13 };
14
15 $(document).ready(function(){
16         $("span.tooltip").each(function(){
17                 if ( types[ this.innerHTML ] )
18                         this.title = types[ this.innerHTML ];
19         }).ToolTipDemo('#fff');
20
21         $("a.name").click(function(){
22                 $("div.more,div.short",this.parentNode.parentNode).toggle();
23                 return false;
24         });
25         
26         $("#docs").alphaPager(function(a){
27                 return $.fn.text.apply( [a.getElementsByTagName("span")[2]] ).replace(/^\$\./,"").substr(0,1).toUpperCase();
28         });
29 });