Skip to content

Commit 574c2cb

Browse files
scottamainAndroid (Google) Code Review
authored andcommitted
Merge "docs: add templated tabs for jb highlights" into jb-mr1-dev
2 parents 64b1211 + 5617b06 commit 574c2cb

File tree

2 files changed

+10
-41
lines changed

2 files changed

+10
-41
lines changed

docs/html/about/versions/jelly-bean.jd

Lines changed: 7 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,21 @@
11
page.title=Jelly Bean
2+
tab1=Android 4.2
3+
tab1.link=#android-42
4+
tab2=Android 4.1
5+
tab2.link=#android-41
6+
27
@jd:body
38

49

510
<style>
6-
h1 {
7-
margin-bottom:0;
8-
}
9-
ul#version-tabs {
10-
list-style:none;
11-
border-bottom: 1px solid #93C;
12-
padding:0;
13-
height:29px;
14-
margin:0 0 20px;
15-
font-size:16px;
16-
line-height:26px;
17-
}
18-
ul#version-tabs li {
19-
display:block;
20-
float:left;
21-
margin-right:60px;
22-
border-bottom: 3px solid transparent;
23-
}
24-
ul#version-tabs li.selected {
25-
border-bottom: 3px solid #93C;
26-
}
27-
ul#version-tabs li a {
28-
color:#333;
29-
}
30-
ul#version-tabs li a:hover,
31-
ul#version-tabs li a:active {
32-
color:#93C !important;
33-
}
34-
3511
#android-41 {display:none;}
3612
</style>
3713

3814
<script>
3915
function revealSection(hashy) {
4016
if (hashy != "" && !$(hashy).is(":visible")) {
4117
sectionId = $(hashy).closest(".version-section").attr("id");
42-
link = $("#version-tabs a[href$="+sectionId+"]");
18+
link = $("#title-tabs a[href$="+sectionId+"]");
4319
link.parent().addClass("selected");
4420
link.parent().siblings().removeClass("selected");
4521

@@ -56,7 +32,7 @@ function revealSection(hashy) {
5632
}
5733

5834
$(document).ready(function() {
59-
$("#version-tabs li a").each(function() {
35+
$("#title-tabs li a").each(function() {
6036
$(this).click(function(){
6137
$(this).parent().addClass("selected");
6238
$(this).parent().siblings().removeClass("selected");
@@ -78,13 +54,6 @@ window.onhashchange = function () {
7854

7955

8056

81-
<ul id="version-tabs">
82-
<li class="selected"><a href="#android-42">Android 4.2</a></li>
83-
<li><a href="#android-41">Android 4.1</a></li>
84-
</ul>
85-
86-
87-
8857
<!-- BEGIN ANDROID 4.2 -->
8958
<div id="android-42" class="version-section">
9059
<div style="float:right;padding:0px 0px 12px 34px;">

docs/html/tools/index.jd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ page.title=Developer Tools
5151
<li>Quickly capture bug reports onto the device.</li>
5252
<li>Show CPU usage on screen.</li>
5353
<li>Draw debugging information on screen such as layout bounds,
54-
updates on GPU views and hardware layers, touch location, and others.</li>
54+
updates on GPU views and hardware layers, and other information.</li>
5555
<li>Plus many more options to simulate app stresses or enable debugging options.</li>
5656
</ul>
57-
<p>To access these on your device, open the <em>Developer options</em> in the
58-
system Settings. Note that on Android 4.2 and higher, the Developer options screen is
57+
<p>To access these settings, open the <em>Developer options</em> in the
58+
system Settings. On Android 4.2 and higher, the Developer options screen is
5959
hidden by default. To make it available, go to
6060
<b>Settings > About phone</b> and tap <b>Build number</b> seven times. Return to the previous
6161
screen to find Developer options.</p>

0 commit comments

Comments
 (0)