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

META-INF.resources.butterfaces-dist-js.butterfaces-overlay.min.js Maven / Gradle / Ivy

There is a newer version: 3.5.0
Show newest version
var ButterFaces;!function(n){var e=(t.prototype.show=function(){var i=this,e=$(this.selector);n.Overlay.fadeOutDetachtedOverlays(),e.each(function(e,t){var a=$(t);if(i.isHiding=!1,!n.ObjectStatics.isNullOrUndefined(a.attr("data-overlay-uuid"))){if(0
");a.attr("data-overlay-uuid",r),"body"===i.selector?o.addClass("overlay-body"):o.offset(a.offset()).width(a.outerWidth()).height(a.outerHeight()).addClass("overlay-body-child").css({position:"absolute"}),$("body").append(o),i.isTransparentBlockingOverlayActive&&(console.log("ButterFaces.Overlay.show - isTransparentBlockingOverlayActive is true, showing transparent overlay direcly"),o.show()),window.setTimeout(function(){i.isHiding||i.isTransparentBlockingOverlayActive||(console.log("ButterFaces.Overlay.show - deferred: isTransparentBlockingOverlayActive is false, showing transparent overlay after delay"),o.show()),i.isHiding||(console.log("ButterFaces.Overlay.show - deferred: starting animation to make overlay intransparent"),o.stop(!0).animate({opacity:1},300,function(){console.log("ButterFaces.Overlay.show - deferred: animation ended to make overlay intransparent")}))},i.delay)})},t.prototype.hide=function(){console.log("ButterFaces.Overlay.hide - starting animation to make overlay transparent");var e=$(this.selector);this.isHiding=!0,n.Overlay.fadeOutDetachtedOverlays(),e.each(function(e,t){var a=$(t),r=a.attr("data-overlay-uuid");if(!n.ObjectStatics.isNullOrUndefined(r)&&0