8a144f0d0272dcc64d58f49d62b9cd11865656de
[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<Element>": "An Array of DOM Elements.",
9         "Array<String>": "An Array of strings.",
10         Function: "A reference to a Javascript function.",
11         XMLHttpRequest: "An XMLHttpRequest object (referencing a HTTP request)."
12 };
13
14 $(document).ready(function(){
15         $("span.tooltip").each(function(){
16                 if ( types[ this.innerHTML ] )
17                         this.title = types[ this.innerHTML ];
18         }).ToolTipDemo('#fff');
19
20         $("a.name").click(function(){
21                 $("div.more,div.short",this.parentNode.parentNode).toggle('slow');
22                 return false;
23         });
24         
25         $("#docs").alphaPager(function(a){
26                 return $.fn.text.apply( [a.getElementsByTagName("span")[2]] ).replace(/^\$\./,"").substr(0,1).toUpperCase();
27         });
28 });