File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,24 @@ <h2>Default</h2>
84
84
< div id ='tab-3 '> < h3 > Tab 3</ h3 > </ div >
85
85
</ div >
86
86
</ article >
87
+ < article >
88
+ < h2 > Active</ h2 >
89
+ < pre data-language ="javascript ">
90
+ $('.tabs').tabslet({
91
+ active: 2
92
+ });
93
+ </ pre >
94
+ < div class ='tabs tabs_active '>
95
+ < ul class ='horizontal '>
96
+ < li > < a href ="#tab-1 "> tab</ a > </ li >
97
+ < li > < a href ="#tab-2 "> information</ a > </ li >
98
+ < li > < a href ="#tab-3 "> tab</ a > </ li >
99
+ </ ul >
100
+ < div id ='tab-1 '> < h3 > Tab 1</ h3 > </ div >
101
+ < div id ='tab-2 '> < h3 > The second tab is active when page loads.</ h3 > </ div >
102
+ < div id ='tab-3 '> < h3 > Tab 3</ h3 > </ div >
103
+ </ div >
104
+ </ article >
87
105
< article >
88
106
< h2 > Hover</ h2 >
89
107
< pre data-language ="javascript ">
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ $(document).ready(function() {
5
5
6
6
$ ( '.tabs_default' ) . tabslet ( ) ;
7
7
8
+ $ ( '.tabs_active' ) . tabslet ( {
9
+ active : 2
10
+ } ) ;
11
+
8
12
$ ( '.tabs_hover' ) . tabslet ( {
9
13
mouseevent : 'hover' ,
10
14
attribute : 'href' ,
You can’t perform that action at this time.
0 commit comments