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+ <!-- Syntax Highlighter -->
9+ < link href ="css/shCore.css " rel ="stylesheet " type ="text/css " />
10+ < link href ="css/shThemeDefault.css " rel ="stylesheet " type ="text/css " />
11+ <!-- Demo CSS -->
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+ < link rel ="stylesheet " href ="../flexslider-rtl.css " type ="text/css " media ="screen " />
15+ <!-- Modernizr -->
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 > < 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+ < h3 class ="nav-header "> RTL Examples</ h3 >
62+ < nav >
63+ < ul >
64+ < li > < a href ="index-rtl.html "> Basic Slider</ a > </ li >
65+ < li class ="active "> < a href ="asnavfor-rtl.html "> Slider with Simple Caption w/thumbnail slider</ a > </ li >
66+ < li > < a href ="basic-carousel-rtl.html "> Basic Carousel</ a > </ li >
67+ </ ul >
68+ </ nav >
69+ </ header >
70+
71+ < div id ="main " role ="main ">
72+ < section class ="slider ">
73+ < div class ="flexslider " id ="f1 " style ="direction:rtl ">
74+ < ul class ="slides ">
75+ < li >
76+ < img src ="images/kitchen_adventurer_cheesecake_brownie.jpg " />
77+ < p class ="flex-caption "> Adventurer Cheesecake Brownie</ p >
78+ </ li >
79+ < li >
80+ < img src ="images/kitchen_adventurer_lemon.jpg " />
81+ < p class ="flex-caption "> Adventurer Lemon</ p >
82+ </ li >
83+ < li >
84+ < img src ="images/kitchen_adventurer_donut.jpg " />
85+ < p class ="flex-caption "> Adventurer Donut</ p >
86+ </ li >
87+ < li >
88+ < img src ="images/kitchen_adventurer_caramel.jpg " />
89+ < p class ="flex-caption "> Adventurer Caramel</ p >
90+ </ li >
91+ < li >
92+ < img src ="images/kitchen_adventurer_cheesecake_brownie.jpg " />
93+ < p class ="flex-caption "> Adventurer Cheesecake Brownie</ p >
94+ </ li >
95+ < li >
96+ < img src ="images/kitchen_adventurer_lemon.jpg " />
97+ < p class ="flex-caption "> Adventurer Lemon</ p >
98+ </ li >
99+ < li >
100+ < img src ="images/kitchen_adventurer_donut.jpg " />
101+ < p class ="flex-caption "> Adventurer Donut</ p >
102+ </ li >
103+ < li >
104+ < img src ="images/kitchen_adventurer_caramel.jpg " />
105+ < p class ="flex-caption "> Adventurer Caramel</ p >
106+ </ li >
107+ < li >
108+ < img src ="images/kitchen_adventurer_cheesecake_brownie.jpg " />
109+ < p class ="flex-caption "> Adventurer Cheesecake Brownie</ p >
110+ </ li >
111+ < li >
112+ < img src ="images/kitchen_adventurer_lemon.jpg " />
113+ < p class ="flex-caption "> Adventurer Lemon</ p >
114+ </ li >
115+ < li >
116+ < img src ="images/kitchen_adventurer_donut.jpg " />
117+ < p class ="flex-caption "> Adventurer Donut</ p >
118+ </ li >
119+ < li >
120+ < img src ="images/kitchen_adventurer_caramel.jpg " />
121+ < p class ="flex-caption "> Adventurer Caramel</ p >
122+ </ li >
123+ </ ul >
124+ </ div >
125+ < div class ="flexslider carousel " id ="f2 " style ="direction:rtl ">
126+ < ul class ="slides ">
127+ < li >
128+ < img src ="images/kitchen_adventurer_cheesecake_brownie.jpg " />
129+ </ li >
130+ < li >
131+ < img src ="images/kitchen_adventurer_lemon.jpg " />
132+ </ li >
133+ < li >
134+ < img src ="images/kitchen_adventurer_donut.jpg " />
135+ </ li >
136+ < li >
137+ < img src ="images/kitchen_adventurer_caramel.jpg " />
138+ </ li >
139+ < li >
140+ < img src ="images/kitchen_adventurer_cheesecake_brownie.jpg " />
141+ </ li >
142+ < li >
143+ < img src ="images/kitchen_adventurer_lemon.jpg " />
144+ </ li >
145+ < li >
146+ < img src ="images/kitchen_adventurer_donut.jpg " />
147+ </ li >
148+ < li >
149+ < img src ="images/kitchen_adventurer_caramel.jpg " />
150+ </ li >
151+ < li >
152+ < img src ="images/kitchen_adventurer_cheesecake_brownie.jpg " />
153+ </ li >
154+ < li >
155+ < img src ="images/kitchen_adventurer_lemon.jpg " />
156+ </ li >
157+ < li >
158+ < img src ="images/kitchen_adventurer_donut.jpg " />
159+ </ li >
160+ < li >
161+ < img src ="images/kitchen_adventurer_caramel.jpg " />
162+ </ li >
163+ </ ul >
164+ </ div >
165+ </ section >
166+ < aside >
167+ < div class ="cf ">
168+ < h3 > Slider with Carousel Slider as Navigation - RTL</ h3 >
169+ < ul class ="toggle cf ">
170+ < li class ="js "> < a href ="#view-js "> JS</ a > </ li >
171+ < li class ="css "> < a href ="#view-css "> CSS</ a > </ li >
172+ < li class ="html "> < a href ="#view-html "> HTML</ a > </ li >
173+ </ ul >
174+ </ div >
175+ < div id ="view-js " class ="code ">
176+ < pre class ="brush: js; toolbar: false; gutter: false; ">
177+ // Can also be used with $(document).ready()
178+ $(window).load(function(){
179+ $('#f1').flexslider({
180+ animation: "slide",
181+ rtl: true,
182+ start: function(slider){
183+ $('body').removeClass('loading');
184+ }
185+ });
186+ $('#f2').flexslider({
187+ animation: "slide",
188+ animationLoop: false,
189+ itemWidth: 210,
190+ itemMargin: 5,
191+ pausePlay: true,
192+ mousewheel: true,
193+ rtl: true,
194+ asNavFor:'.flexslider'
195+ });
196+ });
197+ </ pre >
198+ </ div >
199+ < div id ="view-css " class ="code ">
200+ < pre class ="brush: xml; toolbar: false; gutter: false; ">
201+ <!-- Place either at the bottom in the <head> of your page or inside your CSS -->
202+ <style type="text/css">
203+ .flex-caption {
204+ width: 96%;
205+ padding: 2%;
206+ left: 0;
207+ bottom: 0;
208+ background: rgba(0,0,0,.5);
209+ color: #fff;
210+ text-shadow: 0 -1px 0 rgba(0,0,0,.3);
211+ font-size: 14px;
212+ line-height: 18px;
213+ }
214+ li.css a {
215+ border-radius: 0;
216+ }
217+ </style>
218+ </ pre >
219+ </ div >
220+ < div id ="view-html " class ="code ">
221+ < pre class ="brush: xml; toolbar: false; gutter: false; ">
222+ <!-- Place somewhere in the <body> of your page -->
223+ <div class="flexslider" id="f1" style="direction:rtl">
224+ <ul class="slides">
225+ <li>
226+ <img src="slide1.jpg" />
227+ <p class="flex-caption"> Adventurer Cheesecake Brownie</p>
228+ </li>
229+ <li>
230+ <img src="slide2.jpg" />
231+ <p class="flex-caption"> Adventurer Lemon</p>
232+ </li>
233+ <li>
234+ <img src="slide3.jpg" />
235+ <p class="flex-caption"> Adventurer Donut</p>
236+ </li>
237+ <li>
238+ <img src="slide4.jpg" />
239+ <p class="flex-caption"> Adventurer Caramel</p>
240+ </li>
241+ </ul>
242+ </div>
243+ <div class="flexslider carousel" id="f2" style="direction:rtl">
244+ <ul class="slides">
245+ <li>
246+ <img src="slide1.jpg" />
247+ </li>
248+ <li>
249+ <img src="slide2.jpg" />
250+ </li>
251+ <li>
252+ <img src="slide3.jpg" />
253+ </li>
254+ <li>
255+ <img src="slide4.jpg" />
256+ </li>
257+ </ul>
258+ </div>
259+ </ pre >
260+ </ div >
261+ </ aside >
262+ </ div >
263+
264+ </ div >
265+
266+ <!-- jQuery -->
267+ < script src ="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js "> </ script >
268+ < script > window . jQuery || document . write ( '<script src="js/libs/jquery-1.7.min.js">\x3C/script>' ) </ script >
269+
270+ <!-- FlexSlider -->
271+ < script defer src ="../jquery.flexslider.js "> </ script >
272+
273+ < script type ="text/javascript ">
274+ $ ( function ( ) {
275+ SyntaxHighlighter . all ( ) ;
276+ } ) ;
277+ $ ( window ) . load ( function ( ) {
278+ $ ( '#f1' ) . flexslider ( {
279+ animation : "slide" ,
280+ rtl : true ,
281+ start : function ( slider ) {
282+ $ ( 'body' ) . removeClass ( 'loading' ) ;
283+ }
284+ } ) ;
285+ $ ( '#f2' ) . flexslider ( {
286+ animation : "slide" ,
287+ animationLoop : false ,
288+ itemWidth : 210 ,
289+ itemMargin : 5 ,
290+ pausePlay : true ,
291+ mousewheel : true ,
292+ rtl : true ,
293+ asNavFor :'.flexslider'
294+ } ) ;
295+ } ) ;
296+ </ script >
297+
298+
299+ <!-- Syntax Highlighter -->
300+ < script type ="text/javascript " src ="js/shCore.js "> </ script >
301+ < script type ="text/javascript " src ="js/shBrushXml.js "> </ script >
302+ < script type ="text/javascript " src ="js/shBrushJScript.js "> </ script >
303+
304+ <!-- Optional FlexSlider Additions -->
305+ < script src ="js/jquery.easing.js "> </ script >
306+ < script src ="js/jquery.mousewheel.js "> </ script >
307+ < script defer src ="js/demo.js "> </ script >
308+
309+ </ body >
310+ </ html >
0 commit comments