",{"class":this._namespace+"-overlay"}).appendTo(t(this.elem).find("."+this._namespace+"-wrapper")),this.props.img.$overlay=t(this.elem).find("."+this._namespace+"-overlay");var r=parseInt(this.props.img.$overlay.css("padding-top"),10),n=parseInt(this.props.img.$overlay.css("padding-bottom"),10),a=parseInt(this.props.img.$overlay.css("padding-left"),10),p=parseInt(this.props.img.$overlay.css("padding-right"),10),h=parseInt(this.props.img.$overlay.css("height"),10)-(a+p);h=parseInt(o,10)-h-(r+n);var l=e.top+h+2*s,f=e.left;this.props.img.$overlay.css({left:f+"px",top:l+"px",width:i+"px","border-bottom-left-radius":this.props.img.$elem.css("border-radius"),"border-bottom-right-radius":this.props.img.$elem.css("border-radius")}),"always"===this.options.overlay&&this.props.img.$overlay.animate({opacity:.7},this._hasEffect()===!0?500:0),this._caption(),this.options.controls.show===!0&&this.props.thumbs.length>1&&this._controls()}},_hideOverlay:function(){null!==this.props.img.$overlay&&this.props.img.$overlay.animate({opacity:0},this._hasEffect()===!0?500:0)},_controls:function(){t(this.elem).find("."+this._namespace+"-controls-wrapper").remove();var e='
",{"class":this._namespace+"-controls-wrapper"}).append(e+s+i+o);r.appendTo(this.props.img.$overlay.find("a:first").length>0?this.props.img.$overlay.find("a:first"):this.props.img.$overlay),this.props.controls.$wrapper=t(this.elem).find("."+this._namespace+"-controls-wrapper"),this.props.controls.$wrapper.length&&(this.options.auto.start===!0?this.props.controls.$wrapper.find('a[href="#play"]').hide().parent().find('a[href="#pause"]').show():this.props.controls.$wrapper.find('a[href="#pause"]').hide().parent().find('a[href="#play"]').show())},_caption:function(){if(null!==this.props.thumbs[this.props.img.to_show].caption_title){this.props.img.$overlay.html('
'+this.props.thumbs[this.props.img.to_show].caption_title+"");var e=this.props.img.$overlay.find("a:first").length>0?!0:!1,s=null!==this.props.thumbs[this.props.img.to_show].caption_link?!0:!1,i='
';if(e===!0&&s===!0)this.props.img.$overlay.find("a:first").attr("href",this.props.thumbs[this.props.img.to_show].caption_link);else if(e===!0&&s===!1){var o=this.props.img.$overlay.find("a:first"),r=o.children().clone(),n=o.parent();o.remove(),r.appendTo(n),this.props.img.$overlay.find("span:first").empty()}else e===!1&&s===!0&&t(this.elem).find("."+this._namespace+"-overlay span:first").wrap(i)}},_stopAnimation:function(){t(this.elem).stop()},_triggerEvent:function(e){t(this.elem).triggerHandler(e+"."+this._namespace);var s=e.charAt(0).toUpperCase()+e.slice(1);this.options.events["on"+s]&&this.options.events["on"+s](this.props.img.$elem)},_events:function(){var i=this;t(this.options.thumbs).on("click",function(e){e.preventDefault(),i.goTo(t(this).data(i._namespace+"-index")),i._triggerEvent("thumbClick")}),this.props.img.$elem.on("click",function(t){t.preventDefault(),i._triggerEvent("imageClick")}),t(this.elem).on("click","."+this._namespace+"-controls-wrapper a",t(this.elem),function(e){switch(e.preventDefault(),t(this).attr("href")){case"#prev":i.goPrev();break;case"#pause":i.pause();break;case"#play":i.play();break;case"#next":i.goNext()}}),t(this.elem).find("."+this._namespace+"-wrapper").on({mouseover:function(){"hover"===i.options.overlay&&null!==i.props.img.$overlay&&i.props.img.$overlay.stop().animate({opacity:.7},400)},mouseleave:function(){"hover"===i.options.overlay&&null!==i.props.img.$overlay&&i.props.img.$overlay.stop().animate({opacity:0},400)}}),this.options.controls.keys===!0&&t(s).on("keydown",function(t){switch(t.which){case 37:i.goPrev();break;case 39:i.goNext();break;case 32:t.preventDefault(),i.options.auto.start===!0?i.pause():i.play()}});var o=function(){var t=0;return function(e,s){clearTimeout(t),t=setTimeout(e,s)}}();"none"!==this.options.overlay&&t(e).bind("resize",function(){o(function(){i._overlay()},100)})},_errorHandler:function(t,e){switch(t){case"error":console!==i&&console.error(this._name+": "+e+" Check out the documentation."),this._triggerEvent("error"),this.props.plugin_status=t;break;case"warning":console!==i&&console.warn(this._name+": "+e),this._triggerEvent("warning"),this.props.plugin_status=t;break;default:this._triggerEvent("success"),this.props.plugin_status=t}}},t.fn[r]=function(e){var s,n,a=arguments;return e===i||"object"==typeof e?n=this.each(function(){t.data(this,"plugin_"+r)||t.data(this,"plugin_"+r,new o(this,e))}):"string"==typeof e&&"_"!==e[0]?(s=t.data(this[0],"plugin_"+r),s[e]!==i&&(n=s[e].apply(s,Array.prototype.slice.call(a,1)))):n=this.each(function(){s=t.data(this,"plugin_"+r),s instanceof o&&"function"==typeof s[e]&&s[e].apply(s,Array.prototype.slice.call(a,1))}),n}}(jQuery,window,document);
\ No newline at end of file
diff --git a/dist/less/jquery.desoslide.less b/dist/less/jquery.desoslide.less
index 9069150..ea43d0b 100644
--- a/dist/less/jquery.desoslide.less
+++ b/dist/less/jquery.desoslide.less
@@ -1,5 +1,5 @@
/*!
-* Version 2.0.1
+* Version 2.1.0
* jQuery: desoSlide plugin
* Copyright - 2014 - https://github.com/sylouuu/desoslide
* This source code is under the MIT License
diff --git a/doc/index.html b/doc/index.html
index 66ee3a4..696a595 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -97,7 +97,7 @@
Documentation
- Documentation covers: 2.0.1
+ Documentation covers: 2.1.0
diff --git a/doc/release-notes.html b/doc/release-notes.html
index 1b9692e..783a737 100644
--- a/doc/release-notes.html
+++ b/doc/release-notes.html
@@ -97,7 +97,7 @@
Release Notes
- Current stable release: 2.0.1
+ Current stable release: 2.1.0
@@ -107,6 +107,30 @@
Release Notes
+
+
+
+
+ 2014-06-30
+
+ 2.1.0
+
+
+
+
+
+
+
+
+ -
+ New
+ Allowed instant transition with
effect: 'none'
.
+
+
+
+
+
+
@@ -130,6 +154,7 @@