1
|
<!DOCTYPE html>
|
2
|
<html class="no-js" lang="en">
|
3
|
<head>
|
4
|
<meta content="charset=utf-8">
|
5
|
<title>FlexSlider 2</title>
|
6
|
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
7
|
|
8
|
|
9
|
<link href="css/shCore.css" rel="stylesheet" type="text/css" />
|
10
|
<link href="css/shThemeDefault.css" rel="stylesheet" type="text/css" />
|
11
|
|
12
|
<link rel="stylesheet" href="css/demo.css" type="text/css" media="screen" />
|
13
|
<link rel="stylesheet" href="../flexslider.css" type="text/css" media="screen" />
|
14
|
|
15
|
|
16
|
<script src="js/modernizr.js"></script>
|
17
|
|
18
|
<style>
|
19
|
.flexslider {
|
20
|
margin-bottom: 10px;
|
21
|
}
|
22
|
|
23
|
.flex-control-nav {
|
24
|
position: relative;
|
25
|
bottom: auto;
|
26
|
}
|
27
|
|
28
|
.custom-navigation {
|
29
|
display: table;
|
30
|
width: 100%;
|
31
|
table-layout: fixed;
|
32
|
}
|
33
|
|
34
|
.custom-navigation > * {
|
35
|
display: table-cell;
|
36
|
}
|
37
|
|
38
|
.custom-navigation > a {
|
39
|
width: 50px;
|
40
|
}
|
41
|
|
42
|
.custom-navigation .flex-next {
|
43
|
text-align: right;
|
44
|
}
|
45
|
</style>
|
46
|
|
47
|
</head>
|
48
|
<body class="loading">
|
49
|
|
50
|
<div id="container" class="cf">
|
51
|
<header role="navigation">
|
52
|
<a class="logo" href="http://www.woothemes.com" title="WooThemes">
|
53
|
<img src="images/logo.png" alt="WooThemes" />
|
54
|
</a>
|
55
|
<h1>FlexSlider 2</h1>
|
56
|
<h2>The best responsive slider. Period.</h2>
|
57
|
<a class="button green" href="https://github.com/woothemes/FlexSlider/zipball/master">Download Flexslider</a>
|
58
|
<h3 class="nav-header">Other Examples</h3>
|
59
|
<nav>
|
60
|
<ul>
|
61
|
<li><a href="index.html">Basic Slider</a></li>
|
62
|
<li class="active"><a href="basic-slider-with-custom-direction-nav.html">Basic Slider customDirectionNav</a></li>
|
63
|
<li><a href="basic-slider-with-caption.html">Basic Slider with Simple Caption</a></li>
|
64
|
<li><a href="thumbnail-controlnav.html">Slider w/thumbnail controlNav pattern</a></li>
|
65
|
<li><a href="thumbnail-slider.html">Slider w/thumbnail slider</a></li>
|
66
|
<li><a href="basic-carousel.html">Basic Carousel</a></li>
|
67
|
<li><a href="carousel-min-max.html">Carousel with min and max ranges</a></li>
|
68
|
<li><a href="dynamic-carousel-min-max.html">Carousel with dynamic min/max ranges</a></li>
|
69
|
<li><a href="video.html">Video & the api (vimeo)</a></li>
|
70
|
<li><a href="video-wistia.html">Video & the api (wistia)</a></li>
|
71
|
</ul>
|
72
|
</nav>
|
73
|
</header>
|
74
|
|
75
|
<div id="main" role="main">
|
76
|
|
77
|
<section class="slider">
|
78
|
<div class="flexslider">
|
79
|
<ul class="slides">
|
80
|
<li>
|
81
|
<img src="images/kitchen_adventurer_cheesecake_brownie.jpg" />
|
82
|
</li>
|
83
|
<li>
|
84
|
<img src="images/kitchen_adventurer_lemon.jpg" />
|
85
|
</li>
|
86
|
<li>
|
87
|
<img src="images/kitchen_adventurer_donut.jpg" />
|
88
|
</li>
|
89
|
<li>
|
90
|
<img src="images/kitchen_adventurer_caramel.jpg" />
|
91
|
</li>
|
92
|
</ul>
|
93
|
</div>
|
94
|
<div class="custom-navigation">
|
95
|
<a href="#" class="flex-prev">Prev</a>
|
96
|
<div class="custom-controls-container"></div>
|
97
|
<a href="#" class="flex-next">Next</a>
|
98
|
</div>
|
99
|
</section>
|
100
|
|
101
|
<aside>
|
102
|
<div class="cf">
|
103
|
<h3>Basic Slider</h3>
|
104
|
<ul class="toggle cf">
|
105
|
<li class="js"><a href="#view-js">JS</a></li>
|
106
|
<li class="html"><a href="#view-html">HTML</a></li>
|
107
|
</ul>
|
108
|
</div>
|
109
|
<div id="view-js" class="code">
|
110
|
<pre class="brush: js; toolbar: false; gutter: false;">
|
111
|
// Can also be used with $(document).ready()
|
112
|
$(window).load(function() {
|
113
|
$('.flexslider').flexslider({
|
114
|
animation: "slide",
|
115
|
controlsContainer: $(".custom-controls-container"),
|
116
|
customDirectionNav: $(".custom-navigation a")
|
117
|
});
|
118
|
});
|
119
|
</pre>
|
120
|
</div>
|
121
|
<div id="view-html" class="code">
|
122
|
<pre class="brush: xml; toolbar: false; gutter: false;">
|
123
|
<!-- Place somewhere in the <body> of your page -->
|
124
|
<div class="flexslider">
|
125
|
<ul class="slides">
|
126
|
<li>
|
127
|
<img src="slide1.jpg" />
|
128
|
</li>
|
129
|
<li>
|
130
|
<img src="slide2.jpg" />
|
131
|
</li>
|
132
|
<li>
|
133
|
<img src="slide3.jpg" />
|
134
|
</li>
|
135
|
<li>
|
136
|
<img src="slide4.jpg" />
|
137
|
</li>
|
138
|
</ul>
|
139
|
</div>
|
140
|
<div class="custom-navigation">
|
141
|
<a href="#" class="flex-prev">Prev</a>
|
142
|
<div class="custom-controls-container"></div>
|
143
|
<a href="#" class="flex-next">Next</a>
|
144
|
</div>
|
145
|
</pre>
|
146
|
</div>
|
147
|
</aside>
|
148
|
</div>
|
149
|
|
150
|
</div>
|
151
|
|
152
|
|
153
|
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
|
154
|
<script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.min.js">\x3C/script>')</script>
|
155
|
|
156
|
|
157
|
<script defer src="../jquery.flexslider.js"></script>
|
158
|
|
159
|
<script type="text/javascript">
|
160
|
$(function(){
|
161
|
SyntaxHighlighter.all();
|
162
|
});
|
163
|
$(window).load(function(){
|
164
|
$('.flexslider').flexslider({
|
165
|
animation: "slide",
|
166
|
controlsContainer: $(".custom-controls-container"),
|
167
|
customDirectionNav: $(".custom-navigation a"),
|
168
|
start: function(slider){
|
169
|
$('body').removeClass('loading');
|
170
|
}
|
171
|
});
|
172
|
});
|
173
|
</script>
|
174
|
|
175
|
|
176
|
|
177
|
<script type="text/javascript" src="js/shCore.js"></script>
|
178
|
<script type="text/javascript" src="js/shBrushXml.js"></script>
|
179
|
<script type="text/javascript" src="js/shBrushJScript.js"></script>
|
180
|
|
181
|
|
182
|
<script src="js/jquery.easing.js"></script>
|
183
|
<script src="js/jquery.mousewheel.js"></script>
|
184
|
<script defer src="js/demo.js"></script>
|
185
|
|
186
|
</body>
|
187
|
</html>
|