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