diff --git a/bower.json b/bower.json
index d893adc..9af5145 100644
--- a/bower.json
+++ b/bower.json
@@ -1,6 +1,6 @@
{
"name": "jquery-goup",
- "version": "0.6.0",
+ "version": "0.7.0",
"homepage": "https://github.com/Ryuk87/jquery-goup",
"description": "A simple jQuery plugin that let users go back to the top of a web page.",
"main": "./src/jquery.goup.js",
diff --git a/goup.jquery.json b/goup.jquery.json
index 7a472fe..43a17f9 100644
--- a/goup.jquery.json
+++ b/goup.jquery.json
@@ -7,7 +7,7 @@
"backtotop",
"scrolltotop"
],
- "version": "0.6.0",
+ "version": "0.7.0",
"author": {
"name": "Daniele Lenares",
"url": "https://github.com/Ryuk87"
diff --git a/jquery.goup.min.js b/jquery.goup.min.js
index 1811e18..67a08bc 100644
--- a/jquery.goup.min.js
+++ b/jquery.goup.min.js
@@ -4,7 +4,7 @@
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
- * Version 0.6.0
+ * Version 0.7.0
*
*/
- (function(e){function t(e,t,n){if(t=="show"){switch(n){case"fade":e.fadeIn();break;case"slide":e.slideDown();break;default:e.fadeIn()}}else{switch(n){case"fade":e.fadeOut();break;case"slide":e.slideUp();break;default:e.fadeOut()}}}e.goup=function(n){var r=e.extend({location:"right",locationOffset:20,bottomOffset:10,containerRadius:10,containerClass:"goup-container",arrowClass:"goup-arrow",alwaysVisible:false,trigger:500,entryAnimation:"fade",goupSpeed:"slow",hideUnderWidth:500,containerColor:"#000",arrowColor:"#fff",title:"",titleAsText:false,titleAsTextClass:"goup-text"},n);e("body").append('
');var i=e("."+r.containerClass);e(i).html('');var s=e("."+r.arrowClass);if(r.location!="right"&&r.location!="left"){r.location="right"}if(r.locationOffset<0){r.locationOffset=0}if(r.bottomOffset<0){r.bottomOffset=0}if(r.containerRadius<0){r.containerRadius=0}if(r.trigger<0){r.trigger=0}if(r.hideUnderWidth<0){r.hideUnderWidth=0}var o=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i;if(!o.test(r.containerColor)){r.containerColor="#000"}if(!o.test(r.arrowColor)){r.arrowColor="#fff"}if(r.title===""){r.titleAsText=false}var u={};u={position:"fixed",width:40,height:40,background:r.containerColor,cursor:"pointer"};u["bottom"]=r.bottomOffset;u[r.location]=r.locationOffset;u["border-radius"]=r.containerRadius;e(i).css(u);if(!r.titleAsText){e(i).attr("title",r.title)}else{e("body").append(''+r.title+"
");var a=e("."+r.titleAsTextClass);e(a).attr("style",e(i).attr("style"));e(a).css("background","transparent").css("width",80).css("height","auto").css("text-align","center").css(r.location,r.locationOffset-20);var f=e(a).height()+10;e(i).css("bottom","+="+f+"px")}var l={};l={width:0,height:0,margin:"0 auto","padding-top":13,"border-style":"solid","border-width":"0 10px 10px 10px","border-color":"transparent transparent "+r.arrowColor+" transparent"};e(s).css(l);var c=false;e(window).resize(function(){if(e(window).outerWidth()<=r.hideUnderWidth){c=true;t(e(i),"hide",r.entryAnimation);if(a)t(e(a),"hide",r.entryAnimation)}else{c=false;e(window).trigger("scroll")}});if(e(window).outerWidth()<=r.hideUnderWidth){c=true;e(i).hide();if(a)e(a).hide()}if(!r.alwaysVisible){e(window).scroll(function(){if(e(window).scrollTop()>=r.trigger&&!c){t(e(i),"show",r.entryAnimation);if(a)t(e(a),"show",r.entryAnimation)}if(e(window).scrollTop()=r.trigger&&!c){t(e(i),"show",r.entryAnimation);if(a)t(e(a),"show",r.entryAnimation)}e(i).on("click",function(){e("html,body").animate({scrollTop:0},r.goupSpeed);return false});e(a).on("click",function(){e("html,body").animate({scrollTop:0},r.goupSpeed);return false})}})(jQuery)
\ No newline at end of file
+(function(e){function t(e,t,n){if(t=="show"){switch(n){case"fade":e.fadeIn();break;case"slide":e.slideDown();break;default:e.fadeIn()}}else{switch(n){case"fade":e.fadeOut();break;case"slide":e.slideUp();break;default:e.fadeOut()}}}e.goup=function(n){var r=e.extend({location:"right",locationOffset:20,bottomOffset:10,containerRadius:10,containerClass:"goup-container",arrowClass:"goup-arrow",alwaysVisible:false,trigger:500,entryAnimation:"fade",goupSpeed:"slow",hideUnderWidth:500,containerColor:"#000",arrowColor:"#fff",title:"",titleAsText:false,titleAsTextClass:"goup-text"},n);e("body").append('');var i=e("."+r.containerClass);e(i).html('');var s=e("."+r.arrowClass);if(r.location!="right"&&r.location!="left"){r.location="right"}if(r.locationOffset<0){r.locationOffset=0}if(r.bottomOffset<0){r.bottomOffset=0}if(r.containerRadius<0){r.containerRadius=0}if(r.trigger<0){r.trigger=0}if(r.hideUnderWidth<0){r.hideUnderWidth=0}var o=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i;if(!o.test(r.containerColor)){r.containerColor="#000"}if(!o.test(r.arrowColor)){r.arrowColor="#fff"}if(r.title===""){r.titleAsText=false}var u={};u={position:"fixed",width:40,height:40,background:r.containerColor,cursor:"pointer"};u["bottom"]=r.bottomOffset;u[r.location]=r.locationOffset;u["border-radius"]=r.containerRadius;e(i).css(u);if(!r.titleAsText){e(i).attr("title",r.title)}else{e("body").append(''+r.title+"
");var a=e("."+r.titleAsTextClass);e(a).attr("style",e(i).attr("style"));e(a).css("background","transparent").css("width",80).css("height","auto").css("text-align","center").css(r.location,r.locationOffset-20);var f=e(a).height()+10;e(i).css("bottom","+="+f+"px")}var l={};l={width:0,height:0,margin:"0 auto","padding-top":13,"border-style":"solid","border-width":"0 10px 10px 10px","border-color":"transparent transparent "+r.arrowColor+" transparent"};e(s).css(l);var c=false;e(window).resize(function(){if(e(window).outerWidth()<=r.hideUnderWidth){c=true;t(e(i),"hide",r.entryAnimation);if(a)t(e(a),"hide",r.entryAnimation)}else{c=false;e(window).trigger("scroll")}});if(e(window).outerWidth()<=r.hideUnderWidth){c=true;e(i).hide();if(a)e(a).hide()}if(!r.alwaysVisible){e(window).scroll(function(){if(e(window).scrollTop()>=r.trigger&&!c){t(e(i),"show",r.entryAnimation);if(a)t(e(a),"show",r.entryAnimation)}if(e(window).scrollTop()=r.trigger&&!c){t(e(i),"show",r.entryAnimation);if(a)t(e(a),"show",r.entryAnimation)}var h=true;e(i).add(a).on("click",function(){if(h){h=false;e("html,body").animate({scrollTop:0},r.goupSpeed,function(){h=true})}return false})}})(jQuery)
\ No newline at end of file
diff --git a/src/jquery.goup.js b/src/jquery.goup.js
index 6d39ccc..acdefec 100644
--- a/src/jquery.goup.js
+++ b/src/jquery.goup.js
@@ -4,7 +4,7 @@
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
- * Version 0.6.0
+ * Version 0.7.0
*
*/
(function ( $ ) {