Messed around with API document: Improved layout, removed animation, added <Content> type

This commit is contained in:
Jörn Zaefferer 2007-01-02 19:05:00 +00:00
parent ca438a718a
commit bb816b9c95
4 changed files with 9 additions and 10 deletions

View file

@ -8,7 +8,8 @@ var types = {
"Array&lt;Element&gt;": "An Array of DOM Elements.", "Array&lt;Element&gt;": "An Array of DOM Elements.",
"Array&lt;String&gt;": "An Array of strings.", "Array&lt;String&gt;": "An Array of strings.",
Function: "A reference to a Javascript function.", Function: "A reference to a Javascript function.",
XMLHttpRequest: "An XMLHttpRequest object (referencing a HTTP request)." XMLHttpRequest: "An XMLHttpRequest object (referencing a HTTP request).",
"&lt;Content&gt;": "A String (to generate HTML on-the-fly), a DOM Element, an Array of DOM Elements or a jQuery object"
}; };
$(document).ready(function(){ $(document).ready(function(){
@ -18,7 +19,7 @@ $(document).ready(function(){
}).ToolTipDemo('#fff'); }).ToolTipDemo('#fff');
$("a.name").click(function(){ $("a.name").click(function(){
$("div.more,div.short",this.parentNode.parentNode).toggle('slow'); $("div.more,div.short",this.parentNode.parentNode).toggle();
return false; return false;
}); });

View file

@ -102,7 +102,7 @@ $.fn.pager = function(step) {
.addClass("cur"); .addClass("cur");
pagedUI.empty().append( pagedUI.empty().append(
jQuery.merge( rows, [] ).slice( s, s + e ) jQuery.makeArray( rows ).slice( s, s + e )
); );
return false; return false;

View file

@ -31,7 +31,7 @@
</xsl:if> </xsl:if>
</xsl:for-each> </xsl:for-each>
)</xsl:if> )</xsl:if>
</span> </span> returns <span class='tooltip'><xsl:value-of select="@type"/></span>
<div class='short'> <div class='short'>
<xsl:value-of select="@short"/> <xsl:value-of select="@short"/>
</div> </div>

View file

@ -55,7 +55,7 @@ ul.nav-page li.next a, ul.nav-page li.prev a {
ul#docs { ul#docs {
list-style: none; list-style: none;
margin: 0 auto; margin: 0 auto;
padding: 5px; padding: 8px;
width: 600px; width: 600px;
background: #FFF; background: #FFF;
text-align: left; text-align: left;
@ -76,7 +76,7 @@ ul#docs li a.name {
} }
ul#docs li span.type { ul#docs li span.type {
display: block; display: none;
float: left; float: left;
color: #666; color: #666;
width: 100px; width: 100px;
@ -94,9 +94,8 @@ ul#docs li span.arg-type {
ul#docs li div.short { ul#docs li div.short {
font-size: 12px; font-size: 12px;
color: #666; color: #666;
margin-left: 110px; margin-left: 10px;
margin-top: 5px; margin-top: 5px;
width: 490px;
} }
ul#docs span.fn { ul#docs span.fn {
@ -110,9 +109,8 @@ ul#docs div.tooltipdemo {
ul#docs li div.more { ul#docs li div.more {
display: none; display: none;
margin-left: 110px; margin-left: 10px;
margin-top: 5px; margin-top: 5px;
width: 490px;
} }
ul#docs li div.example { ul#docs li div.example {