Easing Slider - Version 1.1.8

Version Description

  • Fixed: IE9 issues. Slider is now fully functional in IE9.
Download this release

Release Info

Developer MatthewRuddy
Plugin Icon 128x128 Easing Slider
Version 1.1.8
Comparing to
See all releases

Code changes from version 1.1.7 to 1.1.8

Files changed (3) hide show
  1. easingslider.php +1 -1
  2. js/script.js +112 -15
  3. readme.txt +6 -3
easingslider.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Easing Slider
4
  Plugin URI: http://easingslider.matthewruddy.com
5
  Description: Easing Slider is an image slider which uses the jQuery Easing Plugin. It comes with many different transition and styling settings so you'll never have to edit any of the CSS files directly. Images are got from custom fields or Easing Slider's own 'custom images' panel where you can specify particular images via their URL.
6
- Version: 1.1.7
7
  Author: Matthew Ruddy
8
  Author URI: http://matthewruddy.com
9
  License: This plugin is licensed under the GNU General Public License.
3
  Plugin Name: Easing Slider
4
  Plugin URI: http://easingslider.matthewruddy.com
5
  Description: Easing Slider is an image slider which uses the jQuery Easing Plugin. It comes with many different transition and styling settings so you'll never have to edit any of the CSS files directly. Images are got from custom fields or Easing Slider's own 'custom images' panel where you can specify particular images via their URL.
6
+ Version: 1.1.8
7
  Author: Matthew Ruddy
8
  Author URI: http://matthewruddy.com
9
  License: This plugin is licensed under the GNU General Public License.
js/script.js CHANGED
@@ -1,4 +1,65 @@
1
  // JavaScript Document
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  /**
3
  * @version $Id: $Revision
4
  * @package jquery
@@ -7,7 +68,7 @@
7
  * @website http://landofcoder.com
8
  * @license This plugin is dual-licensed under the GNU General Public License and the MIT License
9
  */
