Skip to content

Commit 0787db6

Browse files
committed
restructuring the test folder for tabs/slideshow
1 parent 12f70d5 commit 0787db6

File tree

14 files changed

+111
-467
lines changed

14 files changed

+111
-467
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,33 @@
11

2-
<script src="../../../jquery-1.3.2.js"></script>
3-
<script src="../tools.tabs.js"></script>
4-
<link rel="stylesheet" type="text/css" href="horizontal.css"/>
5-
6-
7-
<script>
8-
$(function() {
9-
10-
$("#accordion").tabs("#accordion div", {
11-
tabs: 'img',
12-
effect: 'horizontal'
13-
});
14-
15-
});
16-
</script>
17-
2+
<script src="../js/jquery-1.4.2.js"></script>
3+
<script src="../../src/tabs/tabs.js"></script>
4+
<link rel="stylesheet" type="text/css" href="css/horizontal.css"/>
185

196
<!-- accordion root -->
207
<div id="accordion">
218

229
<!-- accordion header #1 -->
23-
<img src="${cdn}/img/title/streaminge.png" />
10+
<div class="blok"></div>
2411

25-
<div style="width:200px; display:block">
12+
<div class="pane" style="width:200px; display:block">
2613
<h3>First pane</h3>
2714
<p>
2815
Consectetur adipiscing elit. Praesent bibendum eros ac nulla. Integer vel lacus ac neque viverra.
2916
</p>
3017
</div>
3118

32-
<img src="${cdn}/img/title/flash.png" />
19+
<div class="blok"></div>
3320

34-
<div>
21+
<div class="pane">
3522
<h3>Second pane</h3>
3623
<p>
3724
Cras diam. Donec dolor lacus, vestibulum at, varius in, mollis id, dolor. Aliquam erat volutpat.
3825
</p>
3926
</div>
4027

41-
<img src="${cdn}/img/title/streaming.png" />
28+
<div class="blok"></div>
4229

43-
<div>
30+
<div class="pane">
4431
<h3>Third pane</h3>
4532
<p>
4633
Non lectus lacinia egestas. Nulla hendrerit, felis quis elementum viverra, purus felis egestas magna.
@@ -49,3 +36,7 @@ <h3>Third pane</h3>
4936

5037
</div>
5138

39+
40+
<script>
41+
$("#accordion").tabs(".pane", { tabs: '.blok', effect: 'horizontal'});
42+
</script>

test/tabs/ajax.html

Lines changed: 0 additions & 68 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,43 @@
11

2+
23
/* root element for accordion. decorated with rounded borders and gradient background image */
34
#accordion {
4-
background:#FFFFFF url(/img/global/gradient/h150.png) repeat scroll 0;
55
height:80px;
66
padding:10px 0 10px 20px;
77
width:560px;
88
border:1px solid #ddd;
99
}
1010

11-
/* accordion header */
12-
#accordion img {
11+
12+
.blok {
13+
background-color:#234;
14+
width:50px;
15+
height:50px;
1316
float:left;
1417
margin-right:10px;
1518
cursor:pointer;
16-
opacity:0.5;
17-
filter: alpha(opacity=50);
18-
}
19-
20-
/* currently active header */
21-
#accordion img.current {
22-
cursor:default;
23-
opacity:1;
24-
filter: alpha(opacity=100);
2519
}
2620

2721
/*
2822
accordion pane. should initially have zero width and display:none.
2923
the first pane should override these with inline style
3024
*/
31-
#accordion div {
25+
.pane {
3226
width:0px;
3327
float:left;
3428
display:none;
3529
margin-right:10px;
3630
}
3731

3832
/* content inside a pane should have fixed width */
39-
#accordion div h3 {
33+
.pane h3 {
4034
color:#444;
4135
margin:0 0 -10px 0;
4236
width:190px;
4337
font-size:15px;
4438
}
4539

46-
#accordion div p {
40+
.pane p {
4741
font-size:11px;
4842
width:190px;
4943
}
Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,29 @@
11

2+
body {
3+
margin:100px auto;
4+
font-family:sans-serif;
5+
width:800px;
6+
font-size:12px;
7+
}
8+
29
/* root element for tabs */
3-
.css-tabs {
10+
.tabs {
411
margin:0 !important;
512
padding:0;
613
height:28px;
714
border-bottom:1px solid #666;
815
}
916

1017
/* single tab */
11-
.css-tabs li {
18+
.tabs li {
1219
float:left;
1320
padding:0;
1421
margin:0;
1522
list-style-type:none;
1623
}
1724

1825
/* link inside the tab. uses a background image */
19-
.css-tabs a {
26+
.tabs a {
2027
float:left;
2128
display:block;
2229
padding:5px 30px;
@@ -32,13 +39,13 @@
3239
-moz-border-radius:4px 4px 0 0;
3340
}
3441

35-
.css-tabs a:hover {
42+
.tabs a:hover {
3643
background-color:#F7F7F7;
3744
color:#333;
3845
}
3946

4047
/* selected tab */
41-
.css-tabs a.current {
48+
.tabs a.current {
4249
background-color:#ddd;
4350
border-bottom:2px solid #ddd;
4451
color:#000;

test/tabs/index.html

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,20 @@
11

22
<script src="../js/jquery-1.4.2.js"></script>
33
<script src="../../src/tabs/tabs.js"></script>
4-
<link rel="stylesheet" type="text/css" href="../tabs/tabs.css"/>
4+
<link rel="stylesheet" type="text/css" href="css/tabs.css"/>
55

6-
<style>
7-
body {
8-
margin:100px;
9-
font-family:sans-serif;
10-
width:800px;
11-
font-size:12px;
12-
}
13-
</style>
146

157
<!-- tabs -->
16-
<ul class="css-tabs">
8+
<ul class="tabs">
179
<li><a href="#1">Tab 1</a></li>
1810
<li><a href="#2">Second tab</a></li>
1911
<li><a href="#3">A ultra long third tab</a></li>
2012
</ul>
2113

2214
<!-- panes -->
23-
<div class="css-panes">
15+
<div class="panes">
2416

25-
<div style="display:block">
17+
<div class="pane" style="display:block">
2618
<p>
2719
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis viverra, leo sit amet auctor fermentum, risus lorem posuere tortor, in accumsan purus magna imperdiet sem.
2820
</p>
@@ -32,7 +24,7 @@
3224
</p>
3325
</div>
3426

35-
<div>
27+
<div class="pane">
3628
<p>
3729
Mauris ultricies. Nam feugiat egestas nulla. Donec augue dui, molestie sed, tristique sit amet, blandit eu, turpis. Mauris hendrerit, nisi et sodales tempor, orci tellus laoreet elit, sed molestie dui quam vitae dui.
3830
</p>
@@ -41,7 +33,7 @@
4133
</p>
4234
</div>
4335

44-
<div>
36+
<div class="pane">
4537
<p>
4638
Maecenas at odio. Nunc laoreet lectus vel ante. Nullam imperdiet. Sed justo dolor, mattis eu, euismod sed, tempus a, nisl. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
4739
</p>
@@ -54,7 +46,7 @@
5446

5547

5648
<script>
57-
$(".css-tabs").tabs(".css-panes > div");
49+
$(".tabs").tabs(".pane");
5850
</script>
5951

6052

test/tabs/lazyload/1.htm

Lines changed: 0 additions & 10 deletions
This file was deleted.

test/tabs/lazyload/2.htm

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/tabs/lazyload/3.htm

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)