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

Commit 5a07806

Browse files
authored
Merge pull request #1573 from woothemes/release-2-6-2
Release 2 6 2
2 parents 622f7fd + 0561dfb commit 5a07806

File tree

9 files changed

+106
-25
lines changed

9 files changed

+106
-25
lines changed

README.mdown

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![Gitter chat](https://badges.gitter.im/woothemes/FlexSlider.png)](https://gitter.im/woothemes/FlexSlider)
22

3-
# FlexSlider 2.6.1
3+
# FlexSlider 2.6.2
44
http://www.woothemes.com/flexslider/ - Copyright (c) 2015 WooThemes
55

66
## Releases
@@ -19,17 +19,21 @@ To keep up to date with how FlexSlider's development roadmap looks, please see o
1919

2020
## Updates
2121

22+
** Version 2.6.2 **
23+
24+
** Minor update to fix issues with varying heights and overflow onto content below the slider. Fixes the visibility of the pagination and the navigation in the "fade" mode. **
25+
2226
** Version 2.6.1 **
2327

24-
** SmoothHeight now uses innerHeight() instead of height() to account for padding in calculation . Defining var altText to prevent error. bower.json add fonts folder on main field. Changed true to false in order to make sure whether or not to allow a slider comprised of a single slide **
28+
** SmoothHeight now uses innerHeight() instead of height() to account for padding in calculation. Defining var altText to prevent error. bower.json add fonts folder on main field. Changed true to false in order to make sure whether or not to allow a slider comprised of a single slide. **
2529

2630
** Version 2.6.0 **
2731

28-
** Adds composer json file, scope fix for focused keyword, fixes bower demo folder exclusion, z-index fix for disabled nav arrow, play/pause accessibility fix, itemMargin fix for slider items, fixes accessibility for in focus elements and pagination controls, firefox fix for text selection on slider carousel, adds data-thumb-alt image alt attribute **
32+
** Adds composer json file, scope fix for focused keyword, fixes bower demo folder exclusion, z-index fix for disabled nav arrow, play/pause accessibility fix, itemMargin fix for slider items, fixes accessibility for in focus elements and pagination controls, firefox fix for text selection on slider carousel, adds data-thumb-alt image alt attribute. **
2933

3034
** Version 2.5.0 **
3135

32-
** Bumped compatibility support starting with jQuery 1.7+. pausePlay icon fix. Firefox touch event fix. Adds customDirectionNav param **
36+
** Bumped compatibility support starting with jQuery 1.7+. pausePlay icon fix. Firefox touch event fix. Adds customDirectionNav param. **
3337

3438
** Version 2.4.0 **
3539

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flexslider",
3-
"version": "2.6.1",
3+
"version": "2.6.2",
44
"homepage": "https://github.com/woothemes/FlexSlider",
55
"authors": [
66
"WooThemes <[email protected]>"

changelog.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,8 @@ FLEXSLIDER CHANGELOG
3333
* smoothHeight now uses innerHeight() instead of height() to account for padding in calculation.
3434
* Defining var altText to prevent error.
3535
* bower.json add fonts folder on main field.
36-
* Changed `true` to `false` in order to make sure whether or not to allow a slider comprised of a single slide.
36+
* Changed `true` to `false` in order to make sure whether or not to allow a slider comprised of a single slide.
37+
38+
2016.08.18 - Version 2.6.2
39+
* Fixes overflow issue with varying height images.
40+
* Fixes the visibility of the pagination and the navigation in the "fade" mode.

demo/js/jquery.fitvid.js

Lines changed: 78 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,84 @@
11
/*global jQuery */
2-
/*!
3-
* FitVids 1.0
2+
/*jshint browser:true */
3+
/*!
4+
* FitVids 1.1
45
*
5-
* Copyright 2011, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
6+
* Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
67
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
78
* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
89
*
9-
* Date: Thu Sept 01 18:00:00 2011 -0500
1010
*/
11-
(function(a){a.fn.fitVids=function(b){var c={customSelector:null},d=document.createElement("div"),e=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];return d.className="fit-vids-style",d.innerHTML="&shy;<style> .fluid-width-video-wrapper { width: 100%; position: relative; padding: 0; } .fluid-width-video-wrapper iframe, .fluid-width-video-wrapper object, .fluid-width-video-wrapper embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } </style>",e.parentNode.insertBefore(d,e),b&&a.extend(c,b),this.each(function(){var b=["iframe[src^='http://player.vimeo.com']","iframe[src^='http://www.youtube.com']","iframe[src^='https://www.youtube.com']","iframe[src^='http://www.kickstarter.com']","iframe[src^='http://fast.wistia.com']","object","embed"];c.customSelector&&b.push(c.customSelector);var d=a(this).find(b.join(","));d.each(function(){var b=a(this);if(this.tagName.toLowerCase()=="embed"&&b.parent("object").length||b.parent(".fluid-width-video-wrapper").length)return;var c=this.tagName.toLowerCase()=="object"?b.attr("height"):b.height(),d=c/b.width();if(!b.attr("id")){var e="fitvid"+Math.floor(Math.random()*999999);b.attr("id",e)}b.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",d*100+"%"),b.removeAttr("height").removeAttr("width")})})}})(jQuery)
11+
12+
(function( $ ){
13+
14+
"use strict";
15+
16+
$.fn.fitVids = function( options ) {
17+
var settings = {
18+
customSelector: null,
19+
ignore: null,
20+
};
21+
22+
if(!document.getElementById('fit-vids-style')) {
23+
// appendStyles: https://github.com/toddmotto/fluidvids/blob/master/dist/fluidvids.js
24+
var head = document.head || document.getElementsByTagName('head')[0];
25+
var css = '.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}';
26+
var div = document.createElement('div');
27+
div.innerHTML = '<p>x</p><style id="fit-vids-style">' + css + '</style>';
28+
head.appendChild(div.childNodes[1]);
29+
}
30+
31+
if ( options ) {
32+
$.extend( settings, options );
33+
}
34+
35+
return this.each(function(){
36+
var selectors = [
37+
"iframe[src*='player.vimeo.com']",
38+
"iframe[src*='youtube.com']",
39+
"iframe[src*='youtube-nocookie.com']",
40+
"iframe[src*='kickstarter.com'][src*='video.html']",
41+
"iframe[src^='http://fast.wistia.com']",
42+
"object",
43+
"embed"
44+
];
45+
46+
if (settings.customSelector) {
47+
selectors.push(settings.customSelector);
48+
}
49+
50+
var ignoreList = '.fitvidsignore';
51+
52+
if(settings.ignore) {
53+
ignoreList = ignoreList + ', ' + settings.ignore;
54+
}
55+
56+
var $allVideos = $(this).find(selectors.join(','));
57+
$allVideos = $allVideos.not("object object"); // SwfObj conflict patch
58+
$allVideos = $allVideos.not(ignoreList); // Disable FitVids on this video.
59+
60+
$allVideos.each(function(){
61+
var $this = $(this);
62+
if($this.parents(ignoreList).length > 0) {
63+
return; // Disable FitVids on this video.
64+
}
65+
if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; }
66+
if ((!$this.css('height') && !$this.css('width')) && (isNaN($this.attr('height')) || isNaN($this.attr('width'))))
67+
{
68+
$this.attr('height', 9);
69+
$this.attr('width', 16);
70+
}
71+
var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(),
72+
width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(),
73+
aspectRatio = height / width;
74+
if(!$this.attr('id')){
75+
var videoID = 'fitvid' + Math.floor(Math.random()*999999);
76+
$this.attr('id', videoID);
77+
}
78+
$this.wrap('<div class="fluid-width-video-wrapper"></div>').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+"%");
79+
$this.removeAttr('height').removeAttr('width');
80+
});
81+
});
82+
};
83+
// Works with either jQuery or Zepto
84+
})( window.jQuery || window.Zepto );

flexslider.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery FlexSlider v2.6.1
2+
* jQuery FlexSlider v2.6.2
33
* http://www.woothemes.com/flexslider/
44
*
55
* Copyright 2012 WooThemes

flexslider.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery FlexSlider v2.6.1
2+
* jQuery FlexSlider v2.6.2
33
* http://www.woothemes.com/flexslider/
44
*
55
* Copyright 2012 WooThemes

jquery.flexslider-min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jquery.flexslider.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery FlexSlider v2.6.1
2+
* jQuery FlexSlider v2.6.2
33
* Copyright 2012 WooThemes
44
* Contributing Author: Tyler Smith
55
*/
@@ -592,7 +592,7 @@
592592
smoothHeight: function(dur) {
593593
if (!vertical || fade) {
594594
var $obj = (fade) ? slider : slider.viewport;
595-
(dur) ? $obj.animate({"height": slider.slides.eq(slider.animatingTo).innerHeight()}, dur) : $obj.innerHeight(slider.slides.eq(slider.animatingTo).innerHeight());
595+
(dur) ? $obj.animate({"height": slider.slides.eq(slider.animatingTo).innerHeight()}, dur).css('overflow', 'visible') : $obj.innerHeight(slider.slides.eq(slider.animatingTo).innerHeight());
596596
}
597597
},
598598
sync: function(action) {
@@ -779,12 +779,12 @@
779779
//slider.slides.eq(slider.currentSlide).fadeOut(slider.vars.animationSpeed, slider.vars.easing);
780780
//slider.slides.eq(target).fadeIn(slider.vars.animationSpeed, slider.vars.easing, slider.wrapup);
781781

782-
slider.slides.eq(slider.currentSlide).css({"zIndex": 1}).animate({"opacity": 0}, slider.vars.animationSpeed, slider.vars.easing);
783-
slider.slides.eq(target).css({"zIndex": 2}).animate({"opacity": 1}, slider.vars.animationSpeed, slider.vars.easing, slider.wrapup);
782+
slider.slides.eq(slider.currentSlide).css({"zIndex": 1, "display": "none"}).animate({"opacity": 0}, slider.vars.animationSpeed, slider.vars.easing);
783+
slider.slides.eq(target).css({"zIndex": 2, "display": "block"}).animate({"opacity": 1}, slider.vars.animationSpeed, slider.vars.easing, slider.wrapup);
784784

785785
} else {
786-
slider.slides.eq(slider.currentSlide).css({ "opacity": 0, "zIndex": 1 });
787-
slider.slides.eq(target).css({ "opacity": 1, "zIndex": 2 });
786+
slider.slides.eq(slider.currentSlide).css({ "opacity": 0, "zIndex": 1, "display": "none" });
787+
slider.slides.eq(target).css({ "opacity": 1, "zIndex": 2, "display": "block" });
788788
slider.wrapup(dimension);
789789
}
790790
}
@@ -948,12 +948,12 @@
948948
if (!touch) {
949949
//slider.slides.eq(slider.currentSlide).fadeIn(slider.vars.animationSpeed, slider.vars.easing);
950950
if (slider.vars.fadeFirstSlide == false) {
951-
slider.slides.css({ "opacity": 0, "display": "block", "zIndex": 1 }).eq(slider.currentSlide).css({"zIndex": 2}).css({"opacity": 1});
951+
slider.slides.css({ "opacity": 0, "display": "none", "zIndex": 1 }).eq(slider.currentSlide).css({"zIndex": 2, "display": "block"}).css({"opacity": 1});
952952
} else {
953-
slider.slides.css({ "opacity": 0, "display": "block", "zIndex": 1 }).eq(slider.currentSlide).css({"zIndex": 2}).animate({"opacity": 1},slider.vars.animationSpeed,slider.vars.easing);
953+
slider.slides.css({ "opacity": 0, "display": "none", "zIndex": 1 }).eq(slider.currentSlide).css({"zIndex": 2, "display": "block"}).animate({"opacity": 1},slider.vars.animationSpeed,slider.vars.easing);
954954
}
955955
} else {
956-
slider.slides.css({ "opacity": 0, "display": "block", "webkitTransition": "opacity " + slider.vars.animationSpeed / 1000 + "s ease", "zIndex": 1 }).eq(slider.currentSlide).css({ "opacity": 1, "zIndex": 2});
956+
slider.slides.css({ "opacity": 0, "display": "none", "webkitTransition": "opacity " + slider.vars.animationSpeed / 1000 + "s ease", "zIndex": 1 }).eq(slider.currentSlide).css({ "opacity": 1, "zIndex": 2, "display": "block"});
957957
}
958958
}
959959
// SMOOTH HEIGHT:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flexslider",
3-
"version": "2.6.1",
3+
"version": "2.6.2",
44
"description": "An awesome, fully responsive jQuery slider toolkit.",
55
"main": "jquery.flexslider.js",
66
"scripts": {

0 commit comments

Comments
 (0)