10
-
11
  (function($) {
12
  $.fn.lofJSidernews = function( settings ) {
13
  return this.each(function() {
@@ -68,10 +129,14 @@
68
 
69
 
70
  if( this.settings.direction == 'opacity') {
 
71
  this.wrapper.addClass( 'lof-opacity' );
72
  $(this.slides).css({'opacity':0, 'display':'none'}).eq(this.currentNo).css({'opacity':1, 'display':'block'});
 
73
  } else {
 
74
  this.wrapper.css({'left':'-'+this.currentNo*this.maxSize+'px', 'width':( this.maxWidth ) * this.slides.length } );
 
75
  }
76
 
77
 
@@ -88,15 +153,16 @@
88
  $.lofSidernews.fn.extend({
89
 
90
  startUp:function( obj, wrapper ) {
91
- seft = this;
92
-
93
  this.navigatorItems.each( function(index, item ){
94
  $(item).click( function(){
95
- seft.jumping( index, true );
96
- seft.setNavActive( index, item );
97
  } );
98
- $(item).css( {'height': seft.settings.navigatorHeight, 'width': seft.settings.navigatorWidth} );
99
  })
 
 
100
  this.registerWheelHandler( this.navigatorOuter, this );
101
  this.setNavActive(this.currentNo );
102
 
@@ -110,21 +176,39 @@
110
  return this;
111
  },
112
  onComplete:function(){
113
- setTimeout( function(){ $('.preload').fadeOut( 900 ); }, 400 ); this.startUp( );
 
114
  },
115
  preLoadImage:function( callback ){
116
  var self = this;
117
- var images = this.wrapper.find( 'img' );
118
-
 
 
 
119
  var count = 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
120
  images.each( function(index,image){
121
  if( !image.complete ){
122
- image.onload =function(){
123
  count++;
124
  if( count >= images.length ){
125
  self.onComplete();
126
  }
127
- }
128
  image.onerror =function(){
129
  count++;
130
  if( count >= images.length ){
@@ -138,6 +222,8 @@
138
  }
139
  }
140
  } );
 
 
141
  },
142
  navivationAnimate:function( currentIndex ) {
143
  if (currentIndex <= this.settings.startItem
@@ -211,7 +297,9 @@
211
  return eval("({'"+this.directionMode[0]+"':-"+(this.currentNo*start)+"})");
212
  },
213
  fxStart:function( index, obj, currentObj ){
214
- if( this.settings.direction == 'opacity' ) {
 
 
215
  $(this.slides).stop().animate({opacity:0}, {
216
  duration: this.settings.duration,
217
  easing:this.settings.easing,
@@ -223,11 +311,20 @@
223
  duration: this.settings.duration,
224
  easing:this.settings.easing,
225
  step:function(){
226
- $(this).css({'display':'block'});
227
- }
 
 
 
228
  });
229
  }else {
230
- this.wrapper.stop().animate( obj, {duration: this.settings.duration, easing:this.settings.easing} );
 
 
 
 
 
 
231
  }
232
  return this;
233
  },
1
  // JavaScript Document
2
+ /*! Copyright (c) 2009 Brandon Aaron (http://brandonaaron.net)
3
+ * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
4
+ * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
5
+ * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
6
+ * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
7
+ *
8
+ * Version: 3.0.2
9
+ *
10
+ * Requires: 1.2.2+
11
+ */
12
+
13
+ (function($) {
14
+
15
+ var types = ['DOMMouseScroll', 'mousewheel'];
16
+
17
+ $.event.special.mousewheel = {
18
+ setup: function() {
19
+ if ( this.addEventListener )
20
+ for ( var i=types.length; i; )
21
+ this.addEventListener( types[--i], handler, false );
22
+ else
23
+ this.onmousewheel = handler;
24
+ },
25
+
26
+ teardown: function() {
27
+ if ( this.removeEventListener )
28
+ for ( var i=types.length; i; )
29
+ this.removeEventListener( types[--i], handler, false );
30
+ else
31
+ this.onmousewheel = null;
32
+ }
33
+ };
34
+
35
+ $.fn.extend({
36
+ mousewheel: function(fn) {
37
+ return fn ? this.bind("mousewheel", fn) : this.trigger("mousewheel");
38
+ },
39
+
40
+ unmousewheel: function(fn) {
41
+ return this.unbind("mousewheel", fn);
42
+ }
43
+ });
44
+
45
+
46
+ function handler(event) {
47
+ var args = [].slice.call( arguments, 1 ), delta = 0, returnValue = true;
48
+
49
+ event = $.event.fix(event || window.event);
50
+ event.type = "mousewheel";
51
+
52
+ if ( event.wheelDelta ) delta = event.wheelDelta/120;
53
+ if ( event.detail ) delta = -event.detail/3;
54
+
55
+ // Add events and delta to the front of the arguments
56
+ args.unshift(event, delta);
57
+
58
+ return $.event.handle.apply(this, args);
59
+ }
60
+
61
+ })(jQuery);
62
+
63
  /**
64
  * @version $Id: $Revision
65
  * @package jquery
68
  * @website http://landofcoder.com
69
  * @license This plugin is dual-licensed under the GNU General Public License and the MIT License
70
  */
71
+ // JavaScript Document
72
  (function($) {
73
  $.fn.lofJSidernews = function( settings ) {
74
  return this.each(function() {
129
 
130
 
131
  if( this.settings.direction == 'opacity') {
132
+ var text = '.lof-main-item-desc';
133
  this.wrapper.addClass( 'lof-opacity' );
134
  $(this.slides).css({'opacity':0, 'display':'none'}).eq(this.currentNo).css({'opacity':1, 'display':'block'});
135
+ $(this.wrapper).find(text).slideUp().eq(this.currentNo).slideDown();
136
  } else {
137
+ var text = '.lof-main-item-desc';
138
  this.wrapper.css({'left':'-'+this.currentNo*this.maxSize+'px', 'width':( this.maxWidth ) * this.slides.length } );
139
+ $(this.wrapper).find(text).show();
140
  }
141
 
142
 
153
  $.lofSidernews.fn.extend({
154
 
155
  startUp:function( obj, wrapper ) {
156
+
 
157
  this.navigatorItems.each( function(index, item ){
158
  $(item).click( function(){
159
+ obj.jumping( index, true );
160
+ obj.setNavActive( index, item );
161
  } );
162
+ $(item).css( {'height': obj.settings.navigatorHeight, 'width': obj.settings.navigatorWidth} );
163
  })
164
+ this.navigatorItems.find('img').hover(function(){ $(this).stop().animate({'opacity':0.7},500,'easeInOutQuad') },
165
+ function(){ $(this).animate({'opacity':1},500,'easeInOutSine') } );
166
  this.registerWheelHandler( this.navigatorOuter, this );
167
  this.setNavActive(this.currentNo );
168
 
176
  return this;
177
  },
178
  onComplete:function(){
179
+
180
+ setTimeout( function(){ $('.preload').fadeOut( 900 ); }, 400 ); this.startUp( this );
181
  },
182
  preLoadImage:function( callback ){
183
  var self = this;
184
+ images = this.wrapper.find( 'img' );
185
+ if( images.length <= 0 ){
186
+ self.onComplete();
187
+ return ;
188
+ }
189
  var count = 0;
190
+
191
+ images.one('load', function() {
192
+ if( !images.complete ) {
193
+ count++;
194
+ if( count >= images.length ){
195
+ self.onComplete();
196
+ }
197
+ }
198
+ }).each(function(){
199
+ if(this.complete || (jQuery.browser.msie && parseInt(jQuery.browser.version) == 6))
200
+ $(this).trigger('load');
201
+ });
202
+
203
+ /*
204
  images.each( function(index,image){
205
  if( !image.complete ){
206
+ image.one('load', function(){
207
  count++;
208
  if( count >= images.length ){
209
  self.onComplete();
210
  }
211
+ });
212
  image.onerror =function(){
213
  count++;
214
  if( count >= images.length ){
222
  }
223
  }
224
  } );
225
+ */
226
+
227
  },
228
  navivationAnimate:function( currentIndex ) {
229
  if (currentIndex <= this.settings.startItem
297
  return eval("({'"+this.directionMode[0]+"':-"+(this.currentNo*start)+"})");
298
  },
299
  fxStart:function( index, obj, currentObj ){
300
+ if( this.settings.direction == 'opacity' ) {
301
+ var text = '.lof-main-item-desc';
302
+ $(text).slideUp(200);
303
  $(this.slides).stop().animate({opacity:0}, {
304
  duration: this.settings.duration,
305
  easing:this.settings.easing,
311
  duration: this.settings.duration,
312
  easing:this.settings.easing,
313
  step:function(){
314
+ $(this).css({'display':'block'})
315
+ },
316
+ complete:function(){
317
+ $(this).find(text).slideDown(200);
318
+ }
319
  });
320
  }else {
321
+ var text = '.lof-main-item-desc';
322
+ $(this.wrapper).find(text).slideUp(200);
323
+ this.wrapper.stop().animate( obj, {
324
+ duration: this.settings.duration,
325
+ easing:this.settings.easing,
326
+ complete:function() {
327
+ $(this).find(text).slideDown(200); } });
328
  }
329
  return this;
330
  },
readme.txt CHANGED
@@ -2,10 +2,10 @@
2
  Homepage: http://easingslider.matthewruddy.com
3
  Contributors: MatthewRuddy
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=matthew_ruddy%40hotmail%2ecom&lc=US&item_name=Easing%20Slider&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
5
- Tags: slider, easing, plugin, jquery, content, featured, images, wordpress
6
  Requires at least: 2.9.2
7
- Tested up to: 3.0.1
8
- Stable tag: 1.1.7
9
 
10
  The Easing Slider is an image slider plugin for WordPress which uses the jQuery Easing plugin.
11
 
@@ -101,6 +101,9 @@ This (most likely) is due to one of two potential problems:
101
  <h4>For more information please email me at info@matthewruddy.com</h4>
102
 
103
  == Changelog ==
 
 
 
104
 
105
  = 1.1.7 =
106
  * Added: Option to enable or disable jQuery.
2
  Homepage: http://easingslider.matthewruddy.com
3
  Contributors: MatthewRuddy
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=matthew_ruddy%40hotmail%2ecom&lc=US&item_name=Easing%20Slider&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
5
+ Tags: slider, slideshows, easing, plugin, jquery, content, featured, images, wordpress
6
  Requires at least: 2.9.2
7
+ Tested up to: 3.2.1
8
+ Stable tag: 1.1.8
9
 
10
  The Easing Slider is an image slider plugin for WordPress which uses the jQuery Easing plugin.
11
 
101
  <h4>For more information please email me at info@matthewruddy.com</h4>
102
 
103
  == Changelog ==
104
+
105
+ = 1.1.8 =
106
+ * Fixed: IE9 issues. Slider is now fully functional in IE9.
107
 
108
  = 1.1.7 =
109
  * Added: Option to enable or disable jQuery.