11page.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>
3915function 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;">
0 commit comments