docs: changes to sdk page and script for toggles

Change-Id: Idef0c6099885cada3a4866ed7b5ec5b6f5078e39
This commit is contained in:
Scott Main
2012-11-12 23:03:59 -08:00
parent 8fa7222241
commit 55d99832fd
2 changed files with 16 additions and 4 deletions

View File

@@ -1065,6 +1065,7 @@ function toggleExpandable(link,id) {
function hideExpandable(ids) { function hideExpandable(ids) {
$(ids).slideUp(); $(ids).slideUp();
$(ids).prev('h4').find('a.expandable').removeClass('expanded');
} }

View File

@@ -137,12 +137,17 @@
<?cs ######## HERE IS THE JD DOC CONTENT FOR ONLINE ######### ?> <?cs ######## HERE IS THE JD DOC CONTENT FOR ONLINE ######### ?>
<?cs call:tag_list(root.descr) ?> <?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> <p class="table-caption"><strong>ADT Bundle</strong></p>
<table class="download"> <table class="download">
<tr> <tr>
@@ -230,13 +235,21 @@ var:sdk.linux_download
</tr> </tr>
</table> </table>
</div><!-- end pax -->
</div><!-- end col-13 for lower-half content -->
<script> <script>
if (location.hash == "#Requirements") {
$('.reqs').show();
} else if (location.hash == "#ExistingIDE") {
$('.ide').show();
}
var os; var os;
var $bundlelink; var $bundlelink;
@@ -322,8 +335,6 @@ var:sdk.linux_download
</script> </script>
</div><!-- end pax -->
</div><!-- end wrap -->
</div><!-- end the wrapper used for relative/absolute positions --> </div><!-- end the wrapper used for relative/absolute positions -->