All Downloads are FREE. Search and download functionalities are using the official Maven repository.

public.bootstrap-growl.jquery.bootstrap-growl.min.js Maven / Gradle / Ivy

There is a newer version: 0.9.6
Show newest version
(function(){var e;e=jQuery,e.bootstrapGrowl=function(t,n){var r,i,s;n=e.extend({},e.bootstrapGrowl.default_options,n),r=e("
"),r.attr("class","bootstrap-growl alert"),n.type&&r.addClass("alert-"+n.type),n.allow_dismiss&&r.append('×'),r.append(t),n.top_offset&&(n.offset={from:"top",amount:n.top_offset}),s=n.offset.amount,e(".bootstrap-growl").each(function(){return s=Math.max(s,parseInt(e(this).css(n.offset.from))+e(this).outerHeight()+n.stackup_spacing)}),i={position:n.ele==="body"?"fixed":"absolute",margin:0,"z-index":"9999",display:"none"},i[n.offset.from]=s+"px",r.css(i),n.width!=="auto"&&r.css("width",n.width+"px"),e(n.ele).append(r);switch(n.align){case"center":r.css({left:"50%","margin-left":"-"+r.outerWidth()/2+"px"});break;case"left":r.css("left","20px");break;default:r.css("right","20px")}r.fadeIn();if(n.delay>0)return r.delay(n.delay).fadeOut(function(){return e(this).remove()})},e.bootstrapGrowl.default_options={ele:"body",type:null,offset:{from:"top",amount:20},align:"right",width:250,delay:4e3,allow_dismiss:!0,stackup_spacing:10}}).call(this);




© 2015 - 2025 Weber Informatics LLC | Privacy Policy