OSDN Git Service

docs: changes to sdk page and script for toggles
authorScott Main <smain@google.com>
Tue, 13 Nov 2012 07:03:59 +0000 (23:03 -0800)
committerScott Main <smain@google.com>
Tue, 13 Nov 2012 07:03:59 +0000 (23:03 -0800)
Change-Id: Idef0c6099885cada3a4866ed7b5ec5b6f5078e39

tools/droiddoc/templates-sdk/assets/js/docs.js
tools/droiddoc/templates-sdk/sdkpage.cs

index 54e1fd4..3cdfe1e 100644 (file)
@@ -1065,6 +1065,7 @@ function toggleExpandable(link,id) {
 
 function hideExpandable(ids) {
   $(ids).slideUp();
+  $(ids).prev('h4').find('a.expandable').removeClass('expanded');
 }
 
 
index bbb94c0..305c085 100644 (file)
 <?cs ########  HERE IS THE JD DOC CONTENT FOR ONLINE ######### ?>
 <?cs call:tag_list(root.descr) ?>
 
-<div class="wrap">
-<div class="pax col-13 online" style="display:none">
 
 
 
+<h4><a href='' class="expandable"
+  onclick="toggleExpandable(this,'.pax');hideExpandable('.myide,.reqs');return false;"
+  >DOWNLOAD FOR OTHER PLATFORMS</a></h4>
+  
+  
+<div class="pax col-13 online" style="display:none;margin:0;">
 
+  
 <p class="table-caption"><strong>ADT Bundle</strong></p>
   <table class="download">
     <tr>
@@ -230,13 +235,21 @@ var:sdk.linux_download
   </tr>
   </table>
 
+</div><!-- end pax -->
 
 
+
+</div><!-- end col-13 for lower-half content -->
   
   
   
   
 <script>
+  if (location.hash == "#Requirements") {
+    $('.reqs').show();
+  } else if (location.hash == "#ExistingIDE") {
+        $('.ide').show();
+  }
 
   var os;
   var $bundlelink;
@@ -322,8 +335,6 @@ var:sdk.linux_download
 
 </script>
 
-</div><!-- end pax -->
-</div><!-- end wrap -->
 
 
 </div><!-- end the wrapper used for relative/absolute positions  -->