Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit d7de3bd

Browse files
committed
Merge pull request #799 from woothemes/release-2-2-0
Release 2.2.0
2 parents a4647ed + c194370 commit d7de3bd

24 files changed

Lines changed: 1334 additions & 937 deletions

README.mdown

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
# FlexSlider 2
22
http://www.woothemes.com/flexslider/ - Copyright (c) 2012 WooThemes
33

4-
Documentation guides for properties and theming are coming soon. Shortly thereafter, the download builder will be released, where you can create minified FlexSlider scripts that contain only the properties you need. It's a brave new world.
4+
## Updates
5+
6+
** Version 2.2.0**
7+
8+
- Fixed event handler conflicts with devices that are both click and touch enabled. e.g., Windows 8.
9+
- Made all slider variables public, stored in `slider.vars`. This allows manipulation of `slider.vars.minItems` and `slider.vars.maxItems` on the fly to create different fluid grids at certain breakpoints. [Check out this example demonstrating a basic technique](http://flexslider.woothemes.com/dynamic-carousel-min-max.html)
10+
- Fixed calculations that were causing strange issues with paging and certain FlexSliders to move out of alignment.
11+
12+
*Be sure to test v2.2.0 with your current slider, before pushing live, to ensure everything is playing nicely.*
13+
14+
-----
515

616
## General Notes
717
FlexSlider is no longer licensed under the MIT license. FlexSlider now shares the common licensed used for all WooThemes themes, GPLv2.
@@ -10,7 +20,6 @@ In an effort to move the plugin forward, support for jQuery 1.3.2 has been dropp
1020

1121
Your old styles and properties *might not work out of the box*. Some property names have been changed, noted below, as well as namespacing prefixes being applied to all elements. This means that `.flex-direction-nav .next` is now `.flex-direction-nav .flex-next` by default. The namespacing property is exposed, free for you to change.
1222

13-
## Updates
1423
No more overflow hidden woes! The plugin now generates a viewport element to handle the tedious task of working around overflow hidden. Yay!
1524

1625
The slider element is now accessible outside of the callback API via the jQuery .data() method. Example use: `$('#slider').data('flexslider')`
@@ -19,6 +28,7 @@ Helper strings have been added for performing actions quickly on FlexSlider elem
1928

2029
- `$('#slider').flexslider("play") //Play slideshow`
2130
- `$('#slider').flexslider("pause") //Pause slideshow`
31+
- `$('#slider').flexslider("stop") //Stop slideshow`
2232
- `$('#slider').flexslider("next") //Go to next slide`
2333
- `$('#slider').flexslider("prev") //Go to previous slide`
2434
- `$('#slider').flexslider(3) //Go fourth slide`
@@ -36,6 +46,7 @@ Two new methods are available for adding/removing slides, `slider.addSlide()` an
3646
- [Basic Carousel](http://flexslider.woothemes.com/basic-carousel.html)
3747
- [Carousel with min and max ranges](http://flexslider.woothemes.com/carousel-min-max.html)
3848
- [Video with Vimeo API](http://flexslider.woothemes.com/video.html)
49+
- [Video with Wistia API](http://flexslider.woothemes.com/video-wistia.html)
3950

4051

4152
## Properties
@@ -127,4 +138,7 @@ Description to be added.
127138
`added()` is a new callback event fired in the new slider.addSlide() function.
128139

129140
### removed: *{new}*
130-
`removed()` is a new callback event fired in the new slider.removeSlide() function.
141+
`removed()` is a new callback event fired in the new slider.removeSlide() function.
142+
143+
### allowOneSlide: *{new}*
144+
Boolean. Whether or not you'd like FlexSlider to initialize as usual if only one slide is present.

changelog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FLEXSLIDER CHANGELOG
2+
3+
2013.02.15 - Version 2.0
4+
* Added changelog.txt

demo/basic-carousel.html

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,36 @@
44
<meta content="charset=utf-8">
55
<title>FlexSlider 2</title>
66
<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" />
7+
118
<!-- Demo CSS -->
129
<link rel="stylesheet" href="css/demo.css" type="text/css" media="screen" />
1310
<link rel="stylesheet" href="../flexslider.css" type="text/css" media="screen" />
14-
11+
1512
<!-- Modernizr -->
1613
<script src="js/modernizr.js"></script>
17-
14+
1815
</head>
1916
<body class="loading">
2017

21-
<div id="top">
22-
23-
<a href="http://www.woothemes.com" title="WooThemes">
24-
<img src="images/logo.png" alt="WooThemes" />
25-
</a>
26-
27-
</div>
28-
2918
<div id="container" class="cf">
3019
<header role="navigation">
20+
<a class="logo" href="http://www.woothemes.com" title="WooThemes">
21+
<img src="images/logo.png" alt="WooThemes" />
22+
</a>
3123
<h1>FlexSlider 2</h1>
3224
<h2>The best responsive slider. Period.</h2>
3325
<a class="button green" href="https://github.com/woothemes/FlexSlider/zipball/master">Download Flexslider</a>
26+
<h3 class="header-nav">Other Examples</h3>
3427
<nav>
35-
<h3>Other Examples</h3>
3628
<ul>
3729
<li><a href="index.html">Basic Slider</a></li>
3830
<li><a href="thumbnail-controlnav.html">Slider w/thumbnail controlNav pattern</a></li>
3931
<li><a href="thumbnail-slider.html">Slider w/thumbnail slider</a></li>
40-
<li><a class="active" href="basic-carousel.html">Basic Carousel</a></li>
41-
<li><a href="carousel-min-max.html">Carousel with min and max ranges</a></li>
42-
<li><a href="video.html">Video & the api (vimeo)</a></li>
32+
<li class="active"><a href="basic-carousel.html">Basic Carousel</a></li>
33+
<li><a href="carousel-min-max.html">Carousel with min and max ranges</a></li>
34+
<li><a href="dynamic-carousel-min-max.html">Carousel with dynamic min/max ranges</a></li>
35+
<li><a href="video.html">Video & the api (vimeo)</a></li>
36+
<li><a href="video-wistia.html">Video & the api (wistia)</a></li>
4337
</ul>
4438
</nav>
4539
</header>
@@ -131,16 +125,16 @@ <h3>Basic Carousel</h3>
131125
</div>
132126
</aside>
133127
</div>
134-
128+
135129
</div>
136-
130+
137131
<!-- jQuery -->
138132
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
139133
<script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.min.js">\x3C/script>')</script>
140-
134+
141135
<!-- FlexSlider -->
142136
<script defer src="../jquery.flexslider.js"></script>
143-
137+
144138
<script type="text/javascript">
145139
$(function(){
146140
SyntaxHighlighter.all();
@@ -151,6 +145,7 @@ <h3>Basic Carousel</h3>
151145
animationLoop: false,
152146
itemWidth: 210,
153147
itemMargin: 5,
148+
pausePlay: true,
154149
start: function(slider){
155150
$('body').removeClass('loading');
156151
}
@@ -163,11 +158,11 @@ <h3>Basic Carousel</h3>
163158
<script type="text/javascript" src="js/shCore.js"></script>
164159
<script type="text/javascript" src="js/shBrushXml.js"></script>
165160
<script type="text/javascript" src="js/shBrushJScript.js"></script>
166-
161+
167162
<!-- Optional FlexSlider Additions -->
168163
<script src="js/jquery.easing.js"></script>
169164
<script src="js/jquery.mousewheel.js"></script>
170165
<script defer src="js/demo.js"></script>
171-
166+
172167
</body>
173168
</html>

demo/carousel-min-max.html

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,39 @@
44
<meta content="charset=utf-8">
55
<title>FlexSlider 2</title>
66
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
7-
7+
88
<!-- Syntax Highlighter -->
99
<link href="css/shCore.css" rel="stylesheet" type="text/css" />
1010
<link href="css/shThemeDefault.css" rel="stylesheet" type="text/css" />
1111
<!-- Demo CSS -->
1212
<link rel="stylesheet" href="css/demo.css" type="text/css" media="screen" />
1313
<link rel="stylesheet" href="../flexslider.css" type="text/css" media="screen" />
14-
14+
1515
<!-- Modernizr -->
1616
<script src="js/modernizr.js"></script>
17-
17+
1818
</head>
1919
<body class="loading">
2020

21-
<div id="top">
22-
23-
<a href="http://www.woothemes.com" title="WooThemes">
24-
<img src="images/logo.png" alt="WooThemes" />
25-
</a>
26-
27-
</div>
28-
2921
<div id="container" class="cf">
3022
<header role="navigation">
23+
<a class="logo" href="http://www.woothemes.com" title="WooThemes">
24+
<img src="images/logo.png" alt="WooThemes" />
25+
</a>
3126
<h1>FlexSlider 2</h1>
3227
<h2>The best responsive slider. Period.</h2>
3328
<a class="button green" href="https://github.com/woothemes/FlexSlider/zipball/master">Download Flexslider</a>
29+
<h3 class="nav-header">Other Examples</h3>
3430
<nav>
35-
<h3>Other Examples</h3>
3631
<ul>
3732
<li><a href="index.html">Basic Slider</a></li>
3833
<li><a href="thumbnail-controlnav.html">Slider w/thumbnail controlNav pattern</a></li>
3934
<li><a href="thumbnail-slider.html">Slider w/thumbnail slider</a></li>
4035
<li><a href="basic-carousel.html">Basic Carousel</a></li>
41-
<li><a class="active" href="carousel-min-max.html">Carousel with min and max ranges</a></li>
42-
<li><a href="video.html">Video & the api (vimeo)</a></li>
36+
<li class="active"><a href="carousel-min-max.html">Carousel with min and max ranges</a></li>
37+
<li><a href="dynamic-carousel-min-max.html">Carousel with dynamic min/max ranges</a></li>
38+
<li><a href="video.html">Video & the api (vimeo)</a></li>
39+
<li><a href="video-wistia.html">Video & the api (wistia)</a></li>
4340
</ul>
4441
</nav>
4542
</header>
@@ -134,16 +131,16 @@ <h3>Carousel With Min &amp; Max Ranges</h3>
134131
</div>
135132
</aside>
136133
</div>
137-
134+
138135
</div>
139-
136+
140137
<!-- jQuery -->
141138
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
142139
<script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.min.js">\x3C/script>')</script>
143-
140+
144141
<!-- FlexSlider -->
145142
<script defer src="../jquery.flexslider.js"></script>
146-
143+
147144
<script type="text/javascript">
148145
$(function(){
149146
SyntaxHighlighter.all();
@@ -168,11 +165,11 @@ <h3>Carousel With Min &amp; Max Ranges</h3>
168165
<script type="text/javascript" src="js/shCore.js"></script>
169166
<script type="text/javascript" src="js/shBrushXml.js"></script>
170167
<script type="text/javascript" src="js/shBrushJScript.js"></script>
171-
168+
172169
<!-- Optional FlexSlider Additions -->
173170
<script src="js/jquery.easing.js"></script>
174171
<script src="js/jquery.mousewheel.js"></script>
175172
<script defer src="js/demo.js"></script>
176-
173+
177174
</body>
178175
</html>

0 commit comments

Comments
 (0)