diff --git a/jquery.bugme.js b/jquery.bugme.js index 7010709..78d2c05 100644 --- a/jquery.bugme.js +++ b/jquery.bugme.js @@ -29,7 +29,7 @@ message: "Super duper exciting announcement goes in here! You can even have a link weare2ndfloor.com", // message that goes inside the bug me bar align: "left", // align the message left, right, center or justify close: true, // have the close button on or off - closeText: "X", // for the little dismiss cross in the top right + closeText: "×", // for the little dismiss cross in the top right closeAlign: "right", // align close button left or right remember: true, // this stores a cookie to remember cancellation of bugme bar expireIn: 7, // set expiry of remember cookie (in days) @@ -157,4 +157,4 @@ bugMe(); }); }; -})(jQuery); \ No newline at end of file +})(jQuery); diff --git a/jquery.bugme.min.js b/jquery.bugme.min.js index 0d70688..3c1ebf6 100644 --- a/jquery.bugme.min.js +++ b/jquery.bugme.min.js @@ -1 +1 @@ -(function(e){e.fn.bugme=function(o){var i={target:jQuery(this),message:"Super duper exciting announcement goes in here! You can even have a link weare2ndfloor.com",align:"left",close:!0,closeText:"X",closeAlign:"right",remember:!0,expireIn:7,cookieName:"bugmebar",colours:!0,animate:!0,fixed:!1,fixedSpacer:!1,zindex:99999},o=e.extend(i,o);return this.each(function(){function e(){function e(){j=window.setTimeout(o,2e3)}function o(){jQuery(".bugme",i).addClass("colours")}closeme="left"==m?" bugme-close-left":"",closer=a?''+u+"":"",animateme=g?" bugmebar-animated bugmebar-bounceInDown":"",fixme=d?" bugme-fixed":"",zindexme="z-index:"+f;var x="close"==jQuery.cookie(s);if(!x||!t){if(jQuery("body").addClass("bugmebar"),jQuery(i).prepend('
'+r+closer+"
"),b&&d){var y=jQuery(".bugme",i).outerHeight();jQuery(i).animate({marginTop:"+="+y},500)}if(jQuery(".bugme").hide().slideDown(),l){var j;e()}jQuery("a.bugme-close").on("click",function(e){function o(){a=window.setTimeout(n,1e3),a=window.setTimeout(r,2e3)}function n(){b&&d&&jQuery(i).animate({marginTop:"-="+y},500),jQuery(".bugme",i).slideUp()}function r(){jQuery(".bugme",i).remove(),jQuery("body").removeClass("bugmebar")}e.preventDefault(),jQuery(".bugme",i).removeClass("colours").addClass("bugmebar-bounceOutUp"),t&&jQuery.cookie(s,"close",{expires:c,path:"/"});var a;o()})}}var i=o.target,n=o.align,r=o.message,a=o.close,u=o.closeText,m=o.closeAlign,t=o.remember,c=o.expireIn,s=o.cookieName,l=o.colours,g=o.animate,d=o.fixed,b=o.fixedSpacer,f=o.zindex;e()})}})(jQuery); +(function(e){e.fn.bugme=function(o){var i={target:jQuery(this),message:"Super duper exciting announcement goes in here! You can even have a link weare2ndfloor.com",align:"left",close:!0,closeText:"×",closeAlign:"right",remember:!0,expireIn:7,cookieName:"bugmebar",colours:!0,animate:!0,fixed:!1,fixedSpacer:!1,zindex:99999},o=e.extend(i,o);return this.each(function(){function e(){function e(){j=window.setTimeout(o,2e3)}function o(){jQuery(".bugme",i).addClass("colours")}closeme="left"==m?" bugme-close-left":"",closer=a?''+u+"":"",animateme=g?" bugmebar-animated bugmebar-bounceInDown":"",fixme=d?" bugme-fixed":"",zindexme="z-index:"+f;var x="close"==jQuery.cookie(s);if(!x||!t){if(jQuery("body").addClass("bugmebar"),jQuery(i).prepend('
'+r+closer+"
"),b&&d){var y=jQuery(".bugme",i).outerHeight();jQuery(i).animate({marginTop:"+="+y},500)}if(jQuery(".bugme").hide().slideDown(),l){var j;e()}jQuery("a.bugme-close").on("click",function(e){function o(){a=window.setTimeout(n,1e3),a=window.setTimeout(r,2e3)}function n(){b&&d&&jQuery(i).animate({marginTop:"-="+y},500),jQuery(".bugme",i).slideUp()}function r(){jQuery(".bugme",i).remove(),jQuery("body").removeClass("bugmebar")}e.preventDefault(),jQuery(".bugme",i).removeClass("colours").addClass("bugmebar-bounceOutUp"),t&&jQuery.cookie(s,"close",{expires:c,path:"/"});var a;o()})}}var i=o.target,n=o.align,r=o.message,a=o.close,u=o.closeText,m=o.closeAlign,t=o.remember,c=o.expireIn,s=o.cookieName,l=o.colours,g=o.animate,d=o.fixed,b=o.fixedSpacer,f=o.zindex;e()})}})(jQuery